diff --git a/entrypoint.sh b/entrypoint.sh index 8479aee..3e72790 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -26,6 +26,8 @@ fi pkgbuild_dir=$(readlink $pkgname -f) # nicely cleans up path, ie. ///dsq/dqsdsq/my-package//// -> /dsq/dqsdsq/my-package +getfacl -p -R "$pkgbuild_dir" /github/home > /tmp/arch-pkgbuild-builder-permissions.bak + # '/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 @@ -67,3 +69,5 @@ case $target in *) echo "Target should be one of 'pkgbuild', 'srcinfo', 'run'" ;; esac + +sudo setfacl --restore=/tmp/arch-pkgbuild-builder-permissions.bak