Merge pull request #2528 from thuck/permissions
Fixing permission issues for new installations
This commit is contained in:
@@ -36,6 +36,8 @@ MAX_OPEN_FILES=10000
|
|||||||
PID_FILE=/var/run/$NAME.pid
|
PID_FILE=/var/run/$NAME.pid
|
||||||
DAEMON=/usr/sbin/$NAME
|
DAEMON=/usr/sbin/$NAME
|
||||||
|
|
||||||
|
umask 0027
|
||||||
|
|
||||||
if [ `id -u` -ne 0 ]; then
|
if [ `id -u` -ne 0 ]; then
|
||||||
echo "You need root privileges to run this script"
|
echo "You need root privileges to run this script"
|
||||||
exit 4
|
exit 4
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ ExecStart=/usr/sbin/grafana-server \
|
|||||||
cfg:default.paths.data=${DATA_DIR} \
|
cfg:default.paths.data=${DATA_DIR} \
|
||||||
LimitNOFILE=10000
|
LimitNOFILE=10000
|
||||||
TimeoutStopSec=20
|
TimeoutStopSec=20
|
||||||
|
UMask=0027
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
Reference in New Issue
Block a user