mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-19 05:19:40 +02:00
fix install
This commit is contained in:
parent
512589f636
commit
72a92c2015
3 changed files with 20 additions and 11 deletions
|
@ -189,3 +189,10 @@ Look a the Pandora logs files
|
|||
Look a the Pandora-box logs files
|
||||
|
||||
tail -500f /var/log/pandora-box.log
|
||||
|
||||
Clean pending jobs
|
||||
|
||||
cd ~/pandora
|
||||
poetry run stop
|
||||
rm pandora/cache/dump.rdb
|
||||
poetry run start
|
||||
|
|
22
install.sh
22
install.sh
|
@ -117,30 +117,32 @@ su - $SUDO_USER -c "cp ~/pandora/config/logging.json.sample ~/pandora/config/log
|
|||
apt install -y python3-yara
|
||||
|
||||
# ClamAV
|
||||
cd /home/$SUDO_USER
|
||||
apt-get install -y hdparm clamav-daemon
|
||||
|
||||
# cd /home/$SUDO_USER
|
||||
# apt-get install -y hdparm clamav-daemon
|
||||
|
||||
# In order for the module to work, you need the signatures.
|
||||
# Running the command "freshclam" will do it but if the script is already running
|
||||
# (it is started by the systemd service clamav-freshclam)
|
||||
# You might want to run the commands below:
|
||||
systemctl stop clamav-freshclam.service # Stop the service
|
||||
freshclam # Run the signatures update
|
||||
systemctl start clamav-freshclam.service # Start the service so we keep getting the updates
|
||||
|
||||
service clamav-daemon start
|
||||
# systemctl stop clamav-freshclam.service # Stop the service
|
||||
# freshclam # Run the signatures update
|
||||
# systemctl start clamav-freshclam.service # Start the service so we keep getting the updates
|
||||
|
||||
# service clamav-daemon start
|
||||
|
||||
# Comodo
|
||||
wget https://download.comodo.com/cis/download/installs/linux/cav-linux_x64.deb
|
||||
dpkg --ignore-depends=libssl0.9.8 -i cav-linux_x64.deb
|
||||
|
||||
wget http://cdn.download.comodo.com/av/updates58/sigs/bases/bases.cav -O /opt/COMODO/scanners/bases.cav
|
||||
|
||||
# Configure Pandora workers
|
||||
# su - $SUDO_USER -c "cd ~/pandora; for file in pandora/workers/*.sample; do cp -i ${file} ${file%%.sample}; done"
|
||||
su - $SUDO_USER -c "cd ~/pandora/pandora/workers; cp base.yml.sample base.yml"
|
||||
su - $SUDO_USER -c "cd ~/pandora/pandora/workers; cp blocklists.yml.sample blocklists.yml"
|
||||
su - $SUDO_USER -c "cd ~/pandora/pandora/workers; cp comodo.yml.sample comodo.yml"
|
||||
su - $SUDO_USER -c "cd ~/pandora/pandora/workers; cp clamav.yml.sample clamav.yml"
|
||||
# su - $SUDO_USER -c "cd ~/pandora/pandora/workers; cp comodo.yml.sample comodo.yml"
|
||||
# su - $SUDO_USER -c "cd ~/pandora/pandora/workers; cp clamav.yml.sample clamav.yml"
|
||||
su - $SUDO_USER -c "cd ~/pandora/pandora/workers; cp extractor.yml.sample extractor.yml"
|
||||
su - $SUDO_USER -c "cd ~/pandora/pandora/workers; cp hashlookup.yml.sample hashlookup.yml"
|
||||
su - $SUDO_USER -c "cd ~/pandora/pandora/workers; cp pdf.yml.sample pdf.yml"
|
||||
|
@ -260,7 +262,7 @@ su - $SUDO_USER -c "cp ~/pandora-box/pandora-box.ini.curses ~/pandora-box/pandor
|
|||
echo "mesg n" >> /home/$SUDO_USER/.bashrc
|
||||
|
||||
# Add path to Poetry
|
||||
echo "export PATH=\"$HOME/.local/bin:{$PATH}\"" >> /home/$SUDO_USER/.bashrc
|
||||
echo "export PATH=\"/home/$SUDO_USER/.local/bin:$PATH\"" >> /home/$SUDO_USER/.bashrc
|
||||
|
||||
# Exec pandora at login
|
||||
echo "exec pandora-box/pandora-box.py" >> /home/$SUDO_USER/.bashrc
|
||||
|
|
|
@ -896,7 +896,7 @@ def main(_):
|
|||
print("main")
|
||||
try:
|
||||
# Wait for workers to start
|
||||
|
||||
wait_for_workers()
|
||||
# Enter the mail loop
|
||||
state = "START"
|
||||
while state != "STOP":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue