mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07: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:
committed by
Franco Fichtner
parent
8606b3572d
commit
97e87d1290
+7
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user