d4-core/server/install_server.sh

46 lines
710 B
Bash
Raw Normal View History

2019-01-03 16:31:54 +01:00
#!/bin/bash
set -e
set -x
sudo apt-get install python3-pip virtualenv screen whois unzip libffi-dev gcc -y
2019-01-18 12:02:20 +01:00
if [ -z "$VIRTUAL_ENV" ]; then
virtualenv -p python3 D4ENV
echo export D4_HOME=$(pwd) >> ./D4ENV/bin/activate
. ./D4ENV/bin/activate
fi
python3 -m pip install -r requirement.txt
pushd configs/
cp server.conf.sample server.conf
popd
2019-01-18 12:02:20 +01:00
pushd web/
./update_web.sh
popd
2019-01-03 16:31:54 +01:00
python3 -m pip install -r requirement.txt
# REDIS #
test ! -d redis/ && git clone https://github.com/antirez/redis.git
pushd redis/
git checkout 5.0
make
popd
2019-09-02 16:06:46 +02:00
# LAUNCH Redis
bash ${AIL_BIN}LAUNCH.sh -lrv &
wait
echo ""
# create default users
pushd web/
./create_default_user.py
popd
2019-09-02 16:06:46 +02:00
bash LAUNCH.sh -k &
wait
echo ""