debian-mirror-gitlab/debian/adduser.sh

12 lines
350 B
Bash
Raw Normal View History

2015-09-24 12:14:52 +05:30
#!/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..."
2016-01-15 23:46:32 +05:30
adduser --home /usr/share/$user --gecos "$user user" --shell /bin/sh \
--quiet --disabled-password $user || {
2016-01-16 00:44:31 +05:30
echo "Proceeding with existing $user user..."
2015-09-24 12:14:52 +05:30
}