Skip to content

Commit

Permalink
update-module.d: enable pecbridge management
Browse files Browse the repository at this point in the history
Make sure that pecbridge management is enabled.
  • Loading branch information
Amygos committed Sep 24, 2024
1 parent 8d14026 commit bc0f84c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions imageroot/update-module.d/11update_settings
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bc0f84c

Please sign in to comment.