diff --git a/ansible/archival-snapshots/resources/set_env.sh b/ansible/archival-snapshots/resources/set_env.sh index 62a2f0b99..e06d52c34 100755 --- a/ansible/archival-snapshots/resources/set_env.sh +++ b/ansible/archival-snapshots/resources/set_env.sh @@ -1,8 +1,5 @@ #!/bin/bash -## Enable strict error handling, command tracing, and pipefail -set -euxo pipefail - # Read the ADMIN_TOKEN from the file ADMIN_TOKEN=$(cat admin_token) @@ -10,8 +7,8 @@ ADMIN_TOKEN=$(cat admin_token) export FULLNODE_API_INFO="$ADMIN_TOKEN:/ip4/127.0.0.1/tcp/3456/http" # Save the environment variable to a file and source it -if echo "export FULLNODE_API_INFO=\"$FULLNODE_API_INFO\"" > /tmp/forest-archival-env.txt && source /tmp/forest-archival-env.txt; then - echo "Environment variable saved to and loaded from /tmp/forest-archival-env.txt" +if echo "export FULLNODE_API_INFO=\"$FULLNODE_API_INFO\"" > /tmp/forest-archival.env && source /tmp/forest-archival.env; then + echo "Environment variable saved to and loaded from /tmp/forest-archival.env" fi # Use the environment variable