From 4b72c917a1350d1f723f6bc9039670a99b6a65b0 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Tue, 6 Feb 2018 13:28:29 +0200
Subject: [PATCH] Forgot to update script after updating the post.

---
 content/static/runas | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/content/static/runas b/content/static/runas
index 00dae93..1ac6577 100755
--- a/content/static/runas
+++ b/content/static/runas
@@ -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" -- "$@"
-- 
GitLab