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
9c18aa86
Unverified
Commit
9c18aa86
authored
Feb 07, 2019
by
Marcus Efraimsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make sure to create provisioning/notifiers directory for deb and rpm packages
parent
b4267eaf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
packaging/deb/control/postinst
+6
-2
packaging/rpm/control/postinst
+6
-2
No files found.
packaging/deb/control/postinst
View file @
9c18aa86
...
...
@@ -32,10 +32,14 @@ case "$1" in
fi
if
[
!
-f
$PROVISIONING_CFG_DIR
]
;
then
mkdir
-p
$PROVISIONING_CFG_DIR
/dashboards
$PROVISIONING_CFG_DIR
/datasources
mkdir
-p
$PROVISIONING_CFG_DIR
/dashboards
$PROVISIONING_CFG_DIR
/datasources
$PROVISIONING_CFG_DIR
/notifiers
cp /usr/share/grafana/conf/provisioning/dashboards/sample.yaml
$PROVISIONING_CFG_DIR
/dashboards/sample.yaml
cp /usr/share/grafana/conf/provisioning/datasources/sample.yaml
$PROVISIONING_CFG_DIR
/datasources/sample.yaml
fi
cp /usr/share/grafana/conf/provisioning/notifiers/sample.yaml
$PROVISIONING_CFG_DIR
/notifiers/sample.yaml
elif
[
!
-f
$PROVISIONING_CFG_DIR
/notifiers
]
;
then
mkdir
-p
$PROVISIONING_CFG_DIR
/notifiers
cp /usr/share/grafana/conf/provisioning/notifiers/sample.yaml
$PROVISIONING_CFG_DIR
/notifiers/sample.yaml
fi
# configuration files should not be modifiable by grafana user, as this can be a security issue
chown
-Rh
root:
$GRAFANA_GROUP
/etc/grafana/
*
...
...
packaging/rpm/control/postinst
View file @
9c18aa86
...
...
@@ -46,10 +46,14 @@ if [ $1 -eq 1 ] ; then
fi
if
[
!
-f
$PROVISIONING_CFG_DIR
]
;
then
mkdir
-p
$PROVISIONING_CFG_DIR
/dashboards
$PROVISIONING_CFG_DIR
/datasources
mkdir
-p
$PROVISIONING_CFG_DIR
/dashboards
$PROVISIONING_CFG_DIR
/datasources
$PROVISIONING_CFG_DIR
/notifiers
cp /usr/share/grafana/conf/provisioning/dashboards/sample.yaml
$PROVISIONING_CFG_DIR
/dashboards/sample.yaml
cp /usr/share/grafana/conf/provisioning/datasources/sample.yaml
$PROVISIONING_CFG_DIR
/datasources/sample.yaml
fi
cp /usr/share/grafana/conf/provisioning/notifiers/sample.yaml
$PROVISIONING_CFG_DIR
/notifiers/sample.yaml
elif
[
!
-f
$PROVISIONING_CFG_DIR
/notifiers
]
;
then
mkdir
-p
$PROVISIONING_CFG_DIR
/notifiers
cp /usr/share/grafana/conf/provisioning/notifiers/sample.yaml
$PROVISIONING_CFG_DIR
/notifiers/sample.yaml
fi
# Set user permissions on /var/log/grafana, /var/lib/grafana
mkdir
-p
/var/log/grafana /var/lib/grafana
...
...
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