From c28e73fa4f05032baf753c344f26f88790d43b05 Mon Sep 17 00:00:00 2001 From: Oliver Grawert Date: Fri, 20 Nov 2020 01:06:46 +0000 Subject: [PATCH] make sure we always restart the service after setting duration --- snap/hooks/configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snap/hooks/configure b/snap/hooks/configure index 714d025..e1662e3 100755 --- a/snap/hooks/configure +++ b/snap/hooks/configure @@ -7,5 +7,5 @@ duration="$(snapctl get duration)" if ! expr "$duration" : '^[0-9]*$' > /dev/null; then echo "\"$duration\" is not a valid duration, reveting to $DEFAULT_DURATION seconds" >&2 snapctl set duration="$DEFAULT_DURATION" - snapctl restart "$SNAP_NAME".imv fi +snapctl restart "$SNAP_NAME".imv