mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Update upgrade
This commit is contained in:
parent
6a9a8f082d
commit
a2e02c56cf
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue