app-crypt/dehydrated: install hook.sh with chmod u+x by default
authorThomas Deutschmann <whissi@gentoo.org>
Sat, 6 Jul 2019 10:39:43 +0000 (12:39 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Sat, 6 Jul 2019 10:43:04 +0000 (12:43 +0200)
Although we do not enable hook.sh by default, we install it at least.
So make sure we set correct permission to avoid errors like

  /usr/bin/dehydrated: line 91: /etc/dehydrated/hook.sh: Permission denied

when user will enable hook.sh usage.

Package-Manager: Portage-2.3.68, Repoman-2.3.16
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
app-crypt/dehydrated/dehydrated-0.6.5.ebuild

index 0e0ffeaaf3b489150ff0cc8dcb048d930ce46cdf..4a5cbf642f136e713c97ce8ea24a9f2a0374694a 100644 (file)
@@ -30,6 +30,7 @@ src_install() {
        dobin "${PN}"
        insinto "/etc/${PN}"
        doins docs/examples/{config,domains.txt,hook.sh}
+       fperms u+x "/etc/${PN}/hook.sh"
        dodoc docs/*.md
 
        insinto /etc/"${PN}"/config.d