Skip to content

Commit

Permalink
Exit config-init script on error (#531)
Browse files Browse the repository at this point in the history
* Exit config-init script on error

* Update chart tests
  • Loading branch information
harryttd authored Jan 12, 2023
1 parent 71454ae commit 274cb6c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
5 changes: 2 additions & 3 deletions charts/tezos/scripts/config-init.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
set -e

echo "Writing custom configuration for public node"
mkdir -p /etc/tezos/data

#
# This is my comment.

/usr/local/bin/octez-node config init \
--config-file /etc/tezos/data/config.json \
--data-dir /etc/tezos/data \
Expand Down
5 changes: 2 additions & 3 deletions test/charts/mainnet.expect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,11 @@ spec:
args:
- "-c"
- |
set -e
echo "Writing custom configuration for public node"
mkdir -p /etc/tezos/data
#
# This is my comment.
/usr/local/bin/octez-node config init \
--config-file /etc/tezos/data/config.json \
--data-dir /etc/tezos/data \
Expand Down
10 changes: 4 additions & 6 deletions test/charts/mainnet2.expect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,11 @@ spec:
args:
- "-c"
- |
set -e
echo "Writing custom configuration for public node"
mkdir -p /etc/tezos/data
#
# This is my comment.
/usr/local/bin/octez-node config init \
--config-file /etc/tezos/data/config.json \
--data-dir /etc/tezos/data \
Expand Down Expand Up @@ -691,12 +690,11 @@ spec:
args:
- "-c"
- |
set -e
echo "Writing custom configuration for public node"
mkdir -p /etc/tezos/data
#
# This is my comment.
/usr/local/bin/octez-node config init \
--config-file /etc/tezos/data/config.json \
--data-dir /etc/tezos/data \
Expand Down

0 comments on commit 274cb6c

Please sign in to comment.