]> piware.de Git - bin.git/blobdiff - cleanpg
postinst-setup-fedora: install texlive-german
[bin.git] / cleanpg
diff --git a/cleanpg b/cleanpg
index 475bce92ecb9bb385a206886127ee1620ad9f5ab..3719c345cc14657c43852ce6524d71e4d7043451 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/*
+$SUDO rm -rf /etc/postgresql /var/lib/postgresql/ /var/log/postgresql/* /tmp/postgresql-testsuite/ /var/run/postgresql/*