From 72b5bc82f278dc33c8f56872248cf6eb12371066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Fri, 12 Jul 2024 13:35:02 +0200 Subject: [PATCH] Fix some more things at install time --- scripts/_common.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index b220b5e..1b9fcaf 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -15,6 +15,10 @@ _configure_framagames() { --match_string="canonical: .*" \ --replace_string="canonical: https://$domain$path" + ynh_replace_string --target_file="$install_dir/sources/src/data/main.yml" \ + --match_string="framanav: true" \ + --replace_string="framanav: false" + ynh_replace_string --target_file="$install_dir/sources/config/env.js" \ --match_string=": '/'," \ --replace_string=": '$path/'," @@ -29,8 +33,7 @@ _build_install_framagames() { mv -f "$install_dir/sources/dist" "$install_dir/www" mv -f "$install_dir/sources/games/"* "$install_dir/www" - # cp "$install_dir/www/fr/index.html" "$install_dir/www/index.html" - # cd public && for f in $(find -type l);do cp --remove-destination $(readlink -f $f) $f;done; + mv -f "$install_dir/www/framagames/"* "$install_dir/www" } #=================================================