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:
parent
c8c9cc4c33
commit
ba99d211ad
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue