Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
2014549f
Commit
2014549f
authored
Jul 20, 2019
by
Leonard Gram
Committed by
Torkel Ödegaard
Jul 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PhantomJS: Fixes rendering on Debian Buster (#18162)
Closes #17588
parent
6e5898ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
pkg/services/rendering/phantomjs.go
+10
-2
No files found.
pkg/services/rendering/phantomjs.go
View file @
2014549f
...
...
@@ -67,10 +67,18 @@ func (rs *RenderingService) renderViaPhantomJS(ctx context.Context, opts Opts) (
timezone
:=
""
cmd
.
Env
=
os
.
Environ
()
if
opts
.
Timezone
!=
""
{
timezone
=
isoTimeOffsetToPosixTz
(
opts
.
Timezone
)
baseEnviron
:=
os
.
Environ
()
cmd
.
Env
=
appendEnviron
(
baseEnviron
,
"TZ"
,
timezone
)
cmd
.
Env
=
appendEnviron
(
cmd
.
Env
,
"TZ"
,
timezone
)
}
// Added to disable usage of newer version of OPENSSL
// that seem to be incompatible with PhantomJS (used in Debian Buster)
if
runtime
.
GOOS
==
"linux"
{
disableNewOpenssl
:=
"/etc/ssl"
cmd
.
Env
=
appendEnviron
(
cmd
.
Env
,
"OPENSSL_CONF"
,
disableNewOpenssl
)
}
rs
.
log
.
Debug
(
"executing Phantomjs"
,
"binPath"
,
binPath
,
"cmdArgs"
,
cmdArgs
,
"timezone"
,
timezone
)
...
...
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