[DRE-commits] [gitlab] 02/03: use command -v instead of test -x
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Tue Mar 14 13:19:11 UTC 2017
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository gitlab.
commit e154dc50b8302d0827144c5dd41c7150d3802848
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Tue Mar 14 17:27:22 2017 +0530
use command -v instead of test -x
---
debian/postrm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/postrm b/debian/postrm
index 10b1a8d..1326043 100644
--- a/debian/postrm
+++ b/debian/postrm
@@ -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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gitlab.git
More information about the Pkg-ruby-extras-commits
mailing list