epic-ts
authorMichael Wagner <michael@wagnertech.de>
Thu, 18 Feb 2021 19:24:52 +0000 (20:24 +0100)
committerMichael Wagner <michael@wagnertech.de>
Thu, 18 Feb 2021 19:24:52 +0000 (20:24 +0100)
Test/FitnessePages/AaNeuInstallation/.dummy [deleted file]
Test/FitnessePages/AaNeuInstallation/content.txt [deleted file]
Test/FitnessePages/AaNeuInstallation/properties.xml [deleted file]
Test/FitnessePages/AbAktualisierung/.dummy [deleted file]
Test/FitnessePages/AbAktualisierung/content.txt [deleted file]
Test/FitnessePages/AbAktualisierung/properties.xml [deleted file]
Test/FitnessePages/AbDeinstallieren/.dummy [new file with mode: 0644]
Test/FitnessePages/AdNeuInstallation/.dummy [new file with mode: 0644]
Test/FitnessePages/AlAktualisierung/.dummy [new file with mode: 0644]
Test/bin/remove-database [new file with mode: 0755]

diff --git a/Test/FitnessePages/AaNeuInstallation/.dummy b/Test/FitnessePages/AaNeuInstallation/.dummy
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/Test/FitnessePages/AaNeuInstallation/content.txt b/Test/FitnessePages/AaNeuInstallation/content.txt
deleted file mode 100644 (file)
index 657840f..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#!|test.util.CallScript|
-#|call script|sudo apt-get update|
-#|call script|sudo apt-get install kivitendo|
-
-Folgende Skripte im Verzeichnis Test ausführen:
-sudo apt-get update
-sudo apt-get install kivitendo
-
-Während der Installation werden auf der Kommandozeile diverse Passwörter gefragt. Immer "kivitendo" eingeben!
\ No newline at end of file
diff --git a/Test/FitnessePages/AaNeuInstallation/properties.xml b/Test/FitnessePages/AaNeuInstallation/properties.xml
deleted file mode 100644 (file)
index e9c80b9..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0"?>
-<properties>
-       <Edit/>
-       <Files/>
-       <Help/>
-       <Properties/>
-       <RecentChanges/>
-       <Refactor/>
-       <Search/>
-       <Static/>
-       <Suites/>
-       <Versions/>
-       <WhereUsed/>
-</properties>
diff --git a/Test/FitnessePages/AbAktualisierung/.dummy b/Test/FitnessePages/AbAktualisierung/.dummy
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/Test/FitnessePages/AbAktualisierung/content.txt b/Test/FitnessePages/AbAktualisierung/content.txt
deleted file mode 100644 (file)
index b6aefd9..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-Zur Aktualisierung der kivitendo-Installation sind folgende Kommandos auszuführen:
-
-sudo apt-get update
-sudo apt-get full-update
-
-Kontrolle der Version mit:
-
-apt-cache policy kivitendo
diff --git a/Test/FitnessePages/AbAktualisierung/properties.xml b/Test/FitnessePages/AbAktualisierung/properties.xml
deleted file mode 100644 (file)
index 72aa2b6..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0"?>
-<properties>
-       <Edit>true</Edit>
-       <Files>true</Files>
-       <Properties>true</Properties>
-       <RecentChanges>true</RecentChanges>
-       <Refactor>true</Refactor>
-       <Search>true</Search>
-       <Versions>true</Versions>
-       <WhereUsed>true</WhereUsed>
-</properties>
diff --git a/Test/FitnessePages/AbDeinstallieren/.dummy b/Test/FitnessePages/AbDeinstallieren/.dummy
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/Test/FitnessePages/AdNeuInstallation/.dummy b/Test/FitnessePages/AdNeuInstallation/.dummy
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/Test/FitnessePages/AlAktualisierung/.dummy b/Test/FitnessePages/AlAktualisierung/.dummy
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/Test/bin/remove-database b/Test/bin/remove-database
new file mode 100755 (executable)
index 0000000..5d4fcb0
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/bash
+set -e
+
+echo "GUI herunterfahren ..."
+systemctl stop apache2
+
+echo "Lösche bestende Datenbanken ..."
+su postgres -c "psql -c 'DROP DATABASE IF EXISTS kivitendo_auth;'"
+su postgres -c "psql -c 'DROP DATABASE IF EXISTS firma;'"
+
+echo "Lösche kivitendo-user"
+su postgres -c "psql -c 'DROP USER kivitendo;'"
+
+echo "GUI starten ..."
+systemctl start apache2
+
+main=$(ls -d /etc/postgresql/*/main/)
+awk '/kivitendo/ {
+               next; }
+       {print;}
+       ' $main/pg_hba.conf > /tmp/pg_hba.conf
+mv /tmp/pg_hba.conf $main/pg_hba.conf
+chown postgres:postgres $main/pg_hba.conf
+
+
+echo "ok."
+