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

Do not need to be installed with pandora user

This commit is contained in:
didier 2025-02-19 15:40:50 +01:00
parent 967b22e16d
commit 830ebbc3d3
2 changed files with 4 additions and 6 deletions

View file

@ -168,8 +168,8 @@ apt --fix-broken install -y
apt install -y fim pmount psmisc vim
# Python libraries
su - $SUDO_USER -c "python -m venv /home/$SUDO_USER/python"
su - $SUDO_USER -c "python/bin/pip install pypandora psutil pyudev"
su - $SUDO_USER -c "python -m venv /home/$SUDO_USER/.local"
su - $SUDO_USER -c "./.local/bin/pip install pypandora psutil pyudev"
# create /media/box folder
if [ ! -d "/media/box" ];
@ -244,7 +244,7 @@ echo "ExecStart=-/sbin/agetty --autologin pandora --noclear %I $TERM" >> /etc/sy
# echo "ExecStart=-su - pandora -c ./pandora-box/pandora-box.py" >> /etc/systemd/system/getty@tty1.service.d/override.conf
# Start pandora from bashrc
echo "PATH=\"\$HOME/python/bin:\$PATH\"" >> /home/$SUDO_USER/.profile
# echo "PATH=\"\$HOME/python/bin:\$PATH\"" >> /home/$SUDO_USER/.profile
# Copy ini file
su - $SUDO_USER -c "cp ~/pandora-box/pandora-box.ini.curses ~/pandora-box/pandora-box.ini"