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 strict;
use warnings; use warnings;
use POSIX "strftime"; use POSIX "strftime";
use Cwd;
my $branch = "v2docs"; my $branch = "v2docs";
@ -41,6 +42,7 @@ sub logged {
} }
} }
print "Buildall starting in ", getcwd, "\n";
unlink glob "log/*"; unlink glob "log/*";

View file

@ -40,6 +40,7 @@ if ($child) {
} else { } else {
# child process # child process
close(STDIN); close(STDOUT); close(STDERR); close(STDIN); close(STDOUT); close(STDERR);
chdir "/var/lib/nethserver/ibay/githubhook";
unlink "buildall.pl"; unlink "buildall.pl";
system 'wget https://raw.githubusercontent.com/vishaps/voc/v2docs/src/tools/make/buildall.pl'; system 'wget https://raw.githubusercontent.com/vishaps/voc/v2docs/src/tools/make/buildall.pl';
exec 'perl buildall.pl >/tmp/buildall.log'; exec 'perl buildall.pl >/tmp/buildall.log';