3 # vim:set ts=2 sw=2 et:
5 # arg 1: the new package version
10 # arg 1: the new package version
12 echo ">>> Creating gitauth user and group and setting permissions..."
13 getent group git
> /dev
/null || usr
/sbin
/groupadd git
&> /dev
/null
14 getent passwd git
> /dev
/null || usr
/sbin
/useradd
--shell /bin
/bash
-g git
--home '/opt/gitauth' --system --comment 'Git Auth User' git
&> /dev
/null
16 chown
-R git
:git
/opt
/gitauth
17 chmod -R 775 /opt
/gitauth
19 echo ">>> To install gitauth, please run"
20 echo ">>> sudo -H -u git -i /opt/gitauth/bin/gitauth install"
27 # arg 1: the new package version
28 # arg 2: the old package version
33 # arg 1: the new package version
34 # arg 2: the old package version
39 # arg 1: the old package version
41 usr
/sbin
/userdel git
&>/dev
/null
42 usr
/sbin
/groupdel git
&>/dev
/null
45 # arg 1: the old package version