Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Defer system upgrade to a "safe" time
#! /bin/bash
TIME=${$1:-2245}
cat <<EOF | at "$TIME"
apt-get -q update
apt-get -q -y dist-upgrade
apt-get -q -y --purge autoremove
apt-get -q -y autoclean
apt-get -q -y clean
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.