mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-19 13:29:42 +02:00
review pandora-box startup
This commit is contained in:
parent
2346f4b2fa
commit
4a3e187b9d
1 changed files with 11 additions and 10 deletions
21
install.sh
21
install.sh
|
@ -119,14 +119,14 @@ wget http://cdn.download.comodo.com/av/updates58/sigs/bases/bases.cav -O /opt/CO
|
|||
|
||||
# Configure workers
|
||||
# su - $SUDO_USER -c 'cd pandora; for file in pandora/workers/*.sample; do cp -i ${file} ${file%%.sample}; done'
|
||||
# disable all workers
|
||||
|
||||
# Disable all workers
|
||||
su - $SUDO_USER -c 'cd pandora; mkdir pandora/workers/disabled; mv pandora/workers/* disabled'
|
||||
|
||||
# disable all workers
|
||||
su - $SUDO_USER -c 'cd pandora; cp pandora/workers/disable/base.* pandora/worker/clamav.* pandora/workers'
|
||||
|
||||
# enabe selected workders
|
||||
su - $SUDO_USER -c 'cd pandora; for file in pandora/workers/*.sample; do cp -i ${file} ${file%%.sample}; done'
|
||||
# select some workers
|
||||
su - $SUDO_USER -c 'cd pandora; cp pandora/workers/disabled/base.* pandora/workers'
|
||||
su - $SUDO_USER -c 'cd pandora; cp pandora/workers/disabled/clamav.* pandora/workers'
|
||||
su - $SUDO_USER -c 'cd pandora; cp pandora/workers/disabled/extractor.* pandora/workers'
|
||||
|
||||
# Update Pandora
|
||||
su - $SUDO_USER -c 'cd pandora; poetry run update --yes'
|
||||
|
@ -183,10 +183,11 @@ echo "mesg n" >> /home/$SUDO_USER/.profile
|
|||
mkdir -p /etc/systemd/system/getty@tty1.service.d
|
||||
echo "[Service]" > /etc/systemd/system/getty@tty1.service.d/override.conf
|
||||
echo "ExecStart=" >> /etc/systemd/system/getty@tty1.service.d/override.conf
|
||||
echo "ExecStart=-su - pandora -c ./pandora-box/pandora-box.py" >> /etc/systemd/system/getty@tty1.service.d/override.conf
|
||||
echo "StandardInput=tty" >> /etc/systemd/system/getty@tty1.service.d/override.conf
|
||||
echo "StandardOutput=tty" >> /etc/systemd/system/getty@tty1.service.d/override.conf
|
||||
echo "Type=idle" >> /etc/systemd/system/getty@tty1.service.d/override.conf
|
||||
# echo "ExecStart=-su - pandora -c ./pandora-box/pandora-box.py" >> /etc/systemd/system/getty@tty1.service.d/override.conf
|
||||
echo "ExecStart=-/sbin/agetty --autologin pandora --noclear %I $TERM" >> /etc/systemd/system/getty@tty1.service.d/override.conf
|
||||
|
||||
# Start pandora from bashrc
|
||||
echo "~/pandora-box/pandora-box.py" >> ~/.bashrc
|
||||
|
||||
# Copy ini file
|
||||
cp pandora-box.ini.curses pandora-dox.ini
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue