fix userdel

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

2
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" su ${gitlab_user} -c 'psql gitlab_production -c ""' && su postgres -c "dropdb gitlab_production"
else else
echo "dropdb command not found. Hence not removing database." echo "dropdb command not found. Hence not removing database."
fi
echo "Removing ${gitlab_user}" echo "Removing ${gitlab_user}"
id -u ${gitlab_user} && userdel -r ${gitlab_user} id -u ${gitlab_user} && userdel -r ${gitlab_user}
fi
else else
echo "gitlab_user not set. Hence not removing user." echo "gitlab_user not set. Hence not removing user."
fi fi