From e68743eadc25f065389690cf2e2892766a075ecc Mon Sep 17 00:00:00 2001 From: David Brown Date: Fri, 1 Jul 2016 15:53:29 +0100 Subject: [PATCH] Make sure buildall starts in the cirrect directory. --- src/tools/make/buildall.pl | 2 ++ src/tools/make/postpush.pl | 1 + 2 files changed, 3 insertions(+) diff --git a/src/tools/make/buildall.pl b/src/tools/make/buildall.pl index 7ac0a819..c67642e8 100755 --- a/src/tools/make/buildall.pl +++ b/src/tools/make/buildall.pl @@ -2,6 +2,7 @@ use strict; use warnings; use POSIX "strftime"; +use Cwd; my $branch = "v2docs"; @@ -41,6 +42,7 @@ sub logged { } } +print "Buildall starting in ", getcwd, "\n"; unlink glob "log/*"; diff --git a/src/tools/make/postpush.pl b/src/tools/make/postpush.pl index fdbe8829..954d604e 100755 --- a/src/tools/make/postpush.pl +++ b/src/tools/make/postpush.pl @@ -40,6 +40,7 @@ if ($child) { } else { # child process close(STDIN); close(STDOUT); close(STDERR); + chdir "/var/lib/nethserver/ibay/githubhook"; unlink "buildall.pl"; system 'wget https://raw.githubusercontent.com/vishaps/voc/v2docs/src/tools/make/buildall.pl'; exec 'perl buildall.pl >/tmp/buildall.log';