File: apt-cacher-ng.preinst

package info (click to toggle)
apt-cacher-ng 3.3.1-2~bpo10+1
  • links: PTS, VCS
  • area: main
  • in suites: buster-backports
  • size: 2,040 kB
  • sloc: cpp: 17,564; sh: 553; ansic: 401; perl: 377; makefile: 126
file content (18 lines) | stat: -rw-r--r-- 382 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e

LASTVERSION=0.7.19-2~

NAME=apt-cacher-ng
CFG=/etc/$NAME

case "$1" in
   install|upgrade)
      if dpkg --compare-versions "$2" le "$LASTVERSION"; then
         for cfn in backends_debvol backends_ubuntu backends_debian ; do
            mkdir -p $CFG/oldconffiles
            mv -f $CFG/$cfn $CFG/oldconffiles 2>/dev/null ||:
         done
      fi
esac

#DEBHELPER#