Last active
December 28, 2018 18:16
-
-
Save Voronenko/8af5c91c2380787993d2a2cf58ad1187 to your computer and use it in GitHub Desktop.
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 | |
systemctl stop apt-daily.service | |
systemctl kill --kill-who=all apt-daily.service | |
# wait until `apt-get updated` has been killed | |
while ! (systemctl list-units --all apt-daily.service | fgrep -q dead) | |
do | |
sleep 1; | |
done | |
# systemctl mask apt-daily.service apt-daily-upgrade.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment