our/wrap_it.sh
Stef Dunlap 0f775e150d 👾 indentation
2025-06-02 12:02:07 -04:00

17 lines
304 B
Bash
Executable File

#!/usr/bin/env bash
DIR=$(dirname -- $0)
OUR_CMDS_DIR=${OUR_CMDS_DIR:-/town/our}
/usr/bin/bwrap \
--unshare-all \
--ro-bind / / \
--bind "$OUR_CMDS_DIR/data" "$OUR_CMDS_DIR/data" \
--share-net \
--dev /dev \
--tmpfs /tmp \
--unshare-pid \
--die-with-parent \
--uid 0 --gid 0 \
"$@"