diff --git a/scripts/install b/scripts/install index cc8e5fa..169a755 100755 --- a/scripts/install +++ b/scripts/install @@ -137,7 +137,7 @@ ynh_replace_string "language" "$language" "$final_path/.env" ( 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 key.txt | head -1 | cut -c 12- ) -mobile_keykey=$( cd $final_path && tail -1 key.txt | cut -c 16- ) +mobile_key=$( cd $final_path && tail -1 key.txt | cut -c 16- ) 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 diff --git a/scripts/upgrade b/scripts/upgrade index 826bf06..39236a0 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -128,7 +128,7 @@ if [ -f $final_path/storage/oauth-private.key ]; then 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- ) + mobile_key=$( cd $final_path && tail -1 key.txt | cut -c 16- ) 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