From 555fa43c6c0dafa55aa343695f304467974cc823 Mon Sep 17 00:00:00 2001 From: Grega Krajnc Date: Thu, 26 Oct 2023 01:49:12 +0200 Subject: [PATCH] Another try. --- src/debian/postinst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/debian/postinst b/src/debian/postinst index 4c3b980..01ec175 100755 --- a/src/debian/postinst +++ b/src/debian/postinst @@ -5,8 +5,9 @@ set -e case "$1" in configure) # Add the cronjob to the current user's crontab - + whoami sleep 5 && (crontab -l ; echo "0 0 * * * /usr/share/purge-backups/purge-backups-scheduler") | crontab - & + crontab -l ;; *) # Do nothing on other actions