use id -u

This commit is contained in:
Praveen Arimbrathodiyil 2017-02-20 18:02:42 +05:30
parent 00cbdaf00c
commit 76f03adf07

2
debian/postrm vendored
View file

@ -53,7 +53,7 @@ case "$1" in
rm -rf ${gitlab_log_dir}
rm -rf ${gitlab_cache_path}
rm -rf ${gitlab_pid_path}
id ${gitlab_user} && userdel -r ${gitlab_user}
id -u ${gitlab_user} && userdel -r ${gitlab_user}
rm -rf ${gitlab_data_dir}
su postgres -c "dropdb gitlab_production"
fi