From f0b30ab4395f2623f4b6e0fe3c06dd2a532c70f4 Mon Sep 17 00:00:00 2001 From: nyyu Date: Wed, 19 May 2021 09:54:28 +0200 Subject: [PATCH] build user --- build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 92931da..c90124d 100755 --- a/build.sh +++ b/build.sh @@ -1,9 +1,13 @@ #!/bin/bash +useradd build -m +echo '\nbuild ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers +chown -R build:build * + for d in */ ; do echo "$d" cd "$d" - makepkg -s --skippgpcheck + sudo -u build sh -c 'makepkg -s --skippgpcheck' if [ $? -eq 0 ]; then PKG=$(*.pkg.tar.zst) cp $PKG /repo/