1
0
forked from ports/opt

gitolite: fix logic error in pre-install

This commit is contained in:
Thomas Penteker 2016-11-27 03:37:58 +01:00
parent 704f6cb57a
commit 85de2976a9

View File

@ -3,6 +3,5 @@
getent group git >/dev/null || /usr/sbin/groupadd -r git
# default ssh settings requrie an unlocked account with a valid loginshell
getent passwd git > /dev/null || /usr/sbin/useradd -g git -r -s /bin/sh git
getent passwd git > /dev/null || /usr/sbin/usermod -p x git
getent passwd git > /dev/null || (/usr/sbin/useradd -g git -r -s /bin/sh git; /usr/sbin/usermod -p x git)