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
#!/bin/bash | |
# this script starts the snapd service, deletes old snap images, does a refresh and disables it again | |
# put it in /usr/local/sbin/snap-update and give it executable rights | |
# Note: If you run apt upgrade and there is an update to a package that is managed by snapd, | |
# the upgrade will hang if snapd is still masked, so remember to unmask snapd in that case | |
# and start apt upgrade again | |
set -x | |
systemctl unmask snapd.service |