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
5d30585149
commit
55b312fd29
1 changed files with 8 additions and 1 deletions
|
@ -99,7 +99,7 @@ then
|
|||
fi
|
||||
|
||||
#=================================================
|
||||
# ADD A CONFIGURATION
|
||||
# UPGRADE A CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Updating a configuration file..." --weight=1
|
||||
|
||||
|
@ -107,6 +107,13 @@ domain=$new_domain
|
|||
path_url=$new_path
|
||||
ynh_replace_string --match_string="wwwroot = '.*';" --replace_string="wwwroot = 'https://${domain}${path_url%/}';" --target_file="$final_path/config.php"
|
||||
|
||||
#=================================================
|
||||
# RELOAD NGINX
|
||||
#=================================================
|
||||
ynh_script_progression --message="Reloading NGINX web server..." --weight=1
|
||||
|
||||
ynh_systemd_action --service_name=nginx --action=reload
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue