Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
477fba11
Commit
477fba11
authored
Oct 28, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: switch template reload to new slash notation; #1238
parent
53f44c89
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
13 deletions
+13
-13
system.inc
src/etc/inc/system.inc
+2
-2
ServiceController.php
...trollers/OPNsense/CaptivePortal/Api/ServiceController.php
+2
-2
ServiceController.php
...c/app/controllers/OPNsense/Cron/Api/ServiceController.php
+1
-1
NetflowController.php
...ontrollers/OPNsense/Diagnostics/Api/NetflowController.php
+1
-1
ServiceController.php
...vc/app/controllers/OPNsense/IDS/Api/ServiceController.php
+3
-3
ServiceController.php
.../app/controllers/OPNsense/Proxy/Api/ServiceController.php
+3
-3
ServiceController.php
...trollers/OPNsense/TrafficShaper/Api/ServiceController.php
+1
-1
No files found.
src/etc/inc/system.inc
View file @
477fba11
...
...
@@ -766,7 +766,7 @@ function system_syslogd_start()
global
$config
,
$g
;
/* XXX temporary hook for newsyslog.conf regeneration */
configd_run
(
'template reload OPNsense
.
Syslog'
);
configd_run
(
'template reload OPNsense
/
Syslog'
);
mwexec
(
'/etc/rc.d/hostid start'
);
...
...
@@ -1880,7 +1880,7 @@ function system_login_configure()
{
global
$config
;
configd_run
(
'template reload OPNsense
.
Auth'
);
configd_run
(
'template reload OPNsense
/
Auth'
);
$serialspeed
=
(
!
empty
(
$config
[
'system'
][
'serialspeed'
])
&&
is_numeric
(
$config
[
'system'
][
'serialspeed'
]))
?
$config
[
'system'
][
'serialspeed'
]
:
'115200'
;
$serial_enabled
=
isset
(
$config
[
'system'
][
'enableserial'
]);
...
...
src/opnsense/mvc/app/controllers/OPNsense/CaptivePortal/Api/ServiceController.php
View file @
477fba11
...
...
@@ -53,11 +53,11 @@ class ServiceController extends ApiControllerBase
$backend
=
new
Backend
();
// the ipfw rules need to know about all the zones, so we need to reload ipfw for the portal to work
$backend
->
configdRun
(
"template reload OPNsense.IPFW"
);
$backend
->
configdRun
(
'template reload OPNsense/IPFW'
);
$bckresult
=
trim
(
$backend
->
configdRun
(
"ipfw reload"
));
if
(
$bckresult
==
"OK"
)
{
// generate captive portal config
$bckresult
=
trim
(
$backend
->
configdRun
(
"template reload OPNsense.Captiveportal"
));
$bckresult
=
trim
(
$backend
->
configdRun
(
'template reload OPNsense/Captiveportal'
));
if
(
$bckresult
==
"OK"
)
{
$mdlCP
=
new
CaptivePortal
();
if
(
$mdlCP
->
isEnabled
())
{
...
...
src/opnsense/mvc/app/controllers/OPNsense/Cron/Api/ServiceController.php
View file @
477fba11
...
...
@@ -54,7 +54,7 @@ class ServiceController extends ApiControllerBase
$backend
=
new
Backend
();
// generate template
$backend
->
configdRun
(
"template reload OPNsense.Cron"
);
$backend
->
configdRun
(
'template reload OPNsense/Cron'
);
// (res)start daemon
$backend
->
configdRun
(
"cron restart"
);
...
...
src/opnsense/mvc/app/controllers/OPNsense/Diagnostics/Api/NetflowController.php
View file @
477fba11
...
...
@@ -125,7 +125,7 @@ class NetflowController extends ApiControllerBase
// reconfigure netflow
$backend
=
new
Backend
();
$backend
->
configdRun
(
"template reload OPNsense.Netflow"
);
$backend
->
configdRun
(
'template reload OPNsense/Netflow'
);
// restart netflow, by calling stop (which will always stop the collectors) and start
// (which will only start if there are collectors configured)
$backend
->
configdRun
(
"netflow stop"
);
...
...
src/opnsense/mvc/app/controllers/OPNsense/IDS/Api/ServiceController.php
View file @
477fba11
...
...
@@ -146,7 +146,7 @@ class ServiceController extends ApiControllerBase
}
$backend
=
new
Backend
();
$bckresult
=
trim
(
$backend
->
configdRun
(
"template reload OPNsense.IDS"
));
$bckresult
=
trim
(
$backend
->
configdRun
(
'template reload OPNsense/IDS'
));
if
(
$bckresult
==
"OK"
)
{
if
((
string
)
$mdlIDS
->
general
->
enabled
==
1
)
{
...
...
@@ -186,7 +186,7 @@ class ServiceController extends ApiControllerBase
// we have to trigger a template reload to be sure we have the right download configuration
// ideally we should only regenerate the download config, but that's not supported at the moment.
// (not sure if it should be supported)
$bckresult
=
trim
(
$backend
->
configdRun
(
"template reload OPNsense.IDS"
));
$bckresult
=
trim
(
$backend
->
configdRun
(
'template reload OPNsense/IDS'
));
if
(
$bckresult
==
"OK"
)
{
if
(
$wait
!=
null
)
{
...
...
@@ -216,7 +216,7 @@ class ServiceController extends ApiControllerBase
$this
->
sessionClose
();
$backend
=
new
Backend
();
// flush rule configuration
$bckresult
=
trim
(
$backend
->
configdRun
(
"template reload OPNsense.IDS"
));
$bckresult
=
trim
(
$backend
->
configdRun
(
'template reload OPNsense/IDS'
));
if
(
$bckresult
==
"OK"
)
{
$status
=
$backend
->
configdRun
(
"ids reload"
);
}
else
{
...
...
src/opnsense/mvc/app/controllers/OPNsense/Proxy/Api/ServiceController.php
View file @
477fba11
...
...
@@ -145,7 +145,7 @@ class ServiceController extends ApiControllerBase
}
// generate template
$backend
->
configdRun
(
"template reload OPNsense.Proxy"
);
$backend
->
configdRun
(
'template reload OPNsense/Proxy'
);
// (res)start daemon
if
(
$mdlProxy
->
general
->
enabled
->
__toString
()
==
1
)
{
...
...
@@ -172,7 +172,7 @@ class ServiceController extends ApiControllerBase
if
(
$this
->
request
->
isPost
())
{
$backend
=
new
Backend
();
// generate template
$backend
->
configdRun
(
"template reload OPNsense.Proxy"
);
$backend
->
configdRun
(
'template reload OPNsense/Proxy'
);
// fetch files
$response
=
$backend
->
configdRun
(
"proxy fetchacls"
);
...
...
@@ -191,7 +191,7 @@ class ServiceController extends ApiControllerBase
if
(
$this
->
request
->
isPost
())
{
$backend
=
new
Backend
();
// generate template
$backend
->
configdRun
(
"template reload OPNsense.Proxy"
);
$backend
->
configdRun
(
'template reload OPNsense/Proxy'
);
// download files
$response
=
$backend
->
configdRun
(
"proxy downloadacls"
);
...
...
src/opnsense/mvc/app/controllers/OPNsense/TrafficShaper/Api/ServiceController.php
View file @
477fba11
...
...
@@ -48,7 +48,7 @@ class ServiceController extends ApiControllerBase
$this
->
sessionClose
();
$backend
=
new
Backend
();
$backend
->
configdRun
(
"template reload OPNsense.IPFW"
);
$backend
->
configdRun
(
'template reload OPNsense/IPFW'
);
$bckresult
=
trim
(
$backend
->
configdRun
(
"ipfw reload"
));
if
(
$bckresult
==
"OK"
)
{
$status
=
"ok"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment