Skip to content

Commit

Permalink
update.module.d: set default calendar scheduler
Browse files Browse the repository at this point in the history
The time resolution of the scheduler will be set to 15 minutes.
  • Loading branch information
Amygos committed Sep 25, 2024
1 parent 34122d1 commit 8fa6105
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 @@ -18,5 +18,7 @@ with subprocess.Popen(['podman', 'exec', '-i', 'postgres', 'psql', '-qU', 'postg
print("INSERT INTO \"core\".\"settings\" (service_id, key, value) VALUES ('com.sonicle.webtop.core', 'config.pecbridge.management', 'true');\n", file=psql.stdin)
print("DELETE FROM \"core\".\"settings\" WHERE service_id = 'com.sonicle.webtop.core' AND key = 'default.startup.service';\n", file=psql.stdin)
print("INSERT INTO \"core\".\"settings\" (service_id, key, value) VALUES ('com.sonicle.webtop.core', 'default.startup.service', 'com.sonicle.webtop.mail');\n", file=psql.stdin)
print("DELETE FROM \"core\".\"settings\" WHERE service_id = 'com.sonicle.webtop.calendar' AND key = 'default.scheduler.timeresolution';\n", file=psql.stdin)
print("INSERT INTO \"core\".\"settings\" (service_id, key, value) VALUES ('com.sonicle.webtop.calendar', 'default.scheduler.timeresolution', '15');\n", file=psql.stdin)

agent.assert_exp(psql.returncode == 0) # check the command is succesfull

0 comments on commit 8fa6105

Please sign in to comment.