use command -v instead of test -x
This commit is contained in:
parent
2c9069326b
commit
e154dc50b8
1 changed files with 1 additions and 1 deletions
2
debian/postrm
vendored
2
debian/postrm
vendored
|
@ -60,7 +60,7 @@ case "$1" in
|
|||
rm -rf ${gitlab_data_dir}
|
||||
if [ ! -z "${gitlab_user}" ]; then
|
||||
# Do only if gitlab_user is set
|
||||
if [ -x /usr/bin/dropdb ]; then
|
||||
if command -v dropdb >/dev/null; then
|
||||
echo "Removing Database: gitlab_production"
|
||||
su ${gitlab_user} -c 'psql gitlab_production -c ""' && su postgres -c "dropdb gitlab_production"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue