Skip to content

Commit

Permalink
Migrate webtop-pecbridge configuration and handle empty AdminMail
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Sep 20, 2024
1 parent a3de551 commit d9abd07
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,21 +95,21 @@ rsync "${RSYNC_ENDPOINT}"/terminate

# Wait until the import-module task has completed
ns8-action --attach wait "${IMPORT_TASK_ID}"

# Repeat the configure-module if it fails because mail module is not found
while ! ns8-action --attach "module/${MODULE_INSTANCE_ID}" configure-module "$(
/sbin/e-smith/config printjson webtop |
jq -c \
--arg hostname "${WEBTOP_VHOST}" \
--arg mail_domain "$(hostname -d)" \
--arg mail_module "${MAIL_INSTANCE_ID}" \
--arg AdminMail "$(/sbin/e-smith/config getprop webtop-pecbridge AdminMail)" \
'.props | {
"hostname": $hostname,
"mail_module": $mail_module,
"mail_domain": $mail_domain,
"timezone": .DefaultTimezone,
"locale": .DefaultLocale,
"pecbridge_admin_mail": (.AdminMail // ""),
"pecbridge_admin_mail": $AdminMail,
"webapp": {
"debug": (.Debug == "true"),
"min_memory": (.MinMemory | tonumber),
Expand Down

0 comments on commit d9abd07

Please sign in to comment.