]> piware.de Git - bin.git/commitdiff
cleanpg: fix init script invocation
authormartin@piware.de <>
Wed, 3 Dec 2008 13:54:54 +0000 (05:54 -0800)
committermartin@piware.de <>
Wed, 3 Dec 2008 13:54:54 +0000 (05:54 -0800)
cleanpg

diff --git a/cleanpg b/cleanpg
index 475bce92ecb9bb385a206886127ee1620ad9f5ab..e238f183d968301b268c51e5aa3aa6919edcae0b 100755 (executable)
--- a/cleanpg
+++ b/cleanpg
@@ -2,7 +2,7 @@
 [ `id -u` = 0 ] || SUDO=sudo
 for v in 7.4 8.0 8.1 8.2 8.3; do
     i=/etc/init.d/postgresql-$v
-    [ -x $i ] && $i stop
+    [ -x $i ] && $SUDO $i stop
 done
 $SUDO killall pg_autovacuum postmaster postgres
 $SUDO rm -rf /etc/postgresql /var/lib/postgresql/ /var/log/postgresql/ /tmp/postgresql-testsuite/ /var/run/postgresql/*