2023-09-05 21:14:40 +00:00
|
|
|
set -e
|
|
|
|
|
|
|
|
base="$1"
|
|
|
|
|
|
|
|
TMPDIR="$ROOT_TMPDIR/$base"
|
|
|
|
XDG_RUNTIME_DIR="$TMPDIR/.run"
|
2024-06-17 12:13:53 +00:00
|
|
|
XDG_STATE_HOME="$TMPDIR/.state"
|
2023-09-05 21:14:40 +00:00
|
|
|
|
2024-06-17 12:13:53 +00:00
|
|
|
mkdir -p "$TMPDIR" "$XDG_RUNTIME_DIR" "$XDG_STATE_HOME"
|
2023-09-05 21:14:40 +00:00
|
|
|
|
2023-09-06 19:06:03 +00:00
|
|
|
cat <<EOF
|
|
|
|
export TMPDIR="$TMPDIR"
|
|
|
|
export XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR"
|
2024-06-17 12:13:53 +00:00
|
|
|
export XDG_STATE_HOME="$XDG_STATE_HOME"
|
2024-07-06 12:26:06 +00:00
|
|
|
export ISLE_DAEMON_HTTP_SOCKET_PATH="$ROOT_TMPDIR/$base-daemon.sock"
|
2024-07-13 14:08:13 +00:00
|
|
|
BOOTSTRAP_FILE="$XDG_STATE_HOME/isle/bootstrap.json"
|
2023-09-06 19:06:03 +00:00
|
|
|
cd "$TMPDIR"
|
|
|
|
EOF
|