diff --git a/consul-bootstrap.sh b/consul-bootstrap.sh index 7ce2571..be9b938 100755 --- a/consul-bootstrap.sh +++ b/consul-bootstrap.sh @@ -84,6 +84,7 @@ bind_addr = "$bind_ip" retry_join = ["$server_ip"] EOF chmod 640 /etc/consul.d/consul.hcl + chown consul:consul /etc/consul.d/consul.hcl else @@ -98,6 +99,7 @@ ui_config { } EOF chmod 640 /etc/consul.d/server.hcl + chown consul:consul /etc/consul.d/server.hcl fi