[go: up one dir, main page]

File: cups-daemon.preinst

package info (click to toggle)
cups 1.7.5-11
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 35,968 kB
  • sloc: ansic: 139,321; cpp: 8,582; makefile: 3,107; sh: 2,217; python: 10
file content (25 lines) | stat: -rw-r--r-- 634 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

set -e


case "$1" in
install|upgrade)
    if dpkg --compare-versions "$2" le "1.6.1" && [ -e /etc/cups/cupsd.conf ]; then
        # Move cupsd.conf away as it becomes a non-conffile
        mv /etc/cups/cupsd.conf /etc/cups/cupsd.conf.conffile-bak
    fi

    if dpkg --compare-versions "$2" le "1.7.5-7~"; then
        # Delete cupsd-systemd-listen configuration files once used to socket-activate CUPS
        for csl in cupsd-systemd-listen.conf cupsd-systemd-listen.conf.0; do
            if [ -e /etc/cups/$csl ]; then
                rm -f /etc/cups/$csl
            fi
        done
    fi
esac

#DEBHELPER#

exit 0