fix userdel
This commit is contained in:
parent
ac1dd4c0e1
commit
8b09472f29
1 changed files with 2 additions and 2 deletions
2
debian/postrm
vendored
2
debian/postrm
vendored
|
@ -61,9 +61,9 @@ case "$1" in
|
||||||
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
|
||||||
echo "Removing ${gitlab_user}"
|
echo "Removing ${gitlab_user}"
|
||||||
id -u ${gitlab_user} && userdel -r ${gitlab_user}
|
id -u ${gitlab_user} && userdel -r ${gitlab_user}
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
echo "gitlab_user not set. Hence not removing user."
|
echo "gitlab_user not set. Hence not removing user."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue