projects
/
clearscm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated update-system
[clearscm.git]
/
bin
/
update-system
diff --git
a/bin/update-system
b/bin/update-system
index
f3ebd48
..
52c1260
100755
(executable)
--- a/
bin/update-system
+++ b/
bin/update-system
@@
-6,7
+6,7
@@
tmpfile=/tmp/update-system.list
apt-get update -y > /dev/null 2>&1
apt-get update -y > /dev/null 2>&1
-apt
-gt list --upgradeable > $tmpfile
+apt
list --upgradeable > $tmpfile 2> /dev/null
uptodate=$(grep -v "^Listing" $tmpfile | wc -l)
if [ $uptodate -ne 0 ]; then
uptodate=$(grep -v "^Listing" $tmpfile | wc -l)
if [ $uptodate -ne 0 ]; then
@@
-17,5
+17,7
@@
if [ $uptodate -ne 0 ]; then
echo "$(date): Updated $HOSTNAME" >> $logfile
else
echo "$(date): Updated $HOSTNAME" >> $logfile
else
+ rm $tmpfile
+
echo "$(date): No updates for $HOSTNAME" >> $logfile
fi
echo "$(date): No updates for $HOSTNAME" >> $logfile
fi