12345678910111213141516 |
- #!/usr/bin/env bash
- set -e
- logger "Configure snap!"
- if [ ! -f "${SNAP_DATA}/settings.conf" ]; then
- logger "Settings-file is missing"
- source "$SNAP/snap/hooks/install"
- else
- logger "Settings.conf exists, continue configure"
- fi
- snapctl get server | $SNAP/bin/update-settings "${SNAP_DATA}/settings.conf" update
- snapctl restart "${SNAP_NAME}.server"
- exit $?
|