improve echo wording

This commit is contained in:
Praveen Arimbrathodiyil 2017-02-24 14:46:32 +05:30
parent 8b09472f29
commit 1b59512170

4
debian/postrm vendored
View file

@ -57,12 +57,12 @@ case "$1" in
if [ ! -z "${gitlab_user}" ]; then
# Do only if gitlab_user is set
if [ -x /usr/bin/dropdb ]; then
echo "Removing Database"
echo "Removing Database: gitlab_production"
su ${gitlab_user} -c 'psql gitlab_production -c ""' && su postgres -c "dropdb gitlab_production"
else
echo "dropdb command not found. Hence not removing database."
fi
echo "Removing ${gitlab_user}"
echo "Removing user: ${gitlab_user}"
id -u ${gitlab_user} && userdel -r ${gitlab_user}
else
echo "gitlab_user not set. Hence not removing user."