mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
security/acme-client: avoid error message if no restart action was specified
This commit is contained in:
committed by
Franco Fichtner
parent
601286cb8a
commit
df2a7278fa
@@ -887,8 +887,11 @@ function run_restart_actions($certlist, $modelObj)
|
|||||||
}
|
}
|
||||||
// Extract restart actions
|
// Extract restart actions
|
||||||
$_actions = explode(',', $certObj->restartActions);
|
$_actions = explode(',', $certObj->restartActions);
|
||||||
|
if (empty($_actions)) {
|
||||||
|
// No restart actions configured.
|
||||||
|
continue;
|
||||||
|
}
|
||||||
// Walk through all linked restart actions.
|
// Walk through all linked restart actions.
|
||||||
$_actions = explode(',', $certObj->restartActions);
|
|
||||||
foreach ($_actions as $_action) {
|
foreach ($_actions as $_action) {
|
||||||
// Extract restart action
|
// Extract restart action
|
||||||
$action = $modelObj->getByActionID($_action);
|
$action = $modelObj->getByActionID($_action);
|
||||||
|
|||||||
Reference in New Issue
Block a user