fix userdel
This commit is contained in:
parent
ac1dd4c0e1
commit
8b09472f29
1 changed files with 2 additions and 2 deletions
4
debian/postrm
vendored
4
debian/postrm
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue