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
2093f7c1
Unverified
Commit
2093f7c1
authored
Aug 12, 2020
by
Adrián López
Committed by
GitHub
Aug 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grafana-cli: Fix installing of plugins missing directory entries in zip (#26945)
parent
3403db19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
pkg/cmd/grafana-cli/commands/install_command.go
+6
-0
No files found.
pkg/cmd/grafana-cli/commands/install_command.go
View file @
2093f7c1
...
...
@@ -233,6 +233,12 @@ func extractFiles(archiveFile string, pluginName string, filePath string, allowS
return
fmt
.
Errorf
(
permissionsDeniedMessage
,
newFile
)
}
}
else
{
// Create needed directories to extract file
err
:=
os
.
MkdirAll
(
filepath
.
Dir
(
newFile
),
0755
)
if
err
!=
nil
{
return
errutil
.
Wrap
(
"failed to create directory to extract plugin files"
,
err
)
}
if
isSymlink
(
zf
)
{
if
!
allowSymlinks
{
logger
.
Errorf
(
"%v: plugin archive contains symlink which is not allowed. Skipping
\n
"
,
zf
.
Name
)
...
...
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