Update plugin.py

This commit is contained in:
gutosie
2021-02-12 18:25:58 +02:00
committed by GitHub
parent 1ef2cf3a3b
commit 02424f6f4c

View File

@@ -1500,11 +1500,11 @@ def main(session, **kwargs):
vip = checkimage()
if vip == 1:
if fileExists('' + LinkNeoBoot + '/.location'):
if not fileExists('/usr/lib/periodon/.kodn'):
session.open(MessageBox, _('Neoboot vip version has expired, please re-access.'), type=MessageBox.TYPE_ERROR)
elif not fileExists('/usr/lib/periodon/.accesdate') or getAccesDate() != 'isaccess' and fileExists('/usr/lib/periodon/.kodn'):
if not fileExists('/usr/lib/periodon/.accesdate') or getAccesDate() != 'isaccess' and fileExists('/usr/lib/periodon/.kodn'):
system('rm /usr/lib/periodon/.kodn')
session.open(MessageBox, _('Neoboot vip version has expired, please re-access.'), type=MessageBox.TYPE_ERROR)
elif not fileExists('/usr/lib/periodon/.kodn'):
session.open(MessageBox, _('Neoboot vip version has expired, please re-access.'), type=MessageBox.TYPE_ERROR)
else:
pass
else: