Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit aa0aade

Browse files
author
Frank Streitzig
committed
Add chown for /var/lib/grafana
Missing permission if /var/lib/grafana is a local directory and not a docker volume.
1 parent 6ee1e83 commit aa0aade

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docker-launcher-postgres.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22

33
mkdir -p /var/run/grafana && chown grafana /var/run/grafana
4+
chown grafana:grafana /var/lib/grafana
45

56
if [ ! -f /pgwatch2/persistent-config/self-signed-ssl.key -o ! -f /pgwatch2/persistent-config/self-signed-ssl.pem ] ; then
67
openssl req -x509 -newkey rsa:4096 -keyout /pgwatch2/persistent-config/self-signed-ssl.key -out /pgwatch2/persistent-config/self-signed-ssl.pem -days 3650 -nodes -sha256 -subj '/CN=pw2'

0 commit comments

Comments
 (0)