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 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 | |
} |
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-raspbian
in the/etc/cron.daily/
directory on your Raspbian system#ย Make script executable $ sudo touch /etc/cron.daily/up-raspbian
Copy the
up-raspbian
script to/etc/cron.daily/up-raspbian
Make script executable
up-rasbian
will run automatically on a daily schedule ๐Logs