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:
parent
a1af588246
commit
8255c8f3ef
2 changed files with 12 additions and 0 deletions
6
snap/hooks/configure
vendored
6
snap/hooks/configure
vendored
|
@ -16,4 +16,10 @@ then
|
||||||
with 'snap restart conduit'"
|
with 'snap restart conduit'"
|
||||||
fi
|
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
|
exit 0
|
||||||
|
|
|
@ -16,6 +16,12 @@ then
|
||||||
export ROCKET_PORT="$(snapctl get listen.port)"
|
export ROCKET_PORT="$(snapctl get listen.port)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
federation_enabled="$(snapctl get federation)"
|
||||||
|
if [ -n "${federation_enabled}" ]
|
||||||
|
then
|
||||||
|
export ROCKET_FEDERATION_ENABLED=${federation_enabled}
|
||||||
|
fi
|
||||||
|
|
||||||
export ROCKET_ENV="production"
|
export ROCKET_ENV="production"
|
||||||
export ROCKET_DATABASE_PATH=${SNAP_DATA}
|
export ROCKET_DATABASE_PATH=${SNAP_DATA}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue