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

Update change_url

This commit is contained in:
ericgaspar 2021-08-18 14:43:42 +02:00
parent ded1f916bd
commit ab0b5505eb
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -97,10 +97,10 @@ ynh_script_progression --message="Updating a configuration file..." --weight=1
domain=${new_domain%/}
path="/${new_path%/}"
#sed "s/wwwroot = '.*'/wwwroot = 'https:\/\/new_domain path'/" $final_path/config.php
sed "s/wwwroot = '.*'/wwwroot = \'https:\/\/$domain$path\'/" $final_path/config.php
ynh_replace_string --match_string="\$CFG->wwwroot = .*" --replace_string="\$CFG->wwwroot = 'https://' . '${new_domain%/}' . '${new_path%/}';" --target_file="$final_path/config.php"
sed -i "s/wwwroot = '.*'/wwwroot = \'https:\/\/$domain$path\'/" "$final_path/config.php"
#ynh_replace_string --match_string="\$CFG->wwwroot = .*" --replace_string="\$CFG->wwwroot = 'https://' . '${new_domain%/}' . '${new_path%/}';" --target_file="$final_path/config.php"
#=================================================
# RELOAD NGINX