debian-mirror-gitlab/debian/adduser.sh
Praveen Arimbrathodiyil b171ae4b7d proceed if user exist
2016-01-16 00:44:31 +05:30

11 lines
350 B
Bash
Executable file

#!/bin/sh
# add diaspora system user (requires adduser >= 3.34)
# don't muck around with this unless you KNOW what you're doing
user=gitlab
echo "Creating/updating $user user account..."
adduser --home /usr/share/$user --gecos "$user user" --shell /bin/sh \
--quiet --disabled-password $user || {
echo "Proceeding with existing $user user..."
}