From c971286edd17e1acf0154dd05f655b6985ccec6b Mon Sep 17 00:00:00 2001 From: tituspijean Date: Wed, 13 Mar 2024 13:35:39 +0100 Subject: [PATCH] I want to love jq, but it is not reciprocal --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 34a18ba..6d0110f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -48,7 +48,7 @@ chown $app:$app "$install_dir/live/.env" # Fix SMTP configuration config_file=$data_dir/config.json -cat <<< $(jq -r --arg domain "$domain" '.smtp_host = "$domain"' $config_file) > $config_file +cat <<< $(jq -r --arg domain "$domain" '.smtp_host = $domain' $config_file) > $config_file cat <<< $(jq -r '.smtp_security = "starttls"' $config_file) > $config_file if [ ! -s "$config_file" ]; then ynh_die --message="Something went wrong while setting up the configuration file: it ended up empty."