[DRE-commits] [gitlab] 06/06: set gitlab_user default value in postrm
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Mon Feb 20 12:43:51 UTC 2017
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository gitlab.
commit d9a8b7a138cc30906233836e4997147d5b87f1f6
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Mon Feb 20 18:12:03 2017 +0530
set gitlab_user default value in postrm
---
debian/postrm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/debian/postrm b/debian/postrm
index 4b4984e..d08bd3e 100644
--- a/debian/postrm
+++ b/debian/postrm
@@ -53,6 +53,8 @@ case "$1" in
rm -rf ${gitlab_log_dir}
rm -rf ${gitlab_cache_path}
rm -rf ${gitlab_pid_path}
+ # Don't fail if user is already removed
+ gitlab_user=${gitlab_user:-gitlab}
id -u ${gitlab_user} && userdel -r ${gitlab_user}
rm -rf ${gitlab_data_dir}
su ${gitlab_user} -c 'psql gitlab_production -c ""' && su postgres -c "dropdb gitlab_production"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gitlab.git
More information about the Pkg-ruby-extras-commits
mailing list