From 0bfe96e621963f6c19350d27d2c1b58f52f08464 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Tue, 1 Mar 2022 13:13:05 -0300 Subject: [PATCH] Build with calbuilder user --- pkgbuild.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgbuild.sh b/pkgbuild.sh index b6db600..9344b7f 100755 --- a/pkgbuild.sh +++ b/pkgbuild.sh @@ -35,7 +35,7 @@ installAurDeps() { importPrivateKey() { echo "$gpgPrivateKey" > private.key gpgFlags=("--batch" "--pinentry-mode" "loopback" "--passphrase") - sudo -H -u nobody gpg "${gpgFlags[@]}" "$gpgPassphrase" --import private.key + sudo -Hu calbuilder gpg "${gpgFlags[@]}" "$gpgPassphrase" --import private.key rm private.key sedCommand="gpg ${gpgFlags[*]} \"$gpgPassphrase\"" makepkgSigFile="/usr/share/makepkg/integrity/generate_signature.sh" @@ -45,9 +45,9 @@ importPrivateKey() { buildPackage() { if [ -n "$gpgPrivateKey" ] && [ -n "$gpgPublicKey" ]; then importPrivateKey - sudo -H -u nobody makepkg -s --sign --key "$gpgPublicKey" --noconfirm + sudo -Hu calbuilder makepkg -s --sign --key "$gpgPublicKey" --noconfirm else - sudo -u nobody makepkg -s --noconfirm + sudo -Hu calbuilder makepkg -s --noconfirm fi }