remove gitlab user only if exist

This commit is contained in:
Praveen Arimbrathodiyil 2017-02-20 17:23:37 +05:30
parent 80f8263a91
commit 00cbdaf00c

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}
userdel -r ${gitlab_user}
id ${gitlab_user} && userdel -r ${gitlab_user}
rm -rf ${gitlab_data_dir}
su postgres -c "dropdb gitlab_production"
fi