moulinette/lib/yunohost/data/upgrade
Jerome Lebleu 85071f9309 Merge remote-tracking branch 'upstream/dev' into test
Conflicts:
	data/actionsmap/yunohost.yml
	lib/yunohost/firewall.py
	lib/yunohost/tools.py
2014-03-26 02:11:20 +01:00

5 lines
247 B
Text

/bin/bash
rm /tmp/yunohost/update_status
sudo apt-get upgrade -y > /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