diff --git a/scripts/_common.sh b/scripts/_common.sh index c851f6e..77186af 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -149,7 +149,7 @@ install_source() { if $install_on_root; then mv "$install_dir"/webapps/xwiki "$install_dir"/webapps/root - elif [ "$path" != /root ]; then + elif [ "$path" == /root ]; then ynh_die --message='Path "/root" not supported' elif [ "$path" != /xwiki ]; then mv "$install_dir"/webapps/xwiki "$install_dir"/webapps$path diff --git a/scripts/change_url b/scripts/change_url index f2812f8..77b52b4 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -30,6 +30,8 @@ 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 [ "$path" == /root ]; then + ynh_die --message='Path "/root" not supported' elif [ $old_path == / ]; then mv "$install_dir"/webapps/root "$install_dir"/webapps$new_path else