Fix sudoers.d/zfs file permission

pull/331/head
Jan Houben 5 years ago
parent d2bfe4ec92
commit c9c9de699b
  1. 2
      src/kernels/_utils.sh
  2. 3
      src/zfs-utils/PKGBUILD.sh

@ -3,7 +3,7 @@ mode_name="utils"
mode_desc="Select and use the utils packages" mode_desc="Select and use the utils packages"
# version # version
pkgrel="1" pkgrel="2"
# Version for GIT packages # Version for GIT packages
pkgrel_git="1" pkgrel_git="1"

@ -25,7 +25,7 @@ provides=("zfs-utils" "spl-utils")
install=zfs-utils.install install=zfs-utils.install
conflicts=("zfs-utils" "spl-utils") conflicts=("zfs-utils" "spl-utils")
${zfs_utils_replaces} ${zfs_utils_replaces}
backup=('etc/zfs/zed.d/zed.rc' 'etc/default/zfs' 'etc/modules-load.d/zfs.conf') backup=('etc/zfs/zed.d/zed.rc' 'etc/default/zfs' 'etc/modules-load.d/zfs.conf' 'etc/sudoers.d/zfs')
build() { build() {
cd "${zfs_workdir}" cd "${zfs_workdir}"
@ -56,6 +56,7 @@ package() {
# fix permissions # fix permissions
chmod 750 \${pkgdir}/etc/sudoers.d chmod 750 \${pkgdir}/etc/sudoers.d
chmod 440 \${pkgdir}/etc/sudoers.d/zfs
# Install the support files # Install the support files
install -D -m644 "\${srcdir}"/zfs-utils.initcpio.hook "\${pkgdir}"/usr/lib/initcpio/hooks/zfs install -D -m644 "\${srcdir}"/zfs-utils.initcpio.hook "\${pkgdir}"/usr/lib/initcpio/hooks/zfs

Loading…
Cancel
Save