-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
46fa5ac
commit be254af
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,15 +44,15 @@ if [ ! $FIRST ]; then | |
[ "$?" = "0" ] && break | ||
set -e | ||
|
||
( fgrep 'ACL bootstrap already done' /tmp/boot.log ) && break | ||
( grep -F 'ACL bootstrap already done' /tmp/boot.log ) && break | ||
sleep 1 | ||
done | ||
set -e | ||
|
||
consul keygen | tr -d '^\n' | podman secret create HIND_C - | ||
nomad operator gossip keyring generate | tr -d '^\n' | podman secret create HIND_N - | ||
|
||
export NOMAD_TOKEN=$(fgrep 'Secret ID' /tmp/bootstrap |cut -f2- -d= |tr -d ' ') | ||
export NOMAD_TOKEN=$(grep -F 'Secret ID' /tmp/bootstrap |cut -f2- -d= |tr -d ' ') | ||
echo -n $NOMAD_TOKEN | podman secret create NOMAD_TOKEN - | ||
|
||
rm -f /tmp/bootstrap | ||
|
@@ -90,7 +90,7 @@ FI=/lib/systemd/system/systemd-networkd.socket | |
if [ -e $FI ]; then | ||
# workaround focal-era bug after ~70 deploys (and thus 70 "veth" interfaces) | ||
# https://www.mail-archive.com/[email protected]/msg5888501.html | ||
sed -i '' -e 's^ReceiveBuffer=.*$^ReceiveBuffer=256M^' $FI | ||
sed -i 's^ReceiveBuffer=.*$^ReceiveBuffer=256M^' $FI | ||
fi | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters