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
5dc864b4
Commit
5dc864b4
authored
Feb 11, 2019
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes invalid folder check
-f check if a file exists. -d checks if the dir exists
parent
7ce18ec4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
packaging/deb/control/postinst
+2
-2
packaging/rpm/control/postinst
+2
-2
No files found.
packaging/deb/control/postinst
View file @
5dc864b4
...
...
@@ -31,13 +31,13 @@ case "$1" in
cp /usr/share/grafana/conf/ldap.toml /etc/grafana/ldap.toml
fi
if
[
!
-
f
$PROVISIONING_CFG_DIR
]
;
then
if
[
!
-
d
$PROVISIONING_CFG_DIR
]
;
then
mkdir
-p
$PROVISIONING_CFG_DIR
/dashboards
$PROVISIONING_CFG_DIR
/datasources
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
if
[
!
-
f
$PROVISIONING_CFG_DIR
/notifiers
]
;
then
if
[
!
-
d
$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
...
...
packaging/rpm/control/postinst
View file @
5dc864b4
...
...
@@ -45,13 +45,13 @@ if [ $1 -eq 1 ] ; then
cp /usr/share/grafana/conf/ldap.toml /etc/grafana/ldap.toml
fi
if
[
!
-
f
$PROVISIONING_CFG_DIR
]
;
then
if
[
!
-
d
$PROVISIONING_CFG_DIR
]
;
then
mkdir
-p
$PROVISIONING_CFG_DIR
/dashboards
$PROVISIONING_CFG_DIR
/datasources
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
if
[
!
-
f
$PROVISIONING_CFG_DIR
/notifiers
]
;
then
if
[
!
-
d
$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
...
...
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