fix userdel

This commit is contained in:
Praveen Arimbrathodiyil 2017-02-24 14:33:51 +05:30
parent ac1dd4c0e1
commit 8b09472f29

4
debian/postrm vendored
View file

@ -61,9 +61,9 @@ case "$1" in
su ${gitlab_user} -c 'psql gitlab_production -c ""' && su postgres -c "dropdb gitlab_production"
else
echo "dropdb command not found. Hence not removing database."
echo "Removing ${gitlab_user}"
id -u ${gitlab_user} && userdel -r ${gitlab_user}
fi
echo "Removing ${gitlab_user}"
id -u ${gitlab_user} && userdel -r ${gitlab_user}
else
echo "gitlab_user not set. Hence not removing user."
fi