Skip to content

Commit

Permalink
Merge pull request #199 from femiwiki/multiple-homes
Browse files Browse the repository at this point in the history
Multiple home
  • Loading branch information
lens0021 authored Mar 1, 2024
2 parents 9b8cd3b + b6ef170 commit 91ddcc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nomad-acl-bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 91ddcc3

Please sign in to comment.