Buckets:

rydlrKE's picture
download
raw
642 Bytes
#!/usr/bin/env bash
set -euo pipefail
HOST_UID="${HOST_UID:-}"
HOST_GID="${HOST_GID:-}"
HOST_USER="${HOST_USER:-user}"
if [[ -z "${HOST_UID}" || -z "${HOST_GID}" ]]; then
if [[ -d /workspace ]]; then
HOST_UID="$(stat -c %u /workspace)"
HOST_GID="$(stat -c %g /workspace)"
else
HOST_UID="${HOST_UID:-1000}"
HOST_GID="${HOST_GID:-1000}"
fi
fi
if ! getent group "${HOST_GID}" >/dev/null 2>&1; then
groupadd -g "${HOST_GID}" "${HOST_USER}"
fi
if ! getent passwd "${HOST_UID}" >/dev/null 2>&1; then
useradd -m -u "${HOST_UID}" -g "${HOST_GID}" -s /bin/bash "${HOST_USER}"
fi
exec gosu "${HOST_UID}:${HOST_GID}" "$@"

Xet Storage Details

Size:
642 Bytes
·
Xet hash:
553eb109097fc7e7c609c525b17f3b25f9996c4bc07d52daade9a6e726e1247e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.