mirror of
https://github.com/YunoHost-Apps/xwiki_ynh.git
synced 2024-09-03 20:36:11 +02:00
fix change url
This commit is contained in:
parent
a37a824bd7
commit
43b69c2c35
1 changed files with 10 additions and 0 deletions
|
@ -26,6 +26,16 @@ ynh_script_progression --message="Updating NGINX web server configuration..." --
|
|||
ynh_change_url_nginx_config
|
||||
|
||||
ynh_script_progression --message="Updating xwiki configuration..." --weight=1
|
||||
|
||||
if [ $new_path != $old_path ]; then
|
||||
if $install_on_root; then
|
||||
mv "$install_dir"/webapps$old_path "$install_dir"/webapps/root
|
||||
elif [ $old_path == / ]; then
|
||||
mv "$install_dir"/webapps/root "$install_dir"/webapps$new_path
|
||||
else
|
||||
mv "$install_dir"/webapps$old_path "$install_dir"/webapps$new_path
|
||||
fi
|
||||
fi
|
||||
add_config
|
||||
set_permissions
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue