From dadb78a2abeb45180d37f7927cdc0d738fc3d6f3 Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Tue, 26 Jan 2021 14:06:03 +0100
Subject: [PATCH] crontab was cleared after deb package upgrade

---
 debian-template/postinst | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/debian-template/postinst b/debian-template/postinst
index c6f237dd..4d55be22 100644
--- a/debian-template/postinst
+++ b/debian-template/postinst
@@ -50,9 +50,7 @@ if [ -d /run/systemd/system ]; then
   systemctl --system daemon-reload >/dev/null || true
 fi
 
-if [ "$1" = "configure" ] && [ -z "$2" ]; then
-    crontab -u smasch -l 2>/dev/null | grep -v "runcrons" | { cat; echo "*/5 * * * * . /usr/lib/smasch/env/bin/activate && python /usr/lib/smasch/manage.py runcrons >> /var/log/smasch/cronjob.log 2>&1"; } | crontab -u smasch -
-fi
+crontab -u smasch -l 2>/dev/null | grep -v "runcrons" | { cat; echo "*/5 * * * * . /usr/lib/smasch/env/bin/activate && python /usr/lib/smasch/manage.py runcrons >> /var/log/smasch/cronjob.log 2>&1"; } | crontab -u smasch -
 
 #DEBHELPER#
 
-- 
GitLab