aboutsummaryrefslogtreecommitdiff
path: root/scripts/upgrade
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2019-10-10 21:22:19 +0200
committeryalh76 <yalh@yahoo.com>2019-10-10 21:22:19 +0200
commitbbc6bbe91d0f4b42e83996079c37935ab1f6e553 (patch)
tree10c5ada378aad9aa82406a4287dd07ec9f8dccfe /scripts/upgrade
parent7e8d2cee5094cafb77954489e75674a636bcc3af (diff)
downloadmastodon_ynh-bbc6bbe91d0f4b42e83996079c37935ab1f6e553.tar.gz
mastodon_ynh-bbc6bbe91d0f4b42e83996079c37935ab1f6e553.tar.bz2
mastodon_ynh-bbc6bbe91d0f4b42e83996079c37935ab1f6e553.zip
Fix VAPID_KEY
Diffstat (limited to 'scripts/upgrade')
-rw-r--r--scripts/upgrade8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/upgrade b/scripts/upgrade
index 563b983..38d85ea 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -118,8 +118,8 @@ fi
# If vapid_private_key doesn't exist, retrieve it or create it
if [[ -z "$vapid_private_key" ]]; then
- vapid_private_key=$(grep -oP "VAPID_PRIVATE_KEY=\K\w+" ${final_path}/live/.env.production)
- vapid_public_key=$(grep -oP "VAPID_PUBLIC_KEY=\K\w+" ${final_path}/live/.env.production)
+ vapid_private_key=$(grep -oP "VAPID_PRIVATE_KEY=\K.+" ${final_path}/live/.env.production)
+ vapid_public_key=$(grep -oP "VAPID_PUBLIC_KEY=\K.+" ${final_path}/live/.env.production)
ynh_app_setting_set "$app" vapid_private_key "$vapid_private_key"
ynh_app_setting_set "$app" vapid_public_key "$vapid_public_key"
fi
@@ -281,8 +281,8 @@ popd
# If vapid_private_key doesn't exist, retrieve it or create it
#if [[ -z "$vapid_private_key" ]]; then
# sudo -u "$app" env PATH=$PATH RAILS_ENV=production /opt/rbenv/versions/2.6.0/bin/bundle exec rake mastodon:webpush:generate_vapid_key > key.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_app_setting_set "$app" vapid_private_key "$vapid_private_key"
# ynh_app_setting_set "$app" vapid_public_key "$vapid_public_key"
# ynh_secure_remove "$final_path/live/key.txt"