Skip to content

Commit

Permalink
make sure we always restart the service after setting duration
Browse files Browse the repository at this point in the history
  • Loading branch information
ogra1 committed Nov 20, 2020
1 parent 6cb12f9 commit c28e73f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snap/hooks/configure
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c28e73f

Please sign in to comment.