mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
Add verbose output.
This commit is contained in:
committed by
Franco Fichtner
parent
44215dc67c
commit
318b8744e7
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user