Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Pecbridge management from WebTop's admin interface #79

Merged
merged 2 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
5 changes: 5 additions & 0 deletions postgres/data/init-data-nethserver.sql
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,8 @@ INSERT INTO core.settings (service_id, key, value) VALUES ('com.sonicle.webtop.m
-- Strip domain suffix when applying IMAP ACL
-- -----------------------------------------
INSERT INTO "core"."settings" ("service_id", "key", "value") VALUES ('com.sonicle.webtop.mail', 'acl.domainsuffix.policy.override', 'strip');

-- ----------------------------------------
-- Enable PEC Bridge management
-- ----------------------------------------
INSERT INTO "core"."settings" ("service_id","key","value") VALUES ('com.sonicle.webtop.core','config.pecbridge.management','true');
Loading