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:
parent
b1f34a9625
commit
8bdf97a8f9
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue