Skip to content

Commit

Permalink
Restart snap after changing the duration
Browse files Browse the repository at this point in the history
  • Loading branch information
cimm committed Nov 18, 2020
1 parent 980a219 commit 53ba91a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions snap/hooks/configure
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +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

0 comments on commit 53ba91a

Please sign in to comment.