From dfcab689ac61d244e6fef5e01e1fd403cb19efa9 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Fri, 21 Jun 2019 12:03:52 +0000 Subject: Error creating pdns user --- deployments/00:01:23:45:67:89.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'deployments/00:01:23:45:67:89.json') diff --git a/deployments/00:01:23:45:67:89.json b/deployments/00:01:23:45:67:89.json index 7b665d4c..23f83653 100644 --- a/deployments/00:01:23:45:67:89.json +++ b/deployments/00:01:23:45:67:89.json @@ -12,7 +12,7 @@ "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 '{db_pass}';\"'" : {"boot" : true, "debug" : true}, + "su - postgres -c 'psql -c \"CREATE USER pdns WITH ENCRYPTED PASSWORD \\'{db_pass}\\';\"'" : {"boot" : true, "debug" : true}, "su - postgres -c 'psql -c \"GRANT ALL PRIVILEGES ON DATABASE pdns TO pdns;\"'" : {"boot" : true, "debug" : true}, "psql -U pdns -d pdns -a -f /usr/share/doc/powerdns/schema.pgsql.sql" : {"boot" : true, "debug" : true}, "echo '{db_pass}' > /mnt/root/db_pass.txt" : {"no-chroot" : true, "pass-args" : true}, -- cgit v1.2.3-70-g09d2