commit - 047151d10e6faeee9836946c20aed24f5385c7d2
commit + a3ced2559825268028c1672578da48a84c612983
blob - 4a4cc9529422949de5d73bf8a8108aed93468787
blob + 85f2dfd6ee730dec3baeabea768e6156a93d84c7
--- deploy.pl
+++ deploy.pl
# 2020/09/20 changed: add agentx option to vm.conf for OpenBSD 7.0
# 2020/10/25 changes: doas.conf for pkill option, so it works again
# 2021/01/19 changes: add format of disk images in vm.conf (CVE-2010-3851), thanx Johan Finnved
+# 2021/05/18 changes: restrict the install.conf files in /var/www
#
use 5.024;
use strict;
printf $fh_install "Continue anyway = yes\n";
printf $fh_install "Continue without verification = yes\n";
close $fh_install;
+ chmod 0440, "$_htdocs/$_mac-install.conf";
+ chown 67, 67, "$_htdocs/$_mac-install.conf";
printf "%16s %s created\n", $_instance, $_htdocs . "/" . $_mac . "-install.conf";
} elsif (-e $_disk && -e "$_htdocs/$_mac-install.conf") {
unlink "$_htdocs/$_mac-install.conf" or warn "Unable to unlink file: $!\n";
blob - f97174ef2dd1e1a1c53283b38533ebd754c503b7
blob + 6a67111e03d415ef588b2719cc887268b625f478
--- notify.pl
+++ notify.pl
my $template = "$_tmpl/email-$function.txt";
my $server_number = $1 if $_server =~ /([0-9]+)/;
- my $oddeven = $server_number % 2;
+ my $evenodd = $server_number % 2;
my $year = strftime("%Y", localtime);
my $month = strftime("%m", localtime);
if ($row =~ /TIME\((.*)\)/) {
my @TIMES = split(/,/, $1);
- $row =~ s/TIME\(.*\)/$TIMES[$oddeven]/g;
+ $row =~ s/TIME\(.*\)/$TIMES[$evenodd]/g;
}
print $fh_email "$row\n";
}