AccessControl: Add provisioning folder to the packaging process (#34398)

* AccessControl: Add provisioning folder to the packaging process
This commit is contained in:
Gabriel MABILLE
2021-05-20 09:41:39 +02:00
committed by GitHub
parent 07302faec2
commit d56a653e73
8 changed files with 70 additions and 1 deletions

View File

@@ -47,6 +47,11 @@ case "$1" in
cp /usr/share/grafana/conf/provisioning/plugins/sample.yaml $PROVISIONING_CFG_DIR/plugins/sample.yaml
fi
if [ ! -d $PROVISIONING_CFG_DIR/access-control ]; then
mkdir -p $PROVISIONING_CFG_DIR/access-control
cp /usr/share/grafana/conf/provisioning/access-control/sample.yaml $PROVISIONING_CFG_DIR/access-control/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/*
chmod 755 /etc/grafana