mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
check-certificates: use full path...
... to make sure syntax does not break if package is not installed.
This commit is contained in:
parent
c0b73d6e92
commit
5beebbe8e8
1 changed files with 3 additions and 3 deletions
|
@ -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?");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue