1
1
Fork 0

added aec_cron.sh

This commit is contained in:
David Starzengruber 2011-03-14 11:15:30 +01:00
parent b7f751e05f
commit 7989804f6c
1 changed files with 25 additions and 0 deletions

25
aec_cron.sh Executable file
View File

@ -0,0 +1,25 @@
## ars electronica maintainence cron job script
## vars
logfile="/var/log/aec_cron.log"
hostname=$(hostname)
## print timestamp
timestamp=$(date +"%d.%m.%Y %R")
echo >> $logfile
echo "##### aec cron script ## $timestamp ## $hostname #####" >> $logfile
## local package updates
echo "updating package sources"
#apt-get update &> /dev/null
#apt-get upgrade -y >> $logfile
## local backups
#call backupscripts
## tell my ip