Skip to content

Commit

Permalink
Trying delaying approach for inserting the crontab entry.
Browse files Browse the repository at this point in the history
  • Loading branch information
srnjak committed Oct 25, 2023
1 parent 4f2a64e commit 4f95966
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/debian/destinations
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ doc/examples/*:usr/share/doc/purge-backups/examples
debian/preinst:DEBIAN
debian/postinst:DEBIAN
debian/postrm:DEBIAN
debian/rules:DEBIAN
3 changes: 2 additions & 1 deletion src/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ set -e
case "$1" in
configure)
# Add the cronjob to the current user's crontab
(crontab -l ; echo "0 0 * * * /usr/share/purge-backups/purge-backups-scheduler") | crontab -

(crontab -l ; echo "0 0 * * * /usr/share/purge-backups/purge-backups-scheduler") | crontab - | at now + 1 minute
;;
*)
# Do nothing on other actions
Expand Down
4 changes: 0 additions & 4 deletions src/debian/rules

This file was deleted.

0 comments on commit 4f95966

Please sign in to comment.