1
0
Fork 0
mirror of https://github.com/dbarzin/pandora-box.git synced 2025-07-24 15:59:42 +02:00

fix screens

This commit is contained in:
dbarzin 2023-03-07 13:48:31 +01:00
parent fc702e29b8
commit 95cc64f0be
2 changed files with 7 additions and 5 deletions

View file

@ -140,6 +140,8 @@ su - $SUDO_USER -c "rm ~/pandora/pandora/workers/mwdb.*"
su - $SUDO_USER -c "rm ~/pandora/pandora/workers/ole.*"
su - $SUDO_USER -c "rm ~/pandora/pandora/workers/preview.*"
su - $SUDO_USER -c "rm ~/pandora/pandora/workers/virustotal.*"
su - $SUDO_USER -c "rm ~/pandora/pandora/workers/xml*"
su - $SUDO_USER -c "rm ~/pandora/pandora/workers/hashlookup*"
# Remove files from quarantine after 180 days
{ crontab -l -u $SUDO_USER; echo '0 * * * * find /var/quarantine/* -type f -mtime +180 -delete '; } | crontab -u $SUDO_USER -

View file

@ -751,6 +751,10 @@ def clean():
umount_device()
logging.info(
f'hostname="{hostname}", '
f'cleaned="{files_removed}/{len(infected_files)}"')
if not has_error:
if has_curses:
log('Device cleaned !', flush=True)
@ -760,11 +764,7 @@ def clean():
if has_curses:
log('Device not cleaned !', flush=True)
else:
display_image("ERROR")
wait_mouse_click()
logging.info(
f'hostname="{hostname}", '
f'cleaned="{files_removed}/{len(infected_files)}"')
display_image("WAIT")
else:
if not has_curses:
display_image("OK")