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

Removed new line

This commit is contained in:
anmol 2020-10-15 20:56:34 +05:30
parent 285b0854c5
commit 438d534749
2 changed files with 6 additions and 6 deletions

View file

@ -156,8 +156,8 @@ pushd "$final_path"
full_private_key="PASSPORT_PRIVATE_KEY="\"$private_key\"
public_key=$(sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g' storage/oauth-public.key)
full_public_key="PASSPORT_PUBLIC_KEY="\"$public_key\"
echo "\n#Output the private key\n$full_private_key" >> .env
echo "\n#Output the public key\n$full_public_key" >> .env
echo "$full_private_key" >> .env
echo "$full_public_key" >> .env
ynh_replace_string --match_string="__IDENTITY__" --replace_string="$mobile_id" --target_file="$config"
ynh_replace_string --match_string="__KEY__" --replace_string="$mobile_key" --target_file="$config"
ynh_app_setting_set --app=$app --key=mobile_id --value=$mobile_id

View file

@ -192,8 +192,8 @@ if [ -f $final_path/storage/oauth-private.key ]; then
ynh_replace_string --match_string="__IDENTITY__" --replace_string="$mobile_id" --target_file="$config"
ynh_replace_string --match_string="__KEY__" --replace_string="$mobile_key" --target_file="$config"
echo "\n#Output the private key\n$full_private_key" >> $final_path/.env
echo "\n#Output the public key\n$full_public_key" >> $final_path/.env
echo "$full_private_key" >> $final_path/.env
echo "$full_public_key" >> $final_path/.env
else
pushd "$final_path"
php$phpversion artisan down --retry="10"
@ -206,8 +206,8 @@ else
full_private_key="PASSPORT_PRIVATE_KEY="\"$private_key\"
public_key=$(sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g' storage/oauth-public.key)
full_public_key="PASSPORT_PUBLIC_KEY="\"$public_key\"
echo "\n#Output the private key\n$full_private_key" >> .env
echo "\n#Output the public key\n$full_public_key" >> .env
echo "$full_private_key" >> .env
echo "$full_public_key" >> .env
ynh_replace_string --match_string="__IDENTITY__" --replace_string="$mobile_id" --target_file="$config"
ynh_replace_string --match_string="__KEY__" --replace_string="$mobile_key" --target_file="$config"
ynh_app_setting_set --app=$app --key=mobile_id --value=$mobile_id