node-distro/s6/rich/etc/cont-init.d/40-ceramic
Anatoly Laskaris 35209b5e0c
Use different ceramic server per environment (#46)
* Set ceramic host per env

* Set ceramic url with glaze
2022-07-15 23:10:12 +03:00

10 lines
285 B
Plaintext

#!/usr/bin/with-contenv bash
if [[ -z $CERAMIC_HOST ]]; then
echo "\$CERAMIC_HOST is unset. Skipping ceramic CLI initialization"
else
echo "Setting ceramic url to to $CERAMIC_HOST"
ceramic config set ceramicHost "$CERAMIC_HOST"
glaze config:set ceramic-url "$CERAMIC_HOST"
fi