aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojciech Kosior <kwojtus@protonmail.com>2020-05-29 12:52:03 +0200
committerWojciech Kosior <kwojtus@protonmail.com>2020-05-29 12:52:03 +0200
commit251181f7e5d995e50736d6a86d29c3917e64af08 (patch)
treeae6f527e35c24eb085592fe0a7fd63e8ce615380
parente460c1713883eb0f8ebce3dfac2528bece88ecb8 (diff)
download0tdns-251181f7e5d995e50736d6a86d29c3917e64af08.tar.gz
0tdns-251181f7e5d995e50736d6a86d29c3917e64af08.zip
leave postgres management to django
-rwxr-xr-xcleanup_postgres.sh7
-rwxr-xr-xsetup_postgres.sh8
2 files changed, 0 insertions, 15 deletions
diff --git a/cleanup_postgres.sh b/cleanup_postgres.sh
deleted file mode 100755
index aff6989..0000000
--- a/cleanup_postgres.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-echo "Dropping 'ztdns' database and role"
-cat | sudo -u postgres psql <<EOF
-drop database ztdns;
-drop role ztdns;
-EOF
diff --git a/setup_postgres.sh b/setup_postgres.sh
deleted file mode 100755
index f026645..0000000
--- a/setup_postgres.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-
-echo "Creating 'ztdns' role"
-sudo -u postgres createuser --no-createdb --no-createrole \
- --no-superuser --pwprompt ztdns
-
-echo "Creating 'ztdns' database"
-sudo -u postgres createdb -O ztdns ztdns