From 61153e3acade85f9884b721467b0b540250b1ef5 Mon Sep 17 00:00:00 2001 From: anmol26s Date: Sat, 6 Oct 2018 19:13:18 +0530 Subject: [PATCH] Replace and wrong variable --- scripts/install | 4 ++-- scripts/upgrade | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 0ba550a..cc8e5fa 100755 --- a/scripts/install +++ b/scripts/install @@ -138,8 +138,8 @@ ynh_replace_string "language" "$language" "$final_path/.env" ( cd $final_path && sudo /usr/bin/php7.1 artisan passport:client --password -n > key.txt ) mobile_id=$( cd $final_path && tail -2 key.txt | head -1 | cut -c 12- ) mobile_keykey=$( cd $final_path && tail -1 key.txt | cut -c 16- ) -ynh_replace_string "__IDENTITY__" "$id" "$final_path/.env" -ynh_replace_string "__KEY__" "$key" "$final_path/.env" +ynh_replace_string "__IDENTITY__" "$mobile_id" "$final_path/.env" +ynh_replace_string "__KEY__" "$mobile_key" "$final_path/.env" ynh_app_setting_set $app mobile_id $mobile_id ynh_app_setting_set $app mobile_key $mobile_key (cd $final_path && rm -f key.txt) diff --git a/scripts/upgrade b/scripts/upgrade index b3c9d85..826bf06 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -129,8 +129,8 @@ else ( cd $final_path && sudo /usr/bin/php7.1 artisan passport:client --password -n > key.txt ) mobile_id=$( cd $final_path && tail -2 key.txt | head -1 | cut -c 12- ) mobile_keykey=$( cd $final_path && tail -1 key.txt | cut -c 16- ) - ynh_replace_string "__IDENTITY__" "$id" "$final_path/.env" - ynh_replace_string "__KEY__" "$key" "$final_path/.env" + ynh_replace_string "__IDENTITY__" "$mobile_id" "$final_path/.env" + ynh_replace_string "__KEY__" "$mobile_key" "$final_path/.env" ynh_app_setting_set $app mobile_id $mobile_id ynh_app_setting_set $app mobile_key $mobile_key (cd $final_path && rm -f key.txt)