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
bdc4d140
Commit
bdc4d140
authored
Apr 12, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated postinstall scripts
parent
ed82f6c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
14 deletions
+16
-14
packaging/deb/control/postinst
+2
-2
packaging/rpm/control/postinst
+14
-12
No files found.
packaging/deb/control/postinst
View file @
bdc4d140
...
...
@@ -30,10 +30,10 @@ case "$1" in
"
$GRAFANA_USER
"
fi
if
[
-x
/opt/grafana/
data/grafana.db
]
;
then
if
[
-x
/opt/grafana/
]
;
then
echo
"### Upgrading Notice ### "
echo
"-- New grafana install home is /usr/share/grafana"
echo
"--
Moving
sqlite3 database to /var/lib/grafana/"
echo
"--
Please move
sqlite3 database to /var/lib/grafana/"
echo
"-- Notice: service name && binary changed to grafana-server"
fi
...
...
packaging/rpm/control/postinst
View file @
bdc4d140
...
...
@@ -37,14 +37,7 @@ if [ $1 -eq 1 ] ; then
-c
"grafana user"
grafana
fi
if
[
-x
/opt/grafana/data/grafana.db
]
;
then
echo
"### Upgrading Notice ### "
echo
"-- New grafana install home is /usr/share/grafana"
echo
"-- Moving sqlite3 database to /var/lib/grafana/"
echo
"-- Notice: service name && binary changed to grafana-server"
fi
# Set user permissions on /var/log/grafana, /var/lib/grafana
# Set user permissions on /var/log/grafana, /var/lib/grafana
mkdir
-p
/var/log/grafana /var/lib/grafana
chown
-R
$GRAFANA_USER
:
$GRAFANA_GROUP
/var/log/grafana /var/lib/grafana
chmod 755 /var/log/grafana /var/lib/grafana
...
...
@@ -61,14 +54,23 @@ if [ $1 -eq 1 ] ; then
echo
" sudo /bin/systemctl enable grafana-server.service"
echo
"### You can start grafana-server by executing"
echo
" sudo /bin/systemctl start grafana-server.service"
elif
[
-x
/sbin/chkconfig
]
;
then
echo
"### NOT starting grafana-server by default on bootup, please execute"
echo
" sudo /sbin/chkconfig --add grafana-server"
echo
"### In order to start grafana-server, execute"
echo
" sudo service grafana-server start"
fi
elif
[
$1
-ge
2
-a
"
$RESTART_ON_UPGRADE
"
==
"true"
]
;
then
stopGrafana
startGrafana
elif
[
$1
-ge
2
]
;
then
if
[
-x
/opt/grafana/
]
;
then
echo
"### Upgrading Notice ### "
echo
"-- New grafana install home is /usr/share/grafana"
echo
"-- Please move sqlite3 database to /var/lib/grafana/"
echo
"-- Notice: service name && binary changed to grafana-server"
fi
if
[
"
$RESTART_ON_UPGRADE
"
==
"true"
]
;
then
stopGrafana
startGrafana
fi
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