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

work on instal

This commit is contained in:
didier 2025-02-19 16:31:56 +01:00
parent 70ac6829db
commit 3d2b520e5d
2 changed files with 11 additions and 7 deletions

View file

@ -35,11 +35,14 @@ apt update && apt upgrade -y
apt install -y python-is-python3 python3-pip apt install -y python-is-python3 python3-pip
apt install -y libssl-dev apt install -y libssl-dev
su - $SUDO_USER -c "python -m venv /home/$SUDO_USER/.local"
#--------------------- #---------------------
# Peotry # Poetry
#--------------------- #---------------------
su - $SUDO_USER -c "curl -sSL https://install.python-poetry.org | python3 -" # su - $SUDO_USER -c "curl -sSL https://install.python-poetry.org | python3 -"
su - $SUDO_USER -c "poetry --version" # su - $SUDO_USER -c "poetry --version"
su - $SUDO_USER -c "pip install poetry"
#--------------------- #---------------------
# Valkey # Valkey
@ -103,8 +106,11 @@ cd pandora
echo PANDORA_HOME="`pwd`" >> .env echo PANDORA_HOME="`pwd`" >> .env
su - $SUDO_USER -c "cd ~/pandora; poetry install" su - $SUDO_USER -c "cd ~/pandora; poetry install"
su - $SUDO_USER -c "cd ~/pandora; echo PANDORA_HOME=\"`pwd`\" >> .env"
su - $SUDO_USER -c "cd ~/pandora; cp config/generic.json.sample config/generic.json" su - $SUDO_USER -c "cd ~/pandora; cp config/generic.json.sample config/generic.json"
# don't forget to change storage_db_hostname in config/generic.json. It should be "kvrocks"
# Copy default config file # Copy default config file
su - $SUDO_USER -c "cp ~/pandora/config/logging.json.sample ~/pandora/config/logging.json" su - $SUDO_USER -c "cp ~/pandora/config/logging.json.sample ~/pandora/config/logging.json"
@ -163,12 +169,11 @@ echo '0 20 * * * /sbin/poweroff' >> /etc/crontab
#--------------------- #---------------------
cd /home/$SUDO_USER/pandora-box cd /home/$SUDO_USER/pandora-box
# FIM, pmount, psmisc (for killall), vim and pipx # FIM, pmount, psmisc (for killall) and vim
apt --fix-broken install -y apt --fix-broken install -y
apt install -y fim pmount psmisc vim apt install -y fim pmount psmisc vim
# Python libraries # Python libraries
su - $SUDO_USER -c "python -m venv /home/$SUDO_USER/.local"
su - $SUDO_USER -c "./.local/bin/pip install pypandora psutil pyudev" su - $SUDO_USER -c "./.local/bin/pip install pypandora psutil pyudev"
# create /media/box folder # create /media/box folder

View file

@ -581,7 +581,6 @@ def scan():
# -------------------------------------- # --------------------------------------
def wait(): def wait():
"""Wait for insert of remove of USB device""" """Wait for insert of remove of USB device"""
# handle error - first unmount the device # handle error - first unmount the device