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:
parent
04f935070f
commit
8572cf795c
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue