check-certificates: use full path...

... to make sure syntax does not break if package is not installed.
This commit is contained in:
Christian Hesse 2019-04-10 14:25:56 +02:00
parent c0b73d6e92
commit 5beebbe8e8

View file

@ -46,14 +46,14 @@
/ ip service set certificate=$CertNameNew [ find where certificate=$CertName ];
:do {
/ ip ipsec identity set certificate=$CertNameNew [ find where certificate=$CertName ];
/ ip ipsec identity set remote-certificate=$CertNameNew [ find where remote-certificate=$CertName ];
/ ip ipsec identity set certificate=$CertNameNew [ / ip ipsec identity find where certificate=$CertName ];
/ ip ipsec identity set remote-certificate=$CertNameNew [ / ip ipsec identity find where remote-certificate=$CertName ];
} on-error={
:log debug ("Setting IPSEC certificates failed. Package 'security' not installed?");
}
:do {
/ ip hotspot profile set ssl-certificate=$CertNameNew [ find where ssl-certificate=$CertName ];
/ ip hotspot profile set ssl-certificate=$CertNameNew [ / ip hotspot profile find where ssl-certificate=$CertName ];
} on-error={
:log debug ("Setting hotspot certificates failed. Package 'hotspot' not installed?");
}