Skip to content
Snippets Groups Projects
Commit 4b72c917 authored by nimrod's avatar nimrod
Browse files

Forgot to update script after updating the post.

parent ef69bcc5
No related branches found
No related tags found
No related merge requests found
......@@ -3,4 +3,6 @@ set -eu
command -v sudo > /dev/null || { echo "Can't find sudo, exiting."; exit 1; }
uid="$(stat . --format '%u')"
gid="$(stat . --format '%g')"
groupadd --force --non-unique --gid "$gid" builder
useradd --non-unique --gid "$gid" --home-dir /volume --no-create-home --shell /bin/sh builder
sudo -Eu "#$uid" -g "#$gid" -- "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment