add: [install] install script - minimal server requires Redis >5.0

pull/3/head
Alexandre Dulaunoy 2019-01-31 07:44:04 +01:00
commit d310568bc2
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
2 changed files with 22 additions and 0 deletions

21
install_server.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
set -e
set -x
sudo apt-get install python3-pip virtualenv screen -y
if [ -z "$VIRTUAL_ENV" ]; then
virtualenv -p python3 PDNSENV
echo export PDNS_HOME=$(pwd) >> ./PDNSENV/bin/activate
. ./PDNSENV/bin/activate
fi
python3 -m pip install -r requirements
# REDIS #
test ! -d redis/ && git clone https://github.com/antirez/redis.git
pushd redis/
git checkout 5.0
make
popd

1
requirements Normal file
View File

@ -0,0 +1 @@
redis