[DRE-commits] [gitlab] 01/01: fix userdel

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Fri Feb 24 09:06:28 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 8b09472f292cd74d4d6540d68adb028bd56d9edd
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Fri Feb 24 14:33:51 2017 +0530

    fix userdel
---
 debian/postrm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/postrm b/debian/postrm
index ae6f1c7..14cd9b6 100644
--- a/debian/postrm
+++ b/debian/postrm
@@ -61,9 +61,9 @@ case "$1" in
                 su ${gitlab_user} -c 'psql gitlab_production -c ""' && su postgres -c "dropdb gitlab_production"
             else
                 echo "dropdb command not found. Hence not removing database."
-             echo "Removing ${gitlab_user}"
-            id -u ${gitlab_user} && userdel -r ${gitlab_user}
            fi
+           echo "Removing ${gitlab_user}"
+           id -u ${gitlab_user} && userdel -r ${gitlab_user}
         else
             echo "gitlab_user not set. Hence not removing user."
         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