From 43b69c2c35aef28a8fc47dc17fc2d7eb52526999 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Mon, 18 Dec 2023 23:04:48 +0100 Subject: [PATCH] fix change url --- scripts/change_url | 10 ++++++++++ 1 file changed, 10 insertions(+) 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