Skip to content

Instantly share code, notes, and snippets.

@Voronenko
Last active December 28, 2018 18:16
Show Gist options
  • Save Voronenko/8af5c91c2380787993d2a2cf58ad1187 to your computer and use it in GitHub Desktop.
Save Voronenko/8af5c91c2380787993d2a2cf58ad1187 to your computer and use it in GitHub Desktop.
#!/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