1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2025-09-05 18:41:00 +00:00

snap: Add registration configuration option

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

View file

@ -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