From ee37195a5c145f4dc4ea0388d3cea659dadf0baf Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 9 May 2022 18:44:43 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 576eb7d..3116acc 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -170,8 +170,8 @@ else ynh_exec_warn_less ynh_exec_as $app php$phpversion artisan passport:client --password -n > key.txt mobile_id=$( tail -2 key.txt | head -1 | cut -c 12- ) mobile_key=$( tail -1 key.txt | cut -c 16- ) - ynh_replace_string --match_string="MOBILE_ID" --replace_string="$mobile_id" --target_file="$config" - ynh_replace_string --match_string="MOBILE_KEY" --replace_string="$mobile_key" --target_file="$config" + ynh_replace_string --match_string="MOBILE_ID" --replace_string="$mobile_id" --target_file="$config" + ynh_replace_string --match_string="MOBILE_KEY" --replace_string="$mobile_key" --target_file="$config" ynh_app_setting_set --app=$app --key=mobile_id --value=$mobile_id ynh_app_setting_set --app=$app --key=mobile_key --value=$mobile_key ynh_secure_remove --file="$final_path/key.txt"