Logging improved

This commit is contained in:
Juan 2018-04-19 13:58:21 +02:00
parent 9b4091c686
commit 0dbd86ffc2
4 changed files with 8 additions and 8 deletions

2
debian/changelog vendored
View File

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

View File

@ -10,7 +10,7 @@ repoDir="/var/lib/git/$projectName"
srcDir="/tmp/vn-repo/$projectName/src"
logFile="/var/cache/reprepro/logs/$projectName.out"
echo -e "\n#Deploying started."
echo -e "\n# Deploying started.\n"
echo " * Date: $(date)"
echo " * Project: $projectName"
echo " * Directory: $srcDir"
@ -25,4 +25,4 @@ then
(cd "$srcDir" && "$srcDir/deploy" >> "$logFile" 2>&1)
fi
echo -e "\n#Deploying ended."
echo -e "\n# Deploying ended.\n"

View File

@ -13,22 +13,22 @@ codename="stable"
if [ -f "$srcDir/package.json" ]
then
echo -e "\n#Installing Node dependencies."
echo -e "\n# Installing Node dependencies.\n"
(cd "$srcDir" && npm --silent install)
fi
if [ -f "$srcDir/debian/changelog" ]
then
echo -e "\n#Cleaning last build."
echo -e "\n# Cleaning last build.\n"
rm -f $buildDir/*.deb
rm -f $buildDir/*.changes
rm -f $buildDir/*.build
(cd "$srcDir" && debian/rules clean)
echo -e "\n#Building Debian packages."
echo -e "\n# Building Debian packages.\n"
(cd "$srcDir" && debuild -uc -us -b)
echo -e "\n#Adding packages to repository."
echo -e "\n# Adding packages to repository.\n"
cut -d" " -f1 "$srcDir/debian/files" |
while read debFile

View File

@ -25,7 +25,7 @@ fi
# FIXME: Packages are not upgraded when config files are changed
echo -e "\n#Upgrading servers."
echo -e "\n# Upgrading servers.\n"
for host in $hosts
do