This commit is contained in:
Juan 2018-08-29 17:00:09 +02:00
parent a0f8c39eb5
commit def1b7ffe0
2 changed files with 6 additions and 5 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
vn-repo (2.0.50) stable; urgency=low
vn-repo (2.0.51) stable; urgency=low
* Initial Release.

View File

@ -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"