From abd1b595797ae5e3cde6e93afb30ca83a37bb00a Mon Sep 17 00:00:00 2001 From: anmol26s Date: Sat, 6 Oct 2018 19:03:13 +0530 Subject: [PATCH] misnamed file name --- scripts/install | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index f14265f..0ba550a 100755 --- a/scripts/install +++ b/scripts/install @@ -136,7 +136,7 @@ ynh_replace_string "language" "$language" "$final_path/.env" # setup application config ( cd $final_path && sudo /usr/bin/php7.1 artisan monica:update --force ) ( cd $final_path && sudo /usr/bin/php7.1 artisan passport:client --password -n > key.txt ) -mobile_id=$( cd $final_path && tail -2 test.txt | head -1 | cut -c 12- ) +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" diff --git a/scripts/upgrade b/scripts/upgrade index f6abdee..b3c9d85 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -127,7 +127,7 @@ if [ -f $final_path/storage/oauth-private.key ]; then mobile_key=$(ynh_app_setting_get $app mobile_key) else ( cd $final_path && sudo /usr/bin/php7.1 artisan passport:client --password -n > key.txt ) - mobile_id=$( cd $final_path && tail -2 test.txt | head -1 | cut -c 12- ) + 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"