initial commit of a *whole bunch* of old Egressive shell scripts, used to make many people redundant.
This commit is contained in:
commit
43e0f5b59e
329 changed files with 31937 additions and 0 deletions
25
egautoupdates/egautoupdates
Executable file
25
egautoupdates/egautoupdates
Executable file
|
@ -0,0 +1,25 @@
|
|||
#! /bin/bash
|
||||
|
||||
LOG=/var/log/egautoupdates.log
|
||||
APTGET=`which apt-get`
|
||||
|
||||
message () {
|
||||
TIME=`date`
|
||||
echo "$TIME: $@" >> $LOG
|
||||
}
|
||||
|
||||
message ""
|
||||
message "******** egAutoUpdate *******"
|
||||
|
||||
#
|
||||
# update the current package lists
|
||||
#
|
||||
message "Updating package lists..."
|
||||
$APTGET update >> $LOG
|
||||
#
|
||||
# apply any pending security updates
|
||||
#
|
||||
message "Applying security updates"
|
||||
$APTGET upgrade -y -t breezy-security >> $LOG
|
||||
|
||||
message "Security updates applied (if found)"
|
Loading…
Add table
Add a link
Reference in a new issue