Set secure connection as bool value (instead of string) (#119)

This commit is contained in:
Amadeusz Starzykiewicz 2021-12-02 10:14:12 +01:00 committed by GitHub
parent 86f04d5847
commit fc0c448b48
2 changed files with 2 additions and 2 deletions

View File

@ -292,7 +292,7 @@ EOF
ghost_conf_set "mail.transport" "SMTP"
ghost_conf_set "mail.options.host" "$GHOST_SMTP_HOST"
ghost_conf_set "mail.options.port" "$GHOST_SMTP_PORT_NUMBER" "int"
ghost_conf_set "mail.options.secureConnection" "$([[ "$GHOST_SMTP_PROTOCOL" = "ssl" || "$GHOST_SMTP_PROTOCOL" = "tls" ]] && echo "true" || echo "false")"
ghost_conf_set "mail.options.secureConnection" "$([[ "$GHOST_SMTP_PROTOCOL" = "ssl" || "$GHOST_SMTP_PROTOCOL" = "tls" ]] && echo "true" || echo "false")" "bool"
ghost_conf_set "mail.options.auth.user" "$GHOST_SMTP_USER"
ghost_conf_set "mail.options.auth.pass" "$GHOST_SMTP_PASSWORD"
fi

View File

@ -292,7 +292,7 @@ EOF
ghost_conf_set "mail.transport" "SMTP"
ghost_conf_set "mail.options.host" "$GHOST_SMTP_HOST"
ghost_conf_set "mail.options.port" "$GHOST_SMTP_PORT_NUMBER" "int"
ghost_conf_set "mail.options.secureConnection" "$([[ "$GHOST_SMTP_PROTOCOL" = "ssl" || "$GHOST_SMTP_PROTOCOL" = "tls" ]] && echo "true" || echo "false")"
ghost_conf_set "mail.options.secureConnection" "$([[ "$GHOST_SMTP_PROTOCOL" = "ssl" || "$GHOST_SMTP_PROTOCOL" = "tls" ]] && echo "true" || echo "false")" "bool"
ghost_conf_set "mail.options.auth.user" "$GHOST_SMTP_USER"
ghost_conf_set "mail.options.auth.pass" "$GHOST_SMTP_PASSWORD"
fi