diff --git a/scripts/change_url b/scripts/change_url index f8b9ee2..f2812f8 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -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