diff --git a/.gear/systemd-crontab-generator.spec b/.gear/systemd-crontab-generator.spec index 0afc3cf..403a09c 100644 --- a/.gear/systemd-crontab-generator.spec +++ b/.gear/systemd-crontab-generator.spec @@ -16,6 +16,7 @@ Patch0: %name-%version-%release.patch Patch1: allow_deprecated_rustc-serialize.patch Patch2: makefile_install_fix.patch Patch3: fix_paths.patch +Patch4: nobody_user_fix.patch Requires(pre): crontab-control Requires: vitmp @@ -44,6 +45,7 @@ It's intended to be a drop-in replacement for all cron implementations. %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 %build ./configure diff --git a/nobody_user_fix.patch b/nobody_user_fix.patch new file mode 100644 index 0000000..55144b8 --- /dev/null +++ b/nobody_user_fix.patch @@ -0,0 +1,11 @@ +diff --git a/units/cron-failure@.service.in b/units/cron-failure@.service.in +index b99bf51..21d25a9 100644 +--- a/units/cron-failure@.service.in ++++ b/units/cron-failure@.service.in +@@ -8,5 +8,5 @@ ConditionFileIsExecutable=/usr/sbin/sendmail + [Service] + Type=oneshot + ExecStart={{ libdir }}/{{ package }}/mail-on-failure %i +-User=nobody ++User=root + Group=systemd-journal