Create upgrade

This commit is contained in:
abeudin 2014-03-11 18:18:48 +01:00
parent 0d814d2ea1
commit 6dbf50e77e

3
upgrade Normal file
View file

@ -0,0 +1,3 @@
rm /tmp/update_status
sudo apt-get upgrade -y > /tmp/update_log 2>&1
if [[ $? = 0 ]]; then echo "OK" > /tmp/upgrade_status; else echo "NOK" > /tmp/upgrade_status; fi