diff options
| author | yalh76 <yalh@yahoo.com> | 2020-05-18 22:33:31 +0200 |
|---|---|---|
| committer | yalh76 <yalh@yahoo.com> | 2020-05-18 22:33:31 +0200 |
| commit | 0e27aab64a45ecdae0ce2b4500e81f72f28f9293 (patch) | |
| tree | 0bc90976fe98bd9afbe47531a2b2693877436da6 /scripts | |
| parent | 93f2e6201a0692f0665148b5d5776217f1c06ba7 (diff) | |
| download | mastodon_ynh-0e27aab64a45ecdae0ce2b4500e81f72f28f9293.tar.gz mastodon_ynh-0e27aab64a45ecdae0ce2b4500e81f72f28f9293.tar.bz2 mastodon_ynh-0e27aab64a45ecdae0ce2b4500e81f72f28f9293.zip | |
remove not needed code
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/upgrade | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/scripts/upgrade b/scripts/upgrade index 88947cf..1c78242 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -293,18 +293,6 @@ pushd "$final_path/live" sudo -u "$app" env PATH=$PATH RAILS_ENV=production bin/tootctl cache clear 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.+" "$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" -# ynh_replace_string "__VAPID_PRIVATE_KEY__" "$vapid_private_key" "${final_path}/live/.env.production" -# ynh_replace_string "__VAPID_PUBLIC_KEY__" "$vapid_public_key" "${final_path}/live/.env.production" -#fi - # Recalculate and store the checksum of the file for the next upgrade. ynh_store_file_checksum --file="${final_path}/live/.env.production" |
