File: snapper.postinst

package info (click to toggle)
snapper 0.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,172 kB
  • sloc: cpp: 19,670; ansic: 1,448; sh: 472; makefile: 389; python: 291; ruby: 31
file content (12 lines) | stat: -rw-r--r-- 198 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

set -e

case "$1" in
install|upgrade)
  if dpkg --compare-versions "$2" lt-nl 0.3.3-0.1; then
    rm /etc/cron.daily/snapper /etc/cron.hourly/snapper || true
  fi
esac
#DEBHELPER#
exit 0