From a2e02c56cff67d8f4100986ca85b23c72c9b2a1a Mon Sep 17 00:00:00 2001 From: abeudin <beudbeud@beudibox.fr> Date: Thu, 13 Mar 2014 12:23:21 +0100 Subject: [PATCH] Update upgrade --- config/upgrade | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/config/upgrade b/config/upgrade index 1a035218..0d0323b0 100644 --- a/config/upgrade +++ b/config/upgrade @@ -1,3 +1,5 @@ -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 +/bin/bash +rm /tmp/yunohost/update_status +sudo apt-get upgrade -y -s > /tmp/yunohost/update_log 2>&1 +if [ $(echo $?) = 0 ]; then echo "OK" > /tmp/yunohost/upgrade_status; else echo "NOK" > /tmp/yunohost/upgrade_status; fi +rm /tmp/yunohost/upgrade.run