aboutsummaryrefslogtreecommitdiffstats
path: root/check-certificates
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-03-05 09:01:11 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-03-05 09:01:11 +0100
commit08bb73b6fce071ed9da6803f56ba54ee1cdd51c4 (patch)
tree4bc69fdf0b20d7a76186921f579b6c98aeba0054 /check-certificates
parent34255c905085134056c0c9072c174924ae4f7fe8 (diff)
check-certificates: use $LogPrintExit for debug
Diffstat (limited to 'check-certificates')
-rw-r--r--check-certificates10
1 files changed, 5 insertions, 5 deletions
diff --git a/check-certificates b/check-certificates
index 38f1c79..d5dce80 100644
--- a/check-certificates
+++ b/check-certificates
@@ -48,7 +48,7 @@
$CertificateNameByCN [ / certificate get $CertInChain common-name ];
}
} on-error={
- :log debug ("Could not download certificate file " . $CertFileName);
+ $LogPrintExit debug ("Could not download certificate file " . $CertFileName) false;
}
}
@@ -56,7 +56,7 @@
:local CertNewVal [ / certificate get $CertNew ];
:if ($Cert != $CertNew) do={
- :log debug ("Certificate '" . $CertVal->"name" . "' was not updated, but replaced.");
+ $LogPrintExit debug ("Certificate '" . $CertVal->"name" . "' was not updated, but replaced.") false;
/ ip service set certificate=($CertNewVal->"name") [ find where certificate=($CertVal->"name") ];
@@ -64,13 +64,13 @@
/ ip ipsec identity set certificate=($CertNewVal->"name") [ / ip ipsec identity find where certificate=($CertVal->"name") ];
/ ip ipsec identity set remote-certificate=($CertNewVal->"name") [ / ip ipsec identity find where remote-certificate=($CertVal->"name") ];
} on-error={
- :log debug ("Setting IPSEC certificates failed. Package 'security' not installed?");
+ $LogPrintExit debug ("Setting IPSEC certificates failed. Package 'security' not installed?") false;
}
:do {
/ ip hotspot profile set ssl-certificate=($CertNewVal->"name") [ / ip hotspot profile find where ssl-certificate=($CertVal->"name") ];
} on-error={
- :log debug ("Setting hotspot certificates failed. Package 'hotspot' not installed?");
+ $LogPrintExit debug ("Setting hotspot certificates failed. Package 'hotspot' not installed?") false;
}
/ certificate remove $Cert;
@@ -87,7 +87,7 @@
"Expires in: " . [ $FormatExpire ($CertNewVal->"expires-after") ]) "" "true";
$LogPrintExit info ("The certificate " . ($CertVal->"name") . " has been renewed.") false;
} on-error={
- :log debug ("Could not renew certificate " . ($CertVal->"name") . ".");
+ $LogPrintExit debug ("Could not renew certificate " . ($CertVal->"name") . ".") false;
}
}