]> piware.de Git - bin.git/blob - cleanpg
e238f183d968301b268c51e5aa3aa6919edcae0b
[bin.git] / cleanpg
1 #!/bin/sh
2 [ `id -u` = 0 ] || SUDO=sudo
3 for v in 7.4 8.0 8.1 8.2 8.3; do
4     i=/etc/init.d/postgresql-$v
5     [ -x $i ] && $SUDO $i stop
6 done
7 $SUDO killall pg_autovacuum postmaster postgres
8 $SUDO rm -rf /etc/postgresql /var/lib/postgresql/ /var/log/postgresql/ /tmp/postgresql-testsuite/ /var/run/postgresql/*