Update yunohost_tools.py

This commit is contained in:
abeudin 2014-03-12 10:13:06 +01:00
parent e42ede89d4
commit 706880f03c

View file

@ -267,7 +267,7 @@ def tools_update():
Update distribution Update distribution
""" """
process = Popen("./bash/checkupdate", stdout=PIPE) process = Popen("/usr/bin/checkupdate", stdout=PIPE)
stdout, stderr = process.communicate() stdout, stderr = process.communicate()
if process.returncode == 1: if process.returncode == 1:
win_msg( _("Not upgrade found")) win_msg( _("Not upgrade found"))
@ -293,6 +293,6 @@ def tools_upgrade():
""" """
if os.path.isfile('/tmp/update_status'): if os.path.isfile('/tmp/update_status'):
os.system('at now -f /usr/share/pyshared/yunohost-cli/upgrade') os.system('at now -f /etc/yunohost/upgrade')
else: else:
raise YunoHostError(17, _("Launch update before upgrade")) raise YunoHostError(17, _("Launch update before upgrade"))