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

Fix some more things at install time

This commit is contained in:
Salamandar 2024-07-12 13:35:02 +02:00
parent 6d53939019
commit 72b5bc82f2

View file

@ -15,6 +15,10 @@ _configure_framagames() {
--match_string="canonical: .*" \ --match_string="canonical: .*" \
--replace_string="canonical: https://$domain$path" --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" \ ynh_replace_string --target_file="$install_dir/sources/config/env.js" \
--match_string=": '/'," \ --match_string=": '/'," \
--replace_string=": '$path/'," --replace_string=": '$path/',"
@ -29,8 +33,7 @@ _build_install_framagames() {
mv -f "$install_dir/sources/dist" "$install_dir/www" mv -f "$install_dir/sources/dist" "$install_dir/www"
mv -f "$install_dir/sources/games/"* "$install_dir/www" mv -f "$install_dir/sources/games/"* "$install_dir/www"
# cp "$install_dir/www/fr/index.html" "$install_dir/www/index.html" mv -f "$install_dir/www/framagames/"* "$install_dir/www"
# cd public && for f in $(find -type l);do cp --remove-destination $(readlink -f $f) $f;done;
} }
#================================================= #=================================================