docker/entrypoint.sh 456 B 15 lines Raw
1 #!/bin/sh2 # Generates the first bearer token in the state volume. A mounted token file3 # keeps its bytes; this script never replaces one that already exists.4 set -eu5 6 install -d /var/lib/inf3r/blobs7 install -d -m 0700 /run/inf3r8 token=/var/lib/inf3r/token9 if [ ! -s "$token" ]; then10     umask 07711     od -An -v -tx1 -N32 /dev/urandom | tr -d ' \n' >"$token"12     printf '\n' >>"$token"13 fi14 15 exec /usr/local/bin/inf3r-web --deploy /etc/inf3r/deploy.toml "$@"