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
75a63aba
Commit
75a63aba
authored
Apr 26, 2017
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webgui: replace spurious softcoding
parent
3ccff622
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
webgui.inc
src/etc/inc/plugins.inc.d/webgui.inc
+5
-11
No files found.
src/etc/inc/plugins.inc.d/webgui.inc
View file @
75a63aba
...
...
@@ -126,10 +126,6 @@ function webgui_generate_config($port, $cert, $key, $ca)
{
global
$config
;
/* XXX */
$filename
=
'/var/etc/lighty-webConfigurator.conf'
;
$pid_file
=
'lighty-webConfigurator.pid'
;
$document_root
=
'/usr/local/www/'
;
$cert_location
=
'cert.pem'
;
$ca_location
=
'ca.pem'
;
...
...
@@ -201,7 +197,7 @@ server.max-keep-alive-idle = 30
## a static document-root, for virtual-hosting take look at the
## server.virtual-* options
server.document-root = "
{$document_root}
"
server.document-root = "
/usr/local/www/
"
{$http_rewrite_rules}
...
...
@@ -309,7 +305,7 @@ EOD;
#server.error-handler-404 = "/error-handler.php"
## to help the rc.scripts
server.pid-file = "/var/run/
{$pid_file}
"
server.pid-file = "/var/run/
lighty-webConfigurator.pid
"
## virtual directory listings
server.dir-listing = "disable"
...
...
@@ -406,12 +402,10 @@ EOD;
EOD;
}
$fd
=
fopen
(
"
{
$filename
}
"
,
"w"
);
if
(
!
$fd
)
{
log_error
(
sprintf
(
'Error: cannot open %s'
,
$filename
));
if
(
false
===
file_put_contents
(
'/var/etc/lighty-webConfigurator.conf'
,
$lighty_config
))
{
log_error
(
'Error: cannot write configuration'
);
return
0
;
}
fwrite
(
$fd
,
$lighty_config
);
fclose
(
$fd
);
return
1
;
}
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