Skip to content

Commit

Permalink
vulnix module: more human-readable code style
Browse files Browse the repository at this point in the history
  • Loading branch information
dermetfan committed Sep 24, 2021
1 parent 466a73c commit 3b629a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/vulnix.nix
Expand Up @@ -193,9 +193,9 @@ in {
NOMAD_TOKEN=$(vault read -field secret_id nomad/creds/admin)
sleep 5s # let nomad token be propagated to come into effect
[[ -f $STATE_DIRECTORY/index ]] || {
if [[ ! -f $STATE_DIRECTORY/index ]]; then
printf '%d' 0 > $STATE_DIRECTORY/index
}
fi
# TODO If the NOMAD_TOKEN expires the service would probably exit uncleanly and restart. Make it a clean restart.
Expand Down

0 comments on commit 3b629a0

Please sign in to comment.