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

Try to fix install domain/path

This commit is contained in:
Salamandar 2024-07-12 13:17:58 +02:00
parent ec94cd403d
commit 529a64c6d7

View file

@ -25,6 +25,19 @@ ynh_setup_source --dest_dir="$install_dir/sources"
chmod -R o-rwx "$install_dir"
chown -R "$app:www-data" "$install_dir"
#=================================================
# CONFIGURE APP
#=================================================
ynh_script_progression --message="Configuring $app..."
ynh_replace_string --target_file="$install_dir/sources/src/data/main.yml" \
--match_string="canonical: .*" \
--replace_string="canonical: https://$domain$path"
ynh_replace_string --target_file="$install_dir/sources/config/env.js" \
--match_string=": '/'," \
--replace_string=": '$path/',"
#=================================================
# BUILD APP
#=================================================