#!/bin/bash SOCK_LOC=$SOCK_LOC /nvidiaInstall.sh if [ "$DEBUG" == "False" ]; then echo "Deploy mode" APP_DIR=/var/src/ipsgeoprocesing/deploy if [ ! -d "$GIT_DIR" ];then git clone "https://deployment_ops:4rGdZ42sg4JaTt5uxMbp@bitbucket.org/srm-consulting/ipsgeoprocesing.git" $APP_DIR cd $APP_DIR fi #cd $APP_DIR && git checkout ${GMS_SERVER_BRANCH} && git pull cd $APP_DIR else echo "Debug mode" fi echo $APP_DIR REQ_PATH=$(dirname "$APP_DIR") echo -e "\e[92mAll dependencies satisfied\e[39m" echo -e "\e[92mSTARTING GMS SERVER\e[39m" PS1=gms source /root/.bashrc # Se añade la variable PS1 para "engañar" # al bash indicando que es una sesión interactiva # de otra manera no establece las variables de entorno # escritas en /root/bashrc cd $APP_DIR && python3 manage.py runserver 0.0.0.0:8000 --noreload