summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-03-19 22:08:09 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-06-17 13:21:27 +0200
commitf1e4df063fd4d73c7bbf58f192ef40c8a70305e6 (patch)
treec8089d878c51e69684cab18ab84f0e171ab294fa /install
parent13c31bdcf9e20d1442865598ec1b0774073b885b (diff)
downloadIshtar-f1e4df063fd4d73c7bbf58f192ef40c8a70305e6.tar.bz2
Ishtar-f1e4df063fd4d73c7bbf58f192ef40c8a70305e6.zip
Remove debug
Diffstat (limited to 'install')
-rwxr-xr-xinstall/ishtar-delete-instance14
1 files changed, 7 insertions, 7 deletions
diff --git a/install/ishtar-delete-instance b/install/ishtar-delete-instance
index d2f5115c4..46b0d86c6 100755
--- a/install/ishtar-delete-instance
+++ b/install/ishtar-delete-instance
@@ -86,13 +86,6 @@ do_delete_instance() {
rm -f "$UWSGI_AVAILABLE_PATH/ishtar-$INSTANCE.ini"
rm -f "$UWSGI_ENABLE_PATH/ishtar-$INSTANCE.ini"
- DB_NAME="ishtar-$INSTANCE"
- export DB_NAME
- su postgres <<'EOF'
- dropdb "$DB_NAME"
- dropuser "$DB_NAME"
-EOF
-
if [ -v USE_CELERY ]; then
systemctl disable celery-$INSTANCE
systemctl stop celery-$INSTANCE
@@ -103,6 +96,13 @@ EOF
systemctl daemon-reload
fi
+ DB_NAME="ishtar-$INSTANCE"
+ export DB_NAME
+ su postgres <<'EOF'
+ dropdb "$DB_NAME"
+ dropuser "$DB_NAME"
+EOF
+
echo ""
cecho g $to_delete" have been completly removed"
echo ""