File: refrain.patch

package info (click to toggle)
cron-apt 0.13.0.1
  • links: PTS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 324 kB
  • sloc: sh: 290; makefile: 79
file content (17 lines) | stat: -rw-r--r-- 484 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
From: Marc Haber <mh+debian-bugs@zugschlus.de>

--- /usr/sbin/cron-apt	2005-02-27 15:47:51.000000000 +0100
+++ cron-apt	2005-04-20 09:25:04.121607832 +0200
@@ -357,6 +357,12 @@
     mkdir -p "$MAILCHDIR"
 fi
 
+################## terminate if /etc/cron-apt/refrain exists ##################
+
+if [ -e "/etc/cron-apt/refrain" ]; then
+  exit 0
+fi
+
 ############################### sleep #########################################
 
 echo "CRON-APT RUN [$CONFIG]: $(date)" > $INITLOG