Blame SOURCES/mailman-2.1.11-cron.patch

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