Attempt tor proxy with pleroma
This commit is contained in:
parent
42d48a4f63
commit
201de6a3e6
|
@ -446,6 +446,8 @@ function pleroma_create_database {
|
||||||
fi
|
fi
|
||||||
sed -i 's|import_config|# import_config|g' $pleroma_secret
|
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
|
cd "$PLEROMA_DIR" || exit 678245245724
|
||||||
chown -R pleroma:pleroma $PLEROMA_DIR/*
|
chown -R pleroma:pleroma $PLEROMA_DIR/*
|
||||||
if ! sudo -u pleroma mix local.rebar --force; then
|
if ! sudo -u pleroma mix local.rebar --force; then
|
||||||
|
@ -738,6 +740,11 @@ function upgrade_pleroma {
|
||||||
create_pleroma_blocklist
|
create_pleroma_blocklist
|
||||||
fi
|
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")
|
CURR_PLEROMA_COMMIT=$(get_completion_param "pleroma commit")
|
||||||
if [[ "$CURR_PLEROMA_COMMIT" == "$PLEROMA_COMMIT" ]]; then
|
if [[ "$CURR_PLEROMA_COMMIT" == "$PLEROMA_COMMIT" ]]; then
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue