mirror of
https://gitlab.com/famedly/conduit.git
synced 2025-06-27 16:35:59 +00:00
snap: Add registration configuration option
This commit is contained in:
parent
8255c8f3ef
commit
34ccab8042
2 changed files with 12 additions and 0 deletions
6
snap/hooks/configure
vendored
6
snap/hooks/configure
vendored
|
@ -22,4 +22,10 @@ then
|
|||
echo "Invalid 'federation' setting: ${federation_enabled}. Valid values are 'true' or 'false'"
|
||||
fi
|
||||
|
||||
registration_enabled=$(snapctl get registration)
|
||||
if [ -n ${registration_enabled} -a \( "${registration_enabled}" != "true" -a "${registration_enabled}" != "false" \) ]
|
||||
then
|
||||
echo "Invalid 'registration' setting: ${registration_enabled}. Valid values are 'true' or 'false'"
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -22,6 +22,12 @@ then
|
|||
export ROCKET_FEDERATION_ENABLED=${federation_enabled}
|
||||
fi
|
||||
|
||||
registration_enabled="$(snapctl get registration)"
|
||||
if [ -n "${registration_enabled}" -a "${registration_enabled}" = "false" ]
|
||||
then
|
||||
export ROCKET_REGISTRATION_DISABLED="true"
|
||||
fi
|
||||
|
||||
export ROCKET_ENV="production"
|
||||
export ROCKET_DATABASE_PATH=${SNAP_DATA}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue