set -e TMPDIR="$TMPDIR/shared/single-node.tmp" XDG_RUNTIME_DIR="$TMPDIR/.run" XDG_DATA_HOME="$TMPDIR/.data" mkdir -p "$TMPDIR" "$XDG_RUNTIME_DIR" "$XDG_DATA_HOME" cd "$TMPDIR" if [ ! -d "$XDG_RUNTIME_DIR/isle" ]; then echo "Initializing shared single node cluster" mkdir a mkdir b mkdir c cat >daemon.yml < admin.yml isle daemon --config-path daemon.yml >daemon.log 2>&1 & echo "Waiting for daemon (process $!) to initialize" while ! isle hosts list >/dev/null; do sleep 1; done fi