add branch option

This commit is contained in:
ducoterra
2018-10-08 23:23:28 -04:00
parent 7a2ec49b6d
commit 2258b1df0e
2 changed files with 6 additions and 3 deletions

View File

@@ -201,7 +201,7 @@ if [ $usegit = True ] ; then
echo -e "\tCloning django project" echo -e "\tCloning django project"
git init 1>> $gitlogloc 2>> $gitlogloc 3>> $gitlogloc; git init 1>> $gitlogloc 2>> $gitlogloc 3>> $gitlogloc;
git remote add origin $giturl 1>> $gitlogloc 2>> $gitlogloc 3>> $gitlogloc; git remote add origin $giturl 1>> $gitlogloc 2>> $gitlogloc 3>> $gitlogloc;
git pull origin master 1>> $gitlogloc 2>> $gitlogloc 3>> $gitlogloc; git pull origin $gitbranch 1>> $gitlogloc 2>> $gitlogloc 3>> $gitlogloc;
echo -e "\tInstalling pip requirements" echo -e "\tInstalling pip requirements"
pip install -r requirements.txt 1>> $gitlogloc 2>> $gitlogloc 3>> $gitlogloc pip install -r requirements.txt 1>> $gitlogloc 2>> $gitlogloc 3>> $gitlogloc
fi fi

7
vars
View File

@@ -2,9 +2,12 @@
export user="" export user=""
export projectname="" export projectname=""
export hostname="" export hostname=""
export usegit=False # if you have a django git project
export giturl="" # url for git project
# MAKE SURE root HAS A DEPLOY KEY # MAKE SURE root HAS A DEPLOY KEY
export usegit=False
export giturl=""
export gitbranch=""
install_epel_release=False install_epel_release=False
# general install settings # general install settings