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

fix install script

This commit is contained in:
Didier 2023-11-08 14:43:29 +00:00
parent 71865bc740
commit 8662e0d7bb

View file

@ -85,9 +85,10 @@ chown -R $SUDO_USER kvrocks
#--------------------- #---------------------
# Pandora # Pandora
#--------------------- #---------------------
if [! -d "kvrocks" ]; if [ ! -d "pandora" ];
then then
su - $SUDO_USER -c "git clone https://github.com/pandora-analysis/pandora.git" git clone https://github.com/pandora-analysis/pandora.git
chown -R $SUDO_USER pandora
fi fi
# fix broken packages # fix broken packages
@ -107,9 +108,8 @@ apt install -y rsyslog cron # log logging
apt autoremove -y apt autoremove -y
# set .env # set .env
cd /home/$SUDO_USER/pandora cd pandora
echo PANDORA_HOME="`pwd`" >> .env echo PANDORA_HOME="`pwd`" >> .env
chown $SUDO_USER .env
su - $SUDO_USER -c "cd ~/pandora; poetry install" su - $SUDO_USER -c "cd ~/pandora; poetry install"
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"