4 echo "GUI herunterfahren ..."
7 echo "Lösche bestende Datenbanken ..."
8 su postgres -c "psql -c 'DROP DATABASE IF EXISTS kivitendo_auth;'"
9 su postgres -c "psql -c 'DROP DATABASE IF EXISTS firma;'"
11 echo "Lösche kivitendo-user"
12 su postgres -c "psql -c 'DROP USER kivitendo;'"
14 echo "GUI starten ..."
15 systemctl start apache2
17 main=$(ls -d /etc/postgresql/*/main/)
21 ' $main/pg_hba.conf > /tmp/pg_hba.conf
22 mv /tmp/pg_hba.conf $main/pg_hba.conf
23 chown postgres:postgres $main/pg_hba.conf