1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/monica_ynh.git synced 2024-09-03 19:46:23 +02:00

Replace and wrong variable

This commit is contained in:
anmol26s 2018-10-06 19:13:18 +05:30
parent abd1b59579
commit 61153e3aca
2 changed files with 4 additions and 4 deletions

View file

@ -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 ) ( 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_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_keykey=$( cd $final_path && tail -1 key.txt | cut -c 16- )
ynh_replace_string "__IDENTITY__" "$id" "$final_path/.env" ynh_replace_string "__IDENTITY__" "$mobile_id" "$final_path/.env"
ynh_replace_string "__KEY__" "$key" "$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_id $mobile_id
ynh_app_setting_set $app mobile_key $mobile_key ynh_app_setting_set $app mobile_key $mobile_key
(cd $final_path && rm -f key.txt) (cd $final_path && rm -f key.txt)

View file

@ -129,8 +129,8 @@ else
( cd $final_path && sudo /usr/bin/php7.1 artisan passport:client --password -n > key.txt ) ( 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_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_keykey=$( cd $final_path && tail -1 key.txt | cut -c 16- )
ynh_replace_string "__IDENTITY__" "$id" "$final_path/.env" ynh_replace_string "__IDENTITY__" "$mobile_id" "$final_path/.env"
ynh_replace_string "__KEY__" "$key" "$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_id $mobile_id
ynh_app_setting_set $app mobile_key $mobile_key ynh_app_setting_set $app mobile_key $mobile_key
(cd $final_path && rm -f key.txt) (cd $final_path && rm -f key.txt)