1
0
Fork 0
mirror of https://github.com/dbarzin/pandora-box.git synced 2025-07-19 13:29:42 +02:00

code quality

This commit is contained in:
dbarzin 2023-03-08 16:11:56 +01:00
parent b13cc3e402
commit 08ef826869
2 changed files with 3 additions and 4 deletions

View file

@ -139,9 +139,8 @@ su - $SUDO_USER -c "rm ~/pandora/pandora/workers/malwarebazaar.*"
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/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 -
@ -246,4 +245,4 @@ echo "exec pandora-box/pandora-box.py" >> /home/$SUDO_USER/.bashrc
cp pandora-box.ini.curses pandora-box.ini
# Reboot
echo "You may reboot the server."
echo "You may configure pandora workers and reboot the server."

View file

@ -842,7 +842,7 @@ def get_lock(process_name):
except socket.error:
print('Pandora-box is already running !', file=sys.stderr)
os.execvp('/usr/bin/bash',['/usr/bin/bash'])
os.execvp('/usr/bin/bash', ['/usr/bin/bash'])
sys.exit()