From 0dbd86ffc22561ee719fa7bed0c57b444749f724 Mon Sep 17 00:00:00 2001 From: Juan Date: Thu, 19 Apr 2018 13:58:21 +0200 Subject: [PATCH] Logging improved --- debian/changelog | 2 +- vn-branch | 4 ++-- vn-debuild | 8 ++++---- vn-deploy | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/debian/changelog b/debian/changelog index 07a1671..966912d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -vn-repo (2.0.12) stable; urgency=low +vn-repo (2.0.14) stable; urgency=low * Initial Release. diff --git a/vn-branch b/vn-branch index f6ad0c1..d038def 100755 --- a/vn-branch +++ b/vn-branch @@ -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" diff --git a/vn-debuild b/vn-debuild index e7db8e7..9ea9658 100755 --- a/vn-debuild +++ b/vn-debuild @@ -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 diff --git a/vn-deploy b/vn-deploy index bb476e5..4f8643b 100755 --- a/vn-deploy +++ b/vn-deploy @@ -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