mirror of
https://github.com/fluencelabs/node-distro
synced 2024-12-13 03:05:33 +00:00
2488f2b317
* Manage IPFS addresses settings * Typo * Fix README * Fix readme * Use tcp entrypoint * Apply suggestions from code review Co-authored-by: folex <0xdxdy@gmail.com> * Fix README Co-authored-by: folex <0xdxdy@gmail.com>
19 lines
389 B
Plaintext
19 lines
389 B
Plaintext
#!/usr/bin/with-contenv bash
|
|
|
|
aqua_ipfs_vars=(
|
|
"FLUENCE_ENV_AQUA_IPFS_EXTERNAL_API_MULTIADDR"
|
|
"FLUENCE_ENV_AQUA_IPFS_LOCAL_API_MULTIADDR"
|
|
)
|
|
|
|
error=0
|
|
for var in ${aqua_ipfs_vars[@]}; do
|
|
if [[ -z ${!var} ]]; then
|
|
echo "$var must be defined in order for aqua-ipfs to work"
|
|
error=1
|
|
fi
|
|
done
|
|
if ((error)); then
|
|
echo "removing aqua-ipfs builtin"
|
|
rm -rf /builtins/aqua-ipfs
|
|
fi
|