Blame SOURCES/mailman-2.1.11-cron.patch

a3d59b
diff --git a/cron/bumpdigests b/cron/bumpdigests
a3d59b
index 57cc45e..4002731 100755
a3d59b
--- a/cron/bumpdigests
a3d59b
+++ b/cron/bumpdigests
a3d59b
@@ -1,4 +1,4 @@
a3d59b
-#! @PYTHON@
a3d59b
+#! @PYTHON@ -S
a3d59b
 #
a3d59b
 # Copyright (C) 1998-2018 by the Free Software Foundation, Inc.
a3d59b
 #
a3d59b
diff --git a/cron/checkdbs b/cron/checkdbs
a3d59b
index e776f15..c4d8179 100755
a3d59b
--- a/cron/checkdbs
a3d59b
+++ b/cron/checkdbs
a3d59b
@@ -1,4 +1,4 @@
a3d59b
-#! @PYTHON@
a3d59b
+#! @PYTHON@ -S
a3d59b
 #
a3d59b
 # Copyright (C) 1998-2018 by the Free Software Foundation, Inc.
a3d59b
 #
a3d59b
diff --git a/cron/crontab.in.in b/cron/crontab.in.in
a3d59b
index 540dfc1..45c5022 100644
a3d59b
--- a/cron/crontab.in.in
a3d59b
+++ b/cron/crontab.in.in
a3d59b
@@ -1,27 +1,50 @@
a3d59b
+#
a3d59b
+# -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- 
a3d59b
+# ------------------  EDIT THE CORRECT FILE  -------------------------
a3d59b
+# 
a3d59b
+# This file is copied to /etc/cron.d/mailman from
a3d59b
+# @prefix@/cron/crontab.in when the mailman service is started via its
a3d59b
+# init.d script and the file /etc/cron.d/mailman is removed when the
a3d59b
+# service is stopped.  Therefore any edits made directly to
a3d59b
+# /etc/cron.d/mailman will be lost anytime the mailman service
a3d59b
+# restarts.
a3d59b
+#
a3d59b
+# To make changes edit the master copy @prefix@/cron/crontab.in and then
a3d59b
+# restart the service to pick up the changes (/sbin/service mailman restart).
a3d59b
+#
a3d59b
+# The reason this is done this way is because the mailman cron jobs
a3d59b
+# should only be invoked if the mailman service is enabled and not
a3d59b
+# just as a consequence of installing the rpm as was the case
a3d59b
+# previously. The file /etc/cron.d/mailman cannot simply be linked to
a3d59b
+# the master copy in @prefix@/cron because for security reasons cron
a3d59b
+# will not process crontab files that are links or writeable by
a3d59b
+# anybody else but root, thus the file must be copied into /etc/cron.d
a3d59b
+# with the right ownership and permissions.
a3d59b
+#
a3d59b
 # At 8AM every day, mail reminders to admins as to pending requests.
a3d59b
 # They are less likely to ignore these reminders if they're mailed
a3d59b
 # early in the morning, but of course, this is local time... ;)
a3d59b
-0 8 * * * @PYTHON@ -S @prefix@/cron/checkdbs
a3d59b
+0 8 * * * @MAILMAN_USER@ @prefix@/cron/checkdbs
a3d59b
 #
a3d59b
 # At 9AM, send notifications to disabled members that are due to be
a3d59b
 # reminded to re-enable their accounts.
a3d59b
-0 9 * * * @PYTHON@ -S @prefix@/cron/disabled
a3d59b
+0 9 * * * @MAILMAN_USER@ @prefix@/cron/disabled
a3d59b
 #
a3d59b
 # Noon, mail digests for lists that do periodic as well as threshhold delivery.
a3d59b
-0 12 * * * @PYTHON@ -S @prefix@/cron/senddigests
a3d59b
+0 12 * * * @MAILMAN_USER@ @prefix@/cron/senddigests
a3d59b
 #
a3d59b
 # 5 AM on the first of each month, mail out password reminders.
a3d59b
-0 5 1 * * @PYTHON@ -S @prefix@/cron/mailpasswds
a3d59b
+0 5 1 * * @MAILMAN_USER@ @prefix@/cron/mailpasswds
a3d59b
 #
a3d59b
 # Every 5 mins, try to gate news to mail.  You can comment this one out
a3d59b
 # if you don't want to allow gating, or don't have any going on right now,
a3d59b
 # or want to exclusively use a callback strategy instead of polling.
a3d59b
-0,5,10,15,20,25,30,35,40,45,50,55 * * * * @PYTHON@ -S @prefix@/cron/gate_news
a3d59b
+0,5,10,15,20,25,30,35,40,45,50,55 * * * * @MAILMAN_USER@ @prefix@/cron/gate_news
a3d59b
 #
a3d59b
 # At 3:27am every night, regenerate the gzip'd archive file.  Only
a3d59b
 # turn this on if the internal archiver is used and
a3d59b
 # GZIP_ARCHIVE_TXT_FILES is false in mm_cfg.py
a3d59b
-27 3 * * * @PYTHON@ -S @prefix@/cron/nightly_gzip
a3d59b
+27 3 * * * @MAILMAN_USER@ @prefix@/cron/nightly_gzip
a3d59b
 #
a3d59b
 # At 4:30AM daily, cull old entries from the 'bad' and 'shunt' queues.
a3d59b
-30 4 * * * @PYTHON@ -S @prefix@/cron/cull_bad_shunt
a3d59b
+30 4 * * * @MAILMAN_USER@ @prefix@/cron/cull_bad_shunt
a3d59b
diff --git a/cron/disabled b/cron/disabled
a3d59b
index ac62582..971563d 100755
a3d59b
--- a/cron/disabled
a3d59b
+++ b/cron/disabled
a3d59b
@@ -1,4 +1,4 @@
a3d59b
-#! @PYTHON@
a3d59b
+#! @PYTHON@ -S
a3d59b
 #
a3d59b
 # Copyright (C) 2001-2018 by the Free Software Foundation, Inc.
a3d59b
 #
a3d59b
diff --git a/cron/gate_news b/cron/gate_news
a3d59b
index c66c09e..247c834 100755
a3d59b
--- a/cron/gate_news
a3d59b
+++ b/cron/gate_news
a3d59b
@@ -1,4 +1,4 @@
a3d59b
-#! @PYTHON@
a3d59b
+#! @PYTHON@ -S
a3d59b
 #
a3d59b
 # Copyright (C) 1998-2018 by the Free Software Foundation, Inc.
a3d59b
 #
a3d59b
diff --git a/cron/mailpasswds b/cron/mailpasswds
a3d59b
index da64376..5d8d792 100755
a3d59b
--- a/cron/mailpasswds
a3d59b
+++ b/cron/mailpasswds
a3d59b
@@ -1,4 +1,4 @@
a3d59b
-#! @PYTHON@
a3d59b
+#! @PYTHON@ -S
a3d59b
 #
a3d59b
 # Copyright (C) 1998-2018 by the Free Software Foundation, Inc.
a3d59b
 #
a3d59b
diff --git a/cron/nightly_gzip b/cron/nightly_gzip
a3d59b
index de493d0..8af0351 100755
a3d59b
--- a/cron/nightly_gzip
a3d59b
+++ b/cron/nightly_gzip
a3d59b
@@ -1,4 +1,4 @@
a3d59b
-#! @PYTHON@
a3d59b
+#! @PYTHON@ -S
a3d59b
 # 
a3d59b
 # Copyright (C) 1998-2018 by the Free Software Foundation, Inc.
a3d59b
 #
a3d59b
diff --git a/cron/senddigests b/cron/senddigests
a3d59b
index edf27a2..c64adc1 100755
a3d59b
--- a/cron/senddigests
a3d59b
+++ b/cron/senddigests
a3d59b
@@ -1,4 +1,4 @@
a3d59b
-#! @PYTHON@
a3d59b
+#! @PYTHON@ -S
a3d59b
 #
a3d59b
 # Copyright (C) 1998-2018 by the Free Software Foundation, Inc.
a3d59b
 #