chiark / gitweb /
Improve adduser calls:
[userv-utils.git] / debian / userv-git-daemon.postinst
index be6c934ea3e748b5fa0b0a15373dc2186e6f508f..5ccaa8841cfc3ad192dacfc287b99c53df9ec1cc 100755 (executable)
@@ -22,14 +22,14 @@ set -e
 # You should have received a copy of the GNU General Public License
 # along with userv-utils; if not, see http://www.gnu.org/licenses/.
 
-GITDUSER=git
+GITDUSER=userv-git
 
 defaults=/etc/default/userv-git-daemon
 if test -f $defaults; then . $defaults; fi
 
-if [ "$GITDUSER" ]; then
-       if id $GITDUSER >/dev/null 2>&1; then exit 0; fi
+#DEBHELPER#
 
-       adduser --system --group --gecos 'userv git daemon' \
-               --home /etc/userv $GITDUSER
+if [ "$GITDUSER" ]; then
+       adduser --system --quiet --group --gecos 'userv git daemon' \
+               --home /etc/userv --no-create-home --shell /bin/false $GITDUSER
 fi