diff options
| author | yalh76 <yalh@yahoo.com> | 2019-10-10 21:22:19 +0200 |
|---|---|---|
| committer | yalh76 <yalh@yahoo.com> | 2019-10-10 21:22:19 +0200 |
| commit | bbc6bbe91d0f4b42e83996079c37935ab1f6e553 (patch) | |
| tree | 10c5ada378aad9aa82406a4287dd07ec9f8dccfe /scripts/install | |
| parent | 7e8d2cee5094cafb77954489e75674a636bcc3af (diff) | |
| download | mastodon_ynh-bbc6bbe91d0f4b42e83996079c37935ab1f6e553.tar.gz mastodon_ynh-bbc6bbe91d0f4b42e83996079c37935ab1f6e553.tar.bz2 mastodon_ynh-bbc6bbe91d0f4b42e83996079c37935ab1f6e553.zip | |
Fix VAPID_KEY
Diffstat (limited to 'scripts/install')
| -rw-r--r-- | scripts/install | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/install b/scripts/install index dafdfc8..2519364 100644 --- a/scripts/install +++ b/scripts/install @@ -199,8 +199,8 @@ popd admin_pass=$( tail -1 $final_path/live/acc.txt | head -1 | cut -c 15- ) ynh_secure_remove --file="$final_path/live/acc.txt" -vapid_private_key=$(grep -oP "VAPID_PRIVATE_KEY=\K\w+" "$final_path/live/key.txt") -vapid_public_key=$(grep -oP "VAPID_PUBLIC_KEY=\K\w+" "$final_path/live/key.txt") +vapid_private_key=$(grep -oP "VAPID_PRIVATE_KEY=\K.+" "$final_path/live/key.txt") +vapid_public_key=$(grep -oP "VAPID_PUBLIC_KEY=\K.+" "$final_path/live/key.txt") ynh_replace_string --match_string="__VAPID_PRIVATE_KEY__" --replace_string="$vapid_private_key" --target_file="${final_path}/live/.env.production" ynh_replace_string --match_string="__VAPID_PUBLIC_KEY__" --replace_string="$vapid_public_key" --target_file="${final_path}/live/.env.production" |
