From bc0f84c2b88a1c4184f34d0f3aa0ee9f5a819b40 Mon Sep 17 00:00:00 2001 From: Matteo Valentini Date: Tue, 24 Sep 2024 12:12:26 +0200 Subject: [PATCH] update-module.d: enable pecbridge management Make sure that pecbridge management is enabled. --- imageroot/update-module.d/11update_settings | 2 ++ 1 file changed, 2 insertions(+) diff --git a/imageroot/update-module.d/11update_settings b/imageroot/update-module.d/11update_settings index 95eed548..cb0b3955 100755 --- a/imageroot/update-module.d/11update_settings +++ b/imageroot/update-module.d/11update_settings @@ -14,5 +14,7 @@ with subprocess.Popen(['podman', 'exec', '-i', 'postgres', 'psql', '-qU', 'postg print("INSERT INTO \"core\".\"settings\" (service_id, key, value) VALUES ('com.sonicle.webtop.mail', 'acl.domainsuffix.policy.override', 'strip');\n", file=psql.stdin) print("CREATE TABLE IF NOT EXISTS ns8_webtop_init (initialized INTEGER);\n", file=psql.stdin) print("INSERT INTO ns8_webtop_init (initialized) SELECT 1 WHERE NOT EXISTS (SELECT 1 FROM ns8_webtop_init);\n", file=psql.stdin) + print("DELETE FROM \"core\".\"settings\" WHERE service_id = 'com.sonicle.webtop.core' AND key = 'config.pecbridge.management';\n", file=psql.stdin) + print("INSERT INTO \"core\".\"settings\" (service_id, key, value) VALUES ('com.sonicle.webtop.core', 'config.pecbridge.management', 'true');\n", file=psql.stdin) agent.assert_exp(psql.returncode == 0) # check the command is succesfull