From c306d72a0fd08d31f4c07a4b7387492adf445101 Mon Sep 17 00:00:00 2001 From: maniack Date: Mon, 24 Jun 2019 12:09:40 +0200 Subject: [PATCH] replace_special_string for password --- scripts/install | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index d9a2d40..507031a 100755 --- a/scripts/install +++ b/scripts/install @@ -102,7 +102,7 @@ then ynh_replace_string --match_string="__YNH_UPLOAD_PASSWORD__" --replace_string="" --target_file="$jirafeauconfigfile" ynh_app_setting_set --app=$app --key=upload_password --value="" else - ynh_replace_string --match_string="__YNH_UPLOAD_PASSWORD__" --replace_string="'$upload_password'" --target_file="$jirafeauconfigfile" + ynh_replace_special_string --match_string="__YNH_UPLOAD_PASSWORD__" --replace_string="'$upload_password'" --target_file="$jirafeauconfigfile" ynh_app_setting_set --app=$app --key=upload_password --value="$upload_password" fi ynh_print_ON diff --git a/scripts/upgrade b/scripts/upgrade index b97c573..8aaae53 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -129,7 +129,7 @@ then ynh_replace_string --match_string="__YNH_UPLOAD_PASSWORD__" --replace_string="" --target_file="$jirafeauconfigfile" ynh_app_setting_set --app=$app --key=upload_password --value="" else - ynh_replace_string --match_string="__YNH_UPLOAD_PASSWORD__" --replace_string="'$upload_password'" --target_file="$jirafeauconfigfile" + ynh_replace_special_string --match_string="__YNH_UPLOAD_PASSWORD__" --replace_string="'$upload_password'" --target_file="$jirafeauconfigfile" ynh_app_setting_set --app=$app --key=upload_password --value="$upload_password" fi ynh_print_ON