add branch option
This commit is contained in:
@@ -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
7
vars
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user