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 #=================================================