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

protect exec pandora

This commit is contained in:
dbarzin 2023-03-08 15:59:39 +01:00
parent 04f935070f
commit 8572cf795c
2 changed files with 2 additions and 1 deletions

View file

@ -240,7 +240,7 @@ echo "ExecStart=-/sbin/agetty --autologin pandora --noclear %I $TERM" >> /etc/sy
# Start pandora from bashrc
echo "export PATH=\"\$HOME/.local/bin:{\$PATH}\"" >> /home/$SUDO_USER/.bashrc
echo "pandora-box/pandora-box.py" >> /home/$SUDO_USER/.bashrc
echo "exec pandora-box/pandora-box.py" >> /home/$SUDO_USER/.bashrc
# Copy ini file
cp pandora-box.ini.curses pandora-box.ini

View file

@ -842,6 +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'])
sys.exit()