mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-24 07:49:42 +02:00
fix screens
This commit is contained in:
parent
fc702e29b8
commit
95cc64f0be
2 changed files with 7 additions and 5 deletions
|
@ -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/ole.*"
|
||||||
su - $SUDO_USER -c "rm ~/pandora/pandora/workers/preview.*"
|
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/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
|
# 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 -
|
{ crontab -l -u $SUDO_USER; echo '0 * * * * find /var/quarantine/* -type f -mtime +180 -delete '; } | crontab -u $SUDO_USER -
|
||||||
|
|
|
@ -751,6 +751,10 @@ def clean():
|
||||||
|
|
||||||
umount_device()
|
umount_device()
|
||||||
|
|
||||||
|
logging.info(
|
||||||
|
f'hostname="{hostname}", '
|
||||||
|
f'cleaned="{files_removed}/{len(infected_files)}"')
|
||||||
|
|
||||||
if not has_error:
|
if not has_error:
|
||||||
if has_curses:
|
if has_curses:
|
||||||
log('Device cleaned !', flush=True)
|
log('Device cleaned !', flush=True)
|
||||||
|
@ -760,11 +764,7 @@ def clean():
|
||||||
if has_curses:
|
if has_curses:
|
||||||
log('Device not cleaned !', flush=True)
|
log('Device not cleaned !', flush=True)
|
||||||
else:
|
else:
|
||||||
display_image("ERROR")
|
display_image("WAIT")
|
||||||
wait_mouse_click()
|
|
||||||
logging.info(
|
|
||||||
f'hostname="{hostname}", '
|
|
||||||
f'cleaned="{files_removed}/{len(infected_files)}"')
|
|
||||||
else:
|
else:
|
||||||
if not has_curses:
|
if not has_curses:
|
||||||
display_image("OK")
|
display_image("OK")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue