1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/vaultwarden_ynh.git synced 2024-09-03 18:26:31 +02:00

Fix SMTP config in config.json

This commit is contained in:
tituspijean 2024-03-13 13:06:25 +01:00 committed by GitHub
parent c8c9cc4c33
commit ba99d211ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,6 +46,11 @@ ynh_add_config --template="vaultwarden.env" --destination="$install_dir/live/.en
chmod 400 "$install_dir/live/.env"
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
#=================================================
# REAPPLY SYSTEM CONFIGURATIONS
#=================================================