From fc9868bbc62e0c1ddd91d819d5a03a6f8581e9b2 Mon Sep 17 00:00:00 2001 From: Ayush Mukherjee Date: Wed, 8 Dec 2021 00:03:31 +0530 Subject: [PATCH] set perms on data dir --- consul-bootstrap.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/consul-bootstrap.sh b/consul-bootstrap.sh index 7adcd48..5d137e9 100755 --- a/consul-bootstrap.sh +++ b/consul-bootstrap.sh @@ -17,6 +17,9 @@ fi # create directory if doesn't exist and set permissions mkdir -p /etc/consul.d/ && chown -R consul:consul /etc/consul.d/ +# create consul data dir and set permissions +mkdir -p /opt/consul && chown -R consul:consul /opt/consul + # write systemd conf cat >/etc/systemd/system/consul.service <