[fix] Cron timing.

This commit is contained in:
opi 2016-05-13 20:22:53 +02:00
parent e45697fc56
commit cda325aa0f

View file

@ -511,7 +511,7 @@ def tools_upgrade_v24(auth):
# Prepare systemctl
with open('/etc/cron.d/yunohost-regenconf', 'w+') as f:
f.write('00 * * * * root PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin systemctl start yunohost-api && rm -f /etc/cron.d/yunohost-regenconf\n' )
f.write('* * * * * root PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin systemctl start yunohost-api && rm -f /etc/cron.d/yunohost-regenconf\n' )
# Reboot user notice
msignals.display(m18n.n('upgrade_24_reboot'), 'warning')