mirror of
https://github.com/opnsense/plugins.git
synced 2026-06-08 16:34:18 -04:00
Add verbose output.
This commit is contained in:
parent
44215dc67c
commit
318b8744e7
2 changed files with 20 additions and 5 deletions
|
|
@ -9,8 +9,13 @@ function proxy_sso_configure()
|
|||
|
||||
function proxy_sso_squid_hook($verbose, $action)
|
||||
{
|
||||
if ($action == "reconfigure") {
|
||||
configd_run('template reload OPNsense/ProxySSO');
|
||||
if (!in_array($action, ['restart', 'reload', 'start', 'stop'])) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$res = configd_run('template reload OPNsense/ProxySSO');
|
||||
if ($verbose) {
|
||||
printf("template reload OPNsense/ProxySSO: %s\n", trim($res));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,10 +35,20 @@ function proxy_useracl_configure()
|
|||
];
|
||||
}
|
||||
|
||||
function proxy_useracl_squid_hook()
|
||||
function proxy_useracl_squid_hook($verbose, $action)
|
||||
{
|
||||
configd_run('template reload OPNsense/ProxyUserACL');
|
||||
configd_run('proxyuseracl reload');
|
||||
if (!in_array($action, ['restart', 'reload', 'start', 'stop'])) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$res = configd_run('template reload OPNsense/ProxyUserACL');
|
||||
if ($verbose) {
|
||||
printf("template reload OPNsense/ProxyUserACL: %s\n", trim($res));
|
||||
}
|
||||
$res = configd_run('proxyuseracl reload');
|
||||
if ($verbose) {
|
||||
printf("proxyuseracl reload: %s\n", trim($res));
|
||||
}
|
||||
}
|
||||
|
||||
function proxy_useracl_xmlrpc_sync()
|
||||
|
|
|
|||
Loading…
Reference in a new issue