From 9e9c8e0051b7658a181e849a27904a2e8feb01a2 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Thu, 20 Jun 2019 16:51:42 +0000 Subject: Fixing PSQL setup --- deployments/00:01:23:45:67:89.json | 9 +++++---- 1 file 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, -- cgit v1.2.3-70-g09d2