Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/deployments
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2019-06-20 16:51:42 +0000
committerAnton Hvornum <anton.feeds@gmail.com>2019-06-20 16:51:42 +0000
commit9e9c8e0051b7658a181e849a27904a2e8feb01a2 (patch)
treec5da4614f3b04ce1a1923e82904bf8a2e3c91379 /deployments
parent430f5bda2e8c1a222f14b3e41b7bc5f3d229bf71 (diff)
Fixing PSQL setup
Diffstat (limited to 'deployments')
-rw-r--r--deployments/00:01:23:45:67:89.json9
1 files changed, 5 insertions, 4 deletions
diff --git a/deployments/00:01:23:45:67:89.json b/deployments/00:01:23:45:67:89.json
index 5f49a951..cb8cf866 100644
--- a/deployments/00:01:23:45:67:89.json
+++ b/deployments/00:01:23:45:67:89.json
@@ -5,14 +5,15 @@
"packages" : "openssh sudo openvpn easy-rsa",
"post" : "stay",
"country" : "SE",
- "mirrors" : true
+ "mirrors" : true,
+ "rerun" : "install database"
},
"post" : {
"install database": "postgresql",
"Configure database": {
- "su - postgres -c \"psql -c \\\"CREATE DATABASE pdns;\\\"\"" : {"boot" : true, "debug" : true},
- "su - postgres -c \"psql -c \\\"CREATE USER pdns WITH ENCRYPTED PASSWORD 'testpass';\\\"\"" : {"boot" : true, "debug" : true},
- "su - postgres -c \"psql -c \\\"GRANT ALL PRIVILEGES ON DATABASE pdns TO pdns;\\\"\"" : {"boot" : true, "debug" : true}
+ "su - postgres -c 'psql -c \"CREATE DATABASE pdns;\"'" : {"boot" : true, "debug" : true},
+ "su - postgres -c 'psql -c \"CREATE USER pdns WITH ENCRYPTED PASSWORD 'testpass';\"'" : {"boot" : true, "debug" : true},
+ "su - postgres -c 'psql -c \"GRANT ALL PRIVILEGES ON DATABASE pdns TO pdns;\"'" : {"boot" : true, "debug" : true}
},
"Configure OpenVPN" : {
"mkdir -p /etc/openvpn/server/vpn_ccd" : null,