X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=cleanpg;h=3719c345cc14657c43852ce6524d71e4d7043451;hp=475bce92ecb9bb385a206886127ee1620ad9f5ab;hb=32135a3616a6caf24b70d5a697ebf18b7637e3b0;hpb=f16aedf9bf5240a4e918cde643d4d2602cbd6db6 diff --git a/cleanpg b/cleanpg index 475bce9..3719c34 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/* +$SUDO rm -rf /etc/postgresql /var/lib/postgresql/ /var/log/postgresql/* /tmp/postgresql-testsuite/ /var/run/postgresql/*