mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-19 05:19:40 +02:00
fix install script
This commit is contained in:
parent
71865bc740
commit
8662e0d7bb
1 changed files with 4 additions and 4 deletions
|
@ -85,9 +85,10 @@ chown -R $SUDO_USER kvrocks
|
|||
#---------------------
|
||||
# Pandora
|
||||
#---------------------
|
||||
if [! -d "kvrocks" ];
|
||||
if [ ! -d "pandora" ];
|
||||
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
|
||||
|
||||
# fix broken packages
|
||||
|
@ -107,9 +108,8 @@ apt install -y rsyslog cron # log logging
|
|||
apt autoremove -y
|
||||
|
||||
# set .env
|
||||
cd /home/$SUDO_USER/pandora
|
||||
cd pandora
|
||||
echo PANDORA_HOME="`pwd`" >> .env
|
||||
chown $SUDO_USER .env
|
||||
|
||||
su - $SUDO_USER -c "cd ~/pandora; poetry install"
|
||||
su - $SUDO_USER -c "cd ~/pandora; cp config/generic.json.sample config/generic.json"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue