From: martin@piware.de <> Date: Wed, 3 Dec 2008 13:54:54 +0000 (-0800) Subject: cleanpg: fix init script invocation X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=commitdiff_plain;h=2149640286a423d5b1cda50acfcf3445acfb2097 cleanpg: fix init script invocation --- diff --git a/cleanpg b/cleanpg index 475bce9..e238f18 100755 --- 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/*