Move location of onion routing setup for pleroma
This commit is contained in:
parent
8282871ffb
commit
a6b4cede0a
|
@ -446,9 +446,6 @@ 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:/a config :pleroma, :http, proxy_url: {:socks5, :localhost, 9050}' $pleroma_secret
|
|
||||||
sed -i 's|config :pleroma, :http, proxy_url:|# config :pleroma, :http, proxy_url:|g' $PLEROMA_DIR/config/config.exs
|
|
||||||
|
|
||||||
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
|
||||||
|
@ -1295,6 +1292,10 @@ function install_pleroma {
|
||||||
sed -i 's|redirect_on_failure:.*|redirect_on_failure: false|g' $PLEROMA_DIR/config/config.exs
|
sed -i 's|redirect_on_failure:.*|redirect_on_failure: false|g' $PLEROMA_DIR/config/config.exs
|
||||||
sed -i 's|:chat, enabled:.*|:chat, enabled: false|g' $PLEROMA_DIR/config/config.exs
|
sed -i 's|:chat, enabled:.*|:chat, enabled: false|g' $PLEROMA_DIR/config/config.exs
|
||||||
|
|
||||||
|
# onion routing
|
||||||
|
sed -i '/url:/a config :pleroma, :http, proxy_url: {:socks5, :localhost, 9050}' $pleroma_secret
|
||||||
|
sed -i 's|config :pleroma, :http, proxy_url:|# config :pleroma, :http, proxy_url:|g' $PLEROMA_DIR/config/config.exs
|
||||||
|
|
||||||
# set registrations open initially
|
# set registrations open initially
|
||||||
sed -i 's|registrations_open:.*|registrations_open: true,|g' $PLEROMA_DIR/config/config.exs
|
sed -i 's|registrations_open:.*|registrations_open: true,|g' $PLEROMA_DIR/config/config.exs
|
||||||
sed -i 's|"registrationOpen":.*|"registrationOpen": true,|g' $PLEROMA_DIR/priv/static/static/config.json
|
sed -i 's|"registrationOpen":.*|"registrationOpen": true,|g' $PLEROMA_DIR/priv/static/static/config.json
|
||||||
|
|
Loading…
Reference in New Issue