|
@@ -446,7 +446,7 @@ function pleroma_create_database {
|
446
|
446
|
fi
|
447
|
447
|
sed -i 's|import_config|# import_config|g' $pleroma_secret
|
448
|
448
|
|
449
|
|
- sed -i '/url: /aconfig :pleroma, :http, proxy_url: "127.0.0.1:9050"' $pleroma_secret
|
|
449
|
+ sed -i '/url:/a config :pleroma, :http, proxy_url: {:socks5, :localhost, 9050}' $pleroma_secret
|
450
|
450
|
sed -i 's|config :pleroma, :http, proxy_url:|# config :pleroma, :http, proxy_url:|g' $PLEROMA_DIR/config/config.exs
|
451
|
451
|
|
452
|
452
|
cd "$PLEROMA_DIR" || exit 678245245724
|
|
@@ -730,7 +730,7 @@ function configure_interactive_pleroma {
|
730
|
730
|
function pleroma_upgrade_tor {
|
731
|
731
|
pleroma_tor_update=
|
732
|
732
|
|
733
|
|
- if ! grep -q '9050' $pleroma_secret; then
|
|
733
|
+ if ! grep -q '{:socks5, :localhost, 9050}' $pleroma_secret; then
|
734
|
734
|
pleroma_tor_update=1
|
735
|
735
|
fi
|
736
|
736
|
|
|
@@ -742,8 +742,9 @@ function pleroma_upgrade_tor {
|
742
|
742
|
return
|
743
|
743
|
fi
|
744
|
744
|
|
745
|
|
- if ! grep -q '9050' $pleroma_secret; then
|
746
|
|
- sed -i '/url: /aconfig :pleroma, :http, proxy_url: "127.0.0.1:9050"' $pleroma_secret
|
|
745
|
+ if ! grep -q '{:socks5, :localhost, 9050}' $pleroma_secret; then
|
|
746
|
+ sed -i '/9050/d' $pleroma_secret
|
|
747
|
+ sed -i '/url:/a config :pleroma, :http, proxy_url: {:socks5, :localhost, 9050}' $pleroma_secret
|
747
|
748
|
fi
|
748
|
749
|
|
749
|
750
|
if ! grep -q '# config :pleroma, :http, proxy_url:' $PLEROMA_DIR/config/config.exs; then
|