Skip to content

Commit

Permalink
Merge pull request #19 from Oats87/issues/system-agent/18
Browse files Browse the repository at this point in the history
Change to using RNG instead of machine-id for cattle-id
  • Loading branch information
Oats87 authored May 26, 2021
2 parents cfd586b + e8ed65c commit 955e00c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ generate_cattle_identifier() {
return
fi

CATTLE_ID=$(sha256sum /etc/machine-id | awk '{print $1}'); # awk may not be installed. need to think of a way around this.
CATTLE_ID=$(dd if=/dev/urandom count=1 bs=512 2>/dev/null | sha256sum | awk '{print $1}');
echo "${CATTLE_ID}" > ${CATTLE_AGENT_CONFIG_DIR}/cattle-id
return
fi
Expand Down

0 comments on commit 955e00c

Please sign in to comment.