APKBUILD examples:Permissions: Difference between revisions

From Alpine Linux
(Created page with "If the source files have strange permissions you can easily fix this in your APKBUILD. <pre> # Fix subdir perms find "$subpkgdir"/usr/share/doc/$pkgname/ -type d \ -exec chmod ...")
 
m (Reverted edits by RuthHughes (talk) to last revision by Fab)
(One intermediate revision by one other user not shown)
(No difference)

Revision as of 12:29, 7 March 2016

If the source files have strange permissions you can easily fix this in your APKBUILD.

# Fix subdir perms
find "$subpkgdir"/usr/share/doc/$pkgname/ -type d \
	-exec chmod 755 '{}' \; || return 1
find "$subpkgdir"/usr/share/$pkgname/ -type d \
	-exec chmod 755 '{}' \; || return 1