Skip to content

Commit

Permalink
set mode 0640 and group grafana on /etc/grafana/grafana.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
David Gillies committed Jul 8, 2015
1 parent 5d7c485 commit a958965
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packaging/deb/control/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ case "$1" in
chmod 755 /var/log/grafana /var/lib/grafana

# configuration files should not be modifiable by grafana user, as this can be a security issue
chown -Rh root:root /etc/grafana/*
chown -Rh root:$GRAFANA_GROUP /etc/grafana/*
chmod 755 /etc/grafana
find /etc/grafana -type f -exec chmod 644 {} ';'
find /etc/grafana -type f -exec chmod 640 {} ';'
find /etc/grafana -type d -exec chmod 755 {} ';'

# if $2 is set, this is an upgrade
Expand Down
4 changes: 2 additions & 2 deletions packaging/rpm/control/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ if [ $1 -eq 1 ] ; then
chmod 755 /var/log/grafana /var/lib/grafana

# configuration files should not be modifiable by grafana user, as this can be a security issue
chown -Rh root:root /etc/grafana/*
chown -Rh root:$GRAFANA_GROUP /etc/grafana/*
chmod 755 /etc/grafana
find /etc/grafana -type f -exec chmod 644 {} ';'
find /etc/grafana -type f -exec chmod 640 {} ';'
find /etc/grafana -type d -exec chmod 755 {} ';'

if [ -x /bin/systemctl ] ; then
Expand Down

0 comments on commit a958965

Please sign in to comment.