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

Initial snapcraft metadata

This commit is contained in:
Christopher James Halse Rogers 2020-11-05 16:53:18 +11:00
parent 7078443460
commit a1af588246
No known key found for this signature in database
GPG key ID: D4DB4A9F5D044F1A
3 changed files with 82 additions and 0 deletions

19
snap/hooks/configure vendored Normal file
View file

@ -0,0 +1,19 @@
#!/bin/sh
base_url="$(snapctl get base-url)"
enabled="$(snapctl get enabled)"
if [ -n ${enabled} -a \( "${enabled}" != "true" -a "${enabled}" != "false" \) ]
then
echo "Invalid 'enabled' setting: ${enabled}. Valid values are 'true' or 'false'"
exit 1
fi
if [ -n ${base_url} -a \( -z "${enabled}" -o "${enabled}" = "false" \) ]
then
echo "All required configuration available."
echo "Conduit can now be enabled by setting 'snap set conduit enabled=true' and restarting the service \
with 'snap restart conduit'"
fi
exit 0