improve echo wording
This commit is contained in:
parent
8b09472f29
commit
1b59512170
1 changed files with 2 additions and 2 deletions
4
debian/postrm
vendored
4
debian/postrm
vendored
|
@ -57,12 +57,12 @@ case "$1" in
|
||||||
if [ ! -z "${gitlab_user}" ]; then
|
if [ ! -z "${gitlab_user}" ]; then
|
||||||
# Do only if gitlab_user is set
|
# Do only if gitlab_user is set
|
||||||
if [ -x /usr/bin/dropdb ]; then
|
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"
|
su ${gitlab_user} -c 'psql gitlab_production -c ""' && su postgres -c "dropdb gitlab_production"
|
||||||
else
|
else
|
||||||
echo "dropdb command not found. Hence not removing database."
|
echo "dropdb command not found. Hence not removing database."
|
||||||
fi
|
fi
|
||||||
echo "Removing ${gitlab_user}"
|
echo "Removing user: ${gitlab_user}"
|
||||||
id -u ${gitlab_user} && userdel -r ${gitlab_user}
|
id -u ${gitlab_user} && userdel -r ${gitlab_user}
|
||||||
else
|
else
|
||||||
echo "gitlab_user not set. Hence not removing user."
|
echo "gitlab_user not set. Hence not removing user."
|
||||||
|
|
Loading…
Reference in a new issue