From 2149640286a423d5b1cda50acfcf3445acfb2097 Mon Sep 17 00:00:00 2001 From: "martin@piware.de" <> Date: Wed, 3 Dec 2008 05:54:54 -0800 Subject: [PATCH] cleanpg: fix init script invocation --- cleanpg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/* -- 2.39.5