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:
parent
004326092a
commit
4248da4432
1 changed files with 3 additions and 4 deletions
|
@ -96,10 +96,9 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Updating a configuration file..." --weight=1
|
ynh_script_progression --message="Updating a configuration file..." --weight=1
|
||||||
|
|
||||||
domain=$new_domain
|
domain=${new_domain%/}
|
||||||
path_url=$new_path
|
path_url=${new_path%/}
|
||||||
#ynh_replace_string --match_string="wwwroot = \'https://.*\';" --replace_string="wwwroot = \'https://${domain}${path_url%/}\';" --target_file="$final_path/config.php"
|
ynh_replace_string --match_string="wwwroot = \'https://.*\';" --replace_string="wwwroot = \'https://$domain$path_url\';" --target_file="$final_path/config.php"
|
||||||
sed "s~https\?://\([^/]\+\)\(.*\)\(/.*\)~https://\${domain}\${path_url%\/\2~" $final_path/config.php
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RELOAD NGINX
|
# RELOAD NGINX
|
||||||
|
|
Loading…
Reference in a new issue