Make sure buildall starts in the cirrect directory.

This commit is contained in:
David Brown 2016-07-01 15:53:29 +01:00
parent 3c8a347d33
commit e68743eadc
2 changed files with 3 additions and 0 deletions

View file

@ -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/*";

View file

@ -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';