mirror of
https://github.com/YunoHost-Apps/vaultwarden_ynh.git
synced 2024-09-03 18:26:31 +02:00
Fix SMTP config and detect jq failure
This commit is contained in:
parent
ba99d211ad
commit
82d02128f0
1 changed files with 4 additions and 1 deletions
|
@ -49,7 +49,10 @@ 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 '.smtp_security = starttls' $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."
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# REAPPLY SYSTEM CONFIGURATIONS
|
||||
|
|
Loading…
Reference in a new issue