From 24cd575b2796d4764f3ea03aba259a3fcc3ffe92 Mon Sep 17 00:00:00 2001 From: Shaquille Soekhlal Date: Mon, 28 Mar 2022 18:21:35 +0200 Subject: [PATCH] Add 'setupbuild.sh' --- setupbuild.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 setupbuild.sh diff --git a/setupbuild.sh b/setupbuild.sh new file mode 100644 index 0000000..4097289 --- /dev/null +++ b/setupbuild.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +useradd --no-create-home --shell=/bin/sh build && usermod -L build +echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers +echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers +chown -R build:build /drone/src \ No newline at end of file