From 765e5a902f916fc1722e4a97abe3863d1e5ccc20 Mon Sep 17 00:00:00 2001 From: Ayush Mukherjee Date: Sat, 8 Jan 2022 21:46:20 +0530 Subject: [PATCH] make it both client and server --- nomad-bootstrap.sh | 60 ++++++++++++++++++++++++---------------------- 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/nomad-bootstrap.sh b/nomad-bootstrap.sh index c8ebfae..a1da17f 100755 --- a/nomad-bootstrap.sh +++ b/nomad-bootstrap.sh @@ -19,20 +19,31 @@ if [ "$#" -eq 1 ] && [ "$1" == "-client" ]; then fi -# write systemd conf -cat >/etc/systemd/system/nomad.service </etc/nomad.d/nomad.hcl </etc/systemd/system/nomad.service </etc/nomad.d/nomad.hcl </etc/nomad.d/server.hcl </etc/nomad.d/client.hcl </etc/nomad.d/client.hcl <