Skip to content

Commit

Permalink
remove sudo user
Browse files Browse the repository at this point in the history
  • Loading branch information
cocomeow committed Aug 30, 2021
1 parent b5ba255 commit 0f188bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ getfacl -p -R "$pkgbuild_dir" /github/home > /tmp/arch-pkgbuild-builder-permissi

# '/github/workspace' is mounted as a volume and has owner set to root
# set the owner of $pkgbuild_dir to the 'build' user, so it can access package files.
sudo chown -R build "$pkgbuild_dir"
# sudo chown -R build "$pkgbuild_dir"

# needs permissions so '/github/home/.config/yay' is accessible by yay
sudo chown -R build /github/home
# sudo chown -R build /github/home

# use more reliable keyserver
mkdir -p /github/home/.gnupg/
Expand Down Expand Up @@ -76,4 +76,4 @@ case $target in
echo "Target should be one of 'pkgbuild', 'srcinfo', 'run'" ;;
esac

sudo setfacl --restore=/tmp/arch-pkgbuild-builder-permissions.bak
# sudo setfacl --restore=/tmp/arch-pkgbuild-builder-permissions.bak

0 comments on commit 0f188bc

Please sign in to comment.