yggdrasil-go/contrib/docker/entrypoint.sh
vadym b5ee2aa023 changed Yggdrasil to RiV-mesh
added webview GUI
2021-09-13 12:10:02 +03:00

13 lines
232 B
Bash
Executable file

#!/usr/bin/env sh
set -e
CONF_DIR="/etc/RiV-chain"
if [ ! -f "$CONF_DIR/config.conf" ]; then
echo "generate $CONF_DIR/config.conf"
mesh --genconf > "$CONF_DIR/config.conf"
fi
mesh --useconf < "$CONF_DIR/config.conf"
exit $?