Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Vandot committed Sep 29, 2023
1 parent 8c0ef5b commit e630a1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/bee/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ spec:
- >
if [ -f /home/bee/.bee/keys/swarm.key ]; then echo 'initial overlay already mined'; exit 0; fi;
NEIGH=$(wget -T 2 https://api.swarmscan.io/v1/network/neighborhoods/suggestion -q -O - | grep -Eoi '"neighborhood":"([0,1]{10}),?[^\\]' | grep -Eoi '[0,1]{10}');
if [ ! "${NEIGH}" =~ ^[0,1]{10}$ ]; then echo 'bad neighborhood value ' "${NEIGH}" ; exit 1; fi;
if [ ! -f /home/bee/.bee.yaml ]; then cp -p /tmp/.bee.yaml /home/bee/.bee.yaml; fi;
if ! [[ "${NEIGH}" =~ ^[0,1]{10}$ ]]; then echo 'bad neighborhood value ' "${NEIGH}" ; exit 1; fi;
if ! [ -f /home/bee/.bee.yaml ]; then cp -p /tmp/.bee.yaml /home/bee/.bee.yaml; fi;
printf 'target-neighborhood: %s\n' "${NEIGH}" >> /home/bee/.bee.yaml;
echo 'node initialization done';
volumeMounts:
Expand Down

0 comments on commit e630a1f

Please sign in to comment.