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

Commit 6ee1e83

Browse files
author
Frank Streitzig
committed
Avoid mkdir error message
Error message: mkdir: cannot create directory '/var/run/grafana': File exists
1 parent 1e5d058 commit 6ee1e83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-launcher-postgres.sh

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

3-
mkdir /var/run/grafana && chown grafana /var/run/grafana
3+
mkdir -p /var/run/grafana && chown grafana /var/run/grafana
44

55
if [ ! -f /pgwatch2/persistent-config/self-signed-ssl.key -o ! -f /pgwatch2/persistent-config/self-signed-ssl.pem ] ; then
66
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)