fix perms and script mistake

main
Ayush Mukherjee 3 years ago
parent a227919b02
commit 3e66cbb8fd

@ -56,6 +56,7 @@ cat >/etc/nomad.d/nomad.hcl <<EOF
datacenter = "dc1"
data_dir = "/opt/nomad"
EOF
chmod 640 /etc/nomad.d/nomad.hcl
chown nomad:nomad /etc/nomad.d/nomad.hcl
if [ $nomaduser == "nomad" ]; then
@ -70,6 +71,7 @@ ui {
enabled = true
}
EOF
chmod 640 /etc/nomad.d/server.hcl
chown nomad:nomad /etc/nomad.d/server.hcl
else
@ -79,7 +81,8 @@ client {
enabled = true
}
EOF
chown nomad:no
chmod 640 /etc/nomad.d/client.hcl
chown nomad:nomad /etc/nomad.d/client.hcl
fi

Loading…
Cancel
Save