mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-19 05:19:40 +02:00
code quality
This commit is contained in:
parent
b13cc3e402
commit
08ef826869
2 changed files with 3 additions and 4 deletions
|
@ -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/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/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 -
|
||||||
|
@ -246,4 +245,4 @@ echo "exec pandora-box/pandora-box.py" >> /home/$SUDO_USER/.bashrc
|
||||||
cp pandora-box.ini.curses pandora-box.ini
|
cp pandora-box.ini.curses pandora-box.ini
|
||||||
|
|
||||||
# Reboot
|
# Reboot
|
||||||
echo "You may reboot the server."
|
echo "You may configure pandora workers and reboot the server."
|
||||||
|
|
|
@ -842,7 +842,7 @@ def get_lock(process_name):
|
||||||
|
|
||||||
except socket.error:
|
except socket.error:
|
||||||
print('Pandora-box is already running !', file=sys.stderr)
|
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()
|
sys.exit()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue