1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/framagames_ynh.git synced 2024-09-03 18:36:28 +02:00

Fix root install

This commit is contained in:
Salamandar 2024-07-12 21:43:23 +02:00
parent 78f63b157e
commit 32207df803

View file

@ -35,7 +35,9 @@ _build_install_framagames() {
ynh_secure_remove --file="$install_dir/www" ynh_secure_remove --file="$install_dir/www"
mv -f "$install_dir/sources/dist" "$install_dir/www" mv -f "$install_dir/sources/dist" "$install_dir/www"
cp -r "$install_dir/sources/games/"* "$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
} }
#================================================= #=================================================