From 32207df8035e6945427d8a2b3c9821f087ea2a34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Fri, 12 Jul 2024 21:43:23 +0200 Subject: [PATCH] Fix root install --- scripts/_common.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 7631af9..c852c75 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -35,7 +35,9 @@ _build_install_framagames() { ynh_secure_remove --file="$install_dir/www" mv -f "$install_dir/sources/dist" "$install_dir/www" cp -r "$install_dir/sources/games/"* "$install_dir/www" - mv -f "$install_dir/www/framagames/"* "$install_dir/www" + if [[ "$path" != "/" ]]; then + mv -f "$install_dir/www/$path/"* "$install_dir/www" + fi } #=================================================