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

Add a step in change_url

This commit is contained in:
Salamandar 2020-06-10 15:37:29 +02:00
parent b1f34a9625
commit 8bdf97a8f9

View file

@ -71,6 +71,8 @@ fi
#=================================================
# SET NEW URL
#=================================================
ynh_script_progression --message="Setting the new URL..." --weight=1
if [ $change_domain -eq 1 ]
then
ynh_replace_string --match_string="\$wgServer = \"https://$old_domain\";" --replace_string="\$wgServer = \"https://$new_domain\";" --target_file="$final_path/LocalSettings.php"
@ -91,7 +93,7 @@ then
fi
ynh_replace_string --match_string="\$wgScriptPath = \"$old_scriptpath\";" --replace_string="\$wgScriptPath = \"$new_scriptpath\";" --target_file="$final_path/LocalSettings.php"
fi
fi
#=================================================
# RELOAD NGINX