Attempt tor proxy with pleroma

This commit is contained in:
Bob Mottram 2018-04-23 11:08:32 +01:00
parent 42d48a4f63
commit 201de6a3e6
1 changed files with 7 additions and 0 deletions

View File

@ -446,6 +446,8 @@ function pleroma_create_database {
fi
sed -i 's|import_config|# import_config|g' $pleroma_secret
sed -i '/url: /aconfig :pleroma, :http, proxy_url: "127.0.0.1:9050"' $pleroma_secret
cd "$PLEROMA_DIR" || exit 678245245724
chown -R pleroma:pleroma $PLEROMA_DIR/*
if ! sudo -u pleroma mix local.rebar --force; then
@ -738,6 +740,11 @@ function upgrade_pleroma {
create_pleroma_blocklist
fi
if ! grep -q '9050' $pleroma_secret; then
sed -i '/url: /aconfig :pleroma, :http, proxy_url: "127.0.0.1:9050"' $pleroma_secret
pleroma_recompile
fi
CURR_PLEROMA_COMMIT=$(get_completion_param "pleroma commit")
if [[ "$CURR_PLEROMA_COMMIT" == "$PLEROMA_COMMIT" ]]; then
return