Skip to content

Instantly share code, notes, and snippets.

@krystalmonolith
Created November 29, 2018 12:56
Show Gist options
  • Save krystalmonolith/0170dc2426b291a8ef5b233aabc29615 to your computer and use it in GitHub Desktop.
Save krystalmonolith/0170dc2426b291a8ef5b233aabc29615 to your computer and use it in GitHub Desktop.
apt update + upgrade bash script that logs to syslog for debian/ubuntu
#!/bin/bash
(((apt-get update && apt-get -y -q upgrade) 2>&1 | logger -t aptuu -p user.info); logger -t aptuu -p user.info "*** aptuu Completed. ***") &
tail -f /var/log/syslog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment