From 529a64c6d7155c83dbc85c54f80f8f09d0b5ebed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Fri, 12 Jul 2024 13:17:58 +0200 Subject: [PATCH] Try to fix install domain/path --- scripts/install | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/install b/scripts/install index aa81991..aa29251 100644 --- a/scripts/install +++ b/scripts/install @@ -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 #=================================================