]> granicus.if.org Git - sysstat/commitdiff
sa1: fix sar error when the directory var/log/sa was removed.
authorSdrkun <shanzhikun@gmail.com>
Tue, 28 Apr 2020 14:31:54 +0000 (10:31 -0400)
committerSdrkun <shanzhikun@gmail.com>
Tue, 28 Apr 2020 14:31:54 +0000 (10:31 -0400)
Signed-off-by: Sdrkun <shanzhikun@gmail.com>
sa1.in

diff --git a/sa1.in b/sa1.in
index e908ad330a4029657e2d6520808e011b3e77f1be..e9047d066738f1864ddab0420a5a24f793b8bc7d 100644 (file)
--- a/sa1.in
+++ b/sa1.in
@@ -20,6 +20,7 @@ UMASK=0022
 umask ${UMASK}
 
 [ -d ${SA_DIR} ] || SA_DIR=@SA_DIR@
+[ -d @SA_DIR@ ] || mkdir @SA_DIR@
 
 if [ ${HISTORY} -gt 28 ]
 then