From 33d8e11a3ee0e8dcbacc9b109e3d06f2fbff025d Mon Sep 17 00:00:00 2001 From: hjp Date: Mon, 5 Mar 2018 19:32:59 +0000 Subject: [PATCH] Create log dir if necessary --- scripts/da | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/da b/scripts/da index 3c00a65..71ea5a2 100755 --- a/scripts/da +++ b/scripts/da @@ -8,6 +8,7 @@ use lib 'blib/lib'; use Simba::DA; my $now = strftime('%Y-%m-%dT%H:%M:%S', localtime()); +mkdir('/var/log/simba'); open(my $log, '>>', '/var/log/simba/da.log.' . $now); $log->autoflush(1); my $da = Simba::DA->new({fh_log => $log});