1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nodebb_ynh.git synced 2024-09-03 19:46:29 +02:00

Update change_url

This commit is contained in:
ericgaspar 2021-09-01 15:44:46 +02:00
parent 795dc7d0a7
commit 4d7c9a23cd
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -111,12 +111,7 @@ fi
# CONFIGURE CONFIG.JSON FILE # CONFIGURE CONFIG.JSON FILE
#================================================= #=================================================
domain="$new_domain" ynh_replace_string --match_string="\"url\": \".*\"" --replace_string="\"url\": \"https://${new_domain}${new_path}\"" --target_file="$final_path/config.json"
path="$new_path"
ynh_add_config --template="../conf/config.json" --destination="$final_path/config.json"
chmod 666 "$final_path/config.json"
chown $app "$final_path/config.json"
#================================================= #=================================================
# GENERIC FINALISATION # GENERIC FINALISATION