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

fix folder

This commit is contained in:
dbarzin 2022-07-06 19:10:16 +02:00
parent 6cb710f4ca
commit 7346ca2367

View file

@ -5,7 +5,7 @@
#================================ #================================
set -e set -e
cd ~ cd /home/$SUDO_USER
#--------------------- #---------------------
# Python # Python
@ -24,7 +24,6 @@ su - $SUDO_USER -c "poetry --version"
#--------------------- #---------------------
# REDIS # REDIS
#--------------------- #---------------------
apt-get update
apt install -y build-essential tcl apt install -y build-essential tcl
git clone https://github.com/redis/redis.git git clone https://github.com/redis/redis.git
@ -96,7 +95,9 @@ 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 wget http://cdn.download.comodo.com/av/updates58/sigs/bases/bases.cav -O /opt/COMODO/scanners/bases.cav
# Configure workers # Configure 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; for file in pandora/workers/*.sample; do cp -i ${file} ${file%%.sample}; done'
su - pandora -c 'cd pandora; for file in pandora/workers/*.sample; do cp -i ${file} ${file%%.sample}; done'
#--------------------- #---------------------
# Pandora-box # Pandora-box
@ -126,7 +127,7 @@ usermod -a -G video $SUDO_USER
usermod -a -G input $SUDO_USER usermod -a -G input $SUDO_USER
# Start Pandora at boot # Start Pandora at boot
cp pandora.service.sample /etc/systemd/system/pandora.service cp pandora.service /etc/systemd/system/pandora.service
sed -i "s/_USER_/$SUDO_USER/g" /etc/systemd/system/pandora.service sed -i "s/_USER_/$SUDO_USER/g" /etc/systemd/system/pandora.service
systemctl daemon-reload systemctl daemon-reload
systemctl enable pandora systemctl enable pandora