Add setup for AD-website
This commit is contained in:
parent
e802f1270e
commit
586bc0f20f
1 changed files with 22 additions and 0 deletions
|
@ -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}"
|
||||
|
|
Loading…
Add table
Reference in a new issue