Fix heartbeat

This commit is contained in:
Kumi 2019-01-31 08:39:54 +01:00
parent d4e4bbdce3
commit 7c23dc27be

View file

@ -51,7 +51,7 @@ if /usr/bin/wget -O/tmp/update.bin https://admin360.kumi.host/update --post-data
fi
"""
elif device.model.wifi and device.lastbeat < device.changed:
elif device.model.wwan and device.lastbeat < device.changed:
code = """
. /etc/vpnsecret
if /usr/bin/wget -O/tmp/wireless.in https://admin360.kumi.host/wireless --post-data "secret=$SECRET" --no-check-certificate 2>/var/log/wget;