From 23f93f9b6f881ff85199ad5705554822e85b3092 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 16 Jul 2021 19:39:12 +0200 Subject: [PATCH] fix --- scripts/install | 4 +--- scripts/upgrade | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index 5b26b47..369993a 100755 --- a/scripts/install +++ b/scripts/install @@ -65,9 +65,7 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path # Download, the source from sources folder mkdir -p $final_path && cp -a ../sources/* $final_path - -ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file="$final_path/index.html" -ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$final_path/index.html" +ynh_add_config --template="../sources/index.html" --destination="$final_path/index.html" chmod 750 "$final_path" chmod -R o-rwx "$final_path" diff --git a/scripts/upgrade b/scripts/upgrade index 74b243e..7344212 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -78,8 +78,7 @@ then # Download, the source from sources folder mkdir -p $final_path && cp -a ../sources/* $final_path - ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file="$final_path/index.html" - ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$final_path/index.html" + ynh_add_config --template="../sources/index.html" --destination="$final_path/index.html" fi chmod 750 "$final_path"