1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2025-07-02 16:38:36 +00:00

snap: Add federation configuration option

This commit is contained in:
Christopher James Halse Rogers 2020-11-05 17:09:01 +11:00
parent a1af588246
commit 8255c8f3ef
No known key found for this signature in database
GPG key ID: D4DB4A9F5D044F1A
2 changed files with 12 additions and 0 deletions

View file

@ -16,4 +16,10 @@ then
with 'snap restart conduit'"
fi
federation_enabled=$(snapctl get federation)
if [ -n ${federation_enabled} -a \( "${federation_enabled}" != "true" -a "${federation_enabled}" != "false" \) ]
then
echo "Invalid 'federation' setting: ${federation_enabled}. Valid values are 'true' or 'false'"
fi
exit 0

View file

@ -16,6 +16,12 @@ then
export ROCKET_PORT="$(snapctl get listen.port)"
fi
federation_enabled="$(snapctl get federation)"
if [ -n "${federation_enabled}" ]
then
export ROCKET_FEDERATION_ENABLED=${federation_enabled}
fi
export ROCKET_ENV="production"
export ROCKET_DATABASE_PATH=${SNAP_DATA}