Skip to content

Commit e096f05

Browse files
authored
Change permissions for /github/home
Otherwise it fails with ``` Failed to create config directory '/github/home/.config/yay': mkdir /github/home/.config: permission denied ```
1 parent da5e9cf commit e096f05

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ pkgbuild_dir=$(readlink $pkgname -f) # nicely cleans up path, ie. ///dsq/dqsdsq/
3030
# set the owner of $pkgbuild_dir to the 'build' user, so it can access package files.
3131
sudo chown -R build $pkgbuild_dir
3232

33+
# needs permissions so '/github/home/.config/yay' is accessible by yay
34+
sudo chown -R build /github/home
35+
3336
cd $pkgbuild_dir
3437

3538
pkgname="$(basename $pkgbuild_dir)" # keep quotes in case someone passes in a directory path with whitespaces...

0 commit comments

Comments
 (0)