Last active
December 7, 2018 08:40
-
-
Save rodrigobdz/18e144380487a24e1f493519ee10f1e7 to your computer and use it in GitHub Desktop.
UPgrade your Raspbian programs via CLI π
This file contains hidden or 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 | |
| set -o errexit | |
| set -o pipefail | |
| set -o nounset | |
| set -o errtrace | |
| { | |
| # APT | |
| apt-get update && apt-get upgrade --yes --autoremove | |
| apt-get autoclean | |
| # Raspbian | |
| apt-get dist-upgrade | |
| # Pihole | |
| # Uncomment the following line to update Pihole regularly | |
| #Β pihole updatePihole | |
| exit | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
UP π
UPgrade your Raspbian programs via CLI
Optional
Usage
up-raspbianin the/etc/cron.daily/directory on your Raspbian system#Β Make script executable $ sudo touch /etc/cron.daily/up-raspbianCopy the
up-raspbianscript to/etc/cron.daily/up-raspbianMake script executable
up-rasbianwill run automatically on a daily schedule πLogs