[DRE-commits] [gitlab] 02/06: remove gitlab user only if exist
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 00cbdaf00c9c90a3b7ddf7e6eadf098d1772ba0f
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Mon Feb 20 17:23:37 2017 +0530
remove gitlab user only if exist
---
debian/postrm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/postrm b/debian/postrm
index 0b9fa5f..85fadc9 100644
--- a/debian/postrm
+++ b/debian/postrm
@@ -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
--
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