@@ -1,9 +1,15 @@
#!/usr/bin/env bash
+if [ `id -gn` != "root" ]; then
+ echo "Run as root!"
+ exit 1
+fi
+
snapctl is-connected certs
if [ $? -eq 0 ]; then
+ echo "See log (journal -exf --grep=snap.${SNAP_NAME}*) for result"
DOMAIN=`snapctl get domain`
if [ $? -ne 0 ]; then
logger "Missing domain, use 'snap set ${SNAP_NAME} domain=<domain>'"
@@ -1,5 +1,5 @@
-
+set -e
snapctl set server.basepath.dir="${SNAP_COMMON}/configurations"
snapctl set server.basepath.enforce=True
snapctl get server | $SNAP/bin/update-settings "${SNAP_DATA}/settings.conf" update
@@ -25,7 +25,7 @@ apps:
command: bin/certs-daemon
daemon: oneshot
restart-condition: always
- timer: 00:00-24:00/287
+ timer: 00:00-24:00/5
slots:
- certs
plugs: