set perms on data dir

main
Ayush Mukherjee 3 years ago
parent f294fd14d1
commit fc9868bbc6

@ -17,6 +17,9 @@ fi
# create directory if doesn't exist and set permissions # create directory if doesn't exist and set permissions
mkdir -p /etc/consul.d/ && chown -R consul:consul /etc/consul.d/ 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 # write systemd conf
cat >/etc/systemd/system/consul.service <<EOF cat >/etc/systemd/system/consul.service <<EOF
[Unit] [Unit]

Loading…
Cancel
Save