Commit ce229c95 authored by Ian Johnson's avatar Ian Johnson Committed by Ian Johnson

snap/hooks/pre-refresh: set config items before refreshing

This change ensures that in the future we will be able to identify the
release a snap was on before it was refreshed, to allow easier fixes in
the case something is broken and we need to fix.

Additionally it gives us the option to special case Edinburgh -> XYZ
upgrades by using the "release" config item.
Signed-off-by: default avatarIan Johnson <>
parent b1fc3963
#!/bin/bash -e
# save this revision for when we run again in the post-refresh
snapctl set lastrev="$SNAP_REVISION"
snapctl set release="edinburgh"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment