Add setup for AD-website

This commit is contained in:
flyingscorpio@arch-desktop 2020-04-16 21:50:10 +02:00
parent e802f1270e
commit 586bc0f20f

View file

@ -101,6 +101,28 @@ export DJANGO_SECRET_KEY
systemctl start mysqld.service" >> ~/SRC/2px/env/bin/activate
fi
echo "Setting up AD-website..."
if [ -e ~/SRC/AD-website ]; then
echo "${GREEN}AD-website is already there.${NC}"
if [ "$UPDATE" = 'true' ]; then
echo "Updating..."
cd ~/SRC/AD-website && git pull
fi
else
echo "${ORANGE}Cloning new AD-website...${NC}"
cd ~/SRC && git clone git@gitlab.com:flyingscorpio/AD-website.git
cd ~/SRC/AD-website && python3 -m venv env
echo "
# Set own environment variables for Django
DJANGO_USER='flyingscorpio'
export DJANGO_USER
DJANGO_PASSWORD='ribosome66'
export DJANGO_PASSWORD
DJANGO_SECRET_KEY=''
export DJANGO_SECRET_KEY
systemctl start mysqld.service" >> ~/SRC/AD-website/env/bin/activate
fi
echo "Setting up LVEL-website..."
if [ -e ~/SRC/LVEL-website ]; then
echo "${GREEN}LVEL-website is already there.${NC}"