diff --git a/nomad-acl-bootstrap b/nomad-acl-bootstrap index 51cde34..e49364d 100755 --- a/nomad-acl-bootstrap +++ b/nomad-acl-bootstrap @@ -12,7 +12,8 @@ export NOMAD_TOKEN=$NOMAD_TOKEN echo "$NOMAD_TOKEN" >> "/etc/nomad.d/token" # .bashrc: Add a step to read the token from the local file -cat <<< 'export NOMAD_TOKEN=$(sudo cat /etc/nomad.d/token)' >> "$HOME/.bashrc" +cat <<< 'export NOMAD_TOKEN=$(sudo cat /etc/nomad.d/token)' >> "/root/.bashrc" +cat <<< 'export NOMAD_TOKEN=$(sudo cat /etc/nomad.d/token)' >> "/home/ec2-user/.bashrc" # Print the token to stdout echo "Nomad ACL Secret ID = $NOMAD_TOKEN"