From 6dbf50e77ef2e995fc77e249e9ba407cf3fff9a9 Mon Sep 17 00:00:00 2001 From: abeudin Date: Tue, 11 Mar 2014 18:18:48 +0100 Subject: [PATCH] Create upgrade --- upgrade | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 upgrade diff --git a/upgrade b/upgrade new file mode 100644 index 00000000..1a035218 --- /dev/null +++ b/upgrade @@ -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