Working
This commit is contained in:
parent
a0f8c39eb5
commit
def1b7ffe0
|
@ -1,4 +1,4 @@
|
|||
vn-repo (2.0.50) stable; urgency=low
|
||||
vn-repo (2.0.51) stable; urgency=low
|
||||
|
||||
* Initial Release.
|
||||
|
||||
|
|
|
@ -32,16 +32,17 @@ echo " * Directory: $srcDir" >> "$logFile"
|
|||
echo " * Host: $(hostname)" >> "$logFile"
|
||||
|
||||
mkdir -p "$srcDir"
|
||||
cd "$srcDir"
|
||||
|
||||
if [ ! -d "$srcDir/.git" ]; then
|
||||
(cd "$srcDir" && git init)
|
||||
git init >> "$logFile"
|
||||
fi
|
||||
|
||||
(cd "$srcDir" && git config remote.origin.url "$gitUrl/$projectName")
|
||||
(cd "$srcDir" && git pull origin "$gitBranch")
|
||||
git config remote.origin.url "$gitUrl/$projectName" >> "$logFile"
|
||||
git pull origin "$gitBranch" >> "$logFile"
|
||||
|
||||
if [ -f "$srcDir/deploy" ]; then
|
||||
(cd "$srcDir" && "$srcDir/deploy" >> "$logFile" 2>&1)
|
||||
"$srcDir/deploy" >> "$logFile" 2>&1
|
||||
fi
|
||||
|
||||
echo -e "\n# Deploying ended\n" >> "$logFile"
|
||||
|
|
Reference in New Issue