mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
www/caddy: Adjust status banner for https://github.com/opnsense/core/commit/cfdd2749794c1. Address some former feedback at same time.
This commit is contained in:
parent
8606b3572d
commit
97e87d1290
1 changed files with 7 additions and 2 deletions
|
|
@ -45,9 +45,14 @@ class CaddyOverrideStatus extends AbstractStatus
|
|||
'/ui/caddy/reverse_proxy',
|
||||
'/ui/caddy/general'
|
||||
];
|
||||
}
|
||||
|
||||
if (count(glob('/usr/local/etc/caddy/caddy.d/*.*'))) {
|
||||
$this->internalMessage = gettext('Custom configuration imports exist in "/usr/local/etc/caddy/caddy.d/".');
|
||||
public function collectStatus()
|
||||
{
|
||||
if (count(glob('/usr/local/etc/caddy/caddy.d/*'))) {
|
||||
$this->internalMessage = gettext(
|
||||
'The configuration contains manual overwrites, these may interfere with the settings configured here.'
|
||||
);
|
||||
$this->internalStatus = SystemStatusCode::NOTICE;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue