mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/siproxd: use NAME_setup
PR: https://github.com/opnsense/core/issues/5917
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@ class ServiceController extends ApiControllerBase
|
||||
public function showregistrationsAction()
|
||||
{
|
||||
$backend = new Backend();
|
||||
$response = $backend->configdRun("siproxd show-registrations");
|
||||
$response = $backend->configdRun('siproxd registrations');
|
||||
return array("response" => $response);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,29 +1,29 @@
|
||||
[start]
|
||||
command:/usr/local/opnsense/scripts/OPNsense/Siproxd/setup.sh;/usr/local/etc/rc.d/siproxd start
|
||||
command:/usr/local/etc/rc.d/siproxd start
|
||||
parameters:
|
||||
type:script
|
||||
message:starting Siproxd
|
||||
|
||||
[stop]
|
||||
command:/usr/local/etc/rc.d/siproxd stop; exit 0
|
||||
command:/usr/local/etc/rc.d/siproxd stop
|
||||
parameters:
|
||||
type:script
|
||||
message:stopping Siproxd
|
||||
|
||||
[restart]
|
||||
command:/usr/local/opnsense/scripts/OPNsense/Siproxd/setup.sh;/usr/local/etc/rc.d/siproxd restart
|
||||
command:/usr/local/etc/rc.d/siproxd restart
|
||||
parameters:
|
||||
type:script
|
||||
message:restarting Siproxd
|
||||
|
||||
[status]
|
||||
command:/usr/local/etc/rc.d/siproxd status;exit 0
|
||||
command:/usr/local/etc/rc.d/siproxd status; exit 0
|
||||
parameters:
|
||||
type:script_output
|
||||
message:request Siproxd status
|
||||
|
||||
[show-registrations]
|
||||
[registrations]
|
||||
command:/bin/cat /var/lib/siproxd/siproxd_registrations
|
||||
parameters:
|
||||
type:script_output
|
||||
message: Show registered devices
|
||||
message:show registered devices
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{% if helpers.exists('OPNsense.siproxd.general.enabled') and OPNsense.siproxd.general.enabled == '1' %}
|
||||
siproxd_var_script="/usr/local/opnsense/scripts/OPNsense/Siproxd/setup.sh"
|
||||
siproxd_setup="/usr/local/opnsense/scripts/OPNsense/Siproxd/setup.sh"
|
||||
siproxd_enable="YES"
|
||||
{% else %}
|
||||
siproxd_enable="NO"
|
||||
|
||||
Reference in New Issue
Block a user