Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[PATCH] Fixed permissions on /var/spool/cron, per #30
/var/spool/cron should be owned by this package, and should be group
writeable.
It's possible this package should also create a crontab group, and make
/var/spool/cron belong to and by writeable by that group, but this is
the minimal required change.
https://github.com/systemd-cron/systemd-cron-next/issues/30
---
PKGBUILD | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/PKGBUILD b/PKGBUILD
index ba5011c..a3687e5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=systemd-cron-next
pkgver=1.0.0.rc6
_gitver=1.0.0-rc6
-pkgrel=1
+pkgrel=2
pkgdesc="systemd generator to generate timers/services from crontab and anacrontab files"
url="https://github.com/systemd-cron/systemd-cron-next"
arch=('i686' 'x86_64')
@@ -28,4 +28,5 @@ build() {
package() {
cd "${srcdir}/${pkgname}-${_gitver}"
DESTDIR="${pkgdir}" make install
+ install -d -m 775 $pkgdir/var/spool/cron
}
--
2.7.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment