Last active
August 13, 2019 09:00
-
-
Save imrehg/6386b02f198858aca82cbcfcd133bd88 to your computer and use it in GitHub Desktop.
quickfix.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
systemctl stop resin-supervisor | |
balena rm -f $(balena ps -a -q) || true | |
balena tag $(balena images | grep registry2 | awk '{print $1}') backup | |
balena rmi $(balena images | grep registry2 | awk '{print $1}') | |
systemctl restart resin-supervisor | |
while ! balena images | grep -q registry2 ; do echo "waiting on supervisor download, sleeping 5s" && sleep 5; done | |
echo "download finished, removing temporary image tags" | |
balena rmi backup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I recommend changing line 6 to:
ref: https://jel.ly.fish/d21d2a7e-3e5c-4e67-a26b-10240defd697