Changeset 1769 for disable-apparmor


Ignore:
Timestamp:
May 31, 2016, 5:12:25 PM (3 years ago)
Author:
kbut
Message:

set case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • disable-apparmor/trunk/fuentes/debian/prerm

    r1661 r1769  
    11#!/bin/sh
    2 tmp1=`mktemp`
    3 tmp2=`mktemp`
     2# prerm script for disable-apparmor
     3#
     4# see: dh_installdeb(1)
    45
    5 echo $tmp1 $tmp2 > /tmp/disable-apparmor
     6set -e
    67
    7 cp /usr/sbin/disable-apparmor $tmp1
    8 cp /usr/share/disable-apparmor/services $tmp2
     8# summary of how this script can be called:
     9#        * <prerm> `remove'
     10#        * <old-prerm> `upgrade' <new-version>
     11#        * <new-prerm> `failed-upgrade' <old-version>
     12#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
     13#        * <deconfigured's-prerm> `deconfigure' `in-favour'
     14#          <package-being-installed> <version> `removing'
     15#          <conflicting-package> <version>
     16# for details, see https://www.debian.org/doc/debian-policy/ or
     17# the debian-policy package
     18
     19
     20case "$1" in
     21    upgrade|deconfigure)
     22    ;;
     23    remove)
     24        tmp1=`mktemp`
     25        tmp2=`mktemp`
     26       
     27        echo $tmp1 $tmp2 > /tmp/disable-apparmor
     28       
     29        cp /usr/sbin/disable-apparmor $tmp1
     30        cp /usr/share/disable-apparmor/services $tmp2
     31    ;;
     32
     33    failed-upgrade)
     34    ;;
     35
     36    *)
     37        echo "prerm called with unknown argument \`$1'" >&2
     38        exit 1
     39    ;;
     40esac
     41
     42# dh_installdeb will replace this with shell code automatically
     43# generated by other debhelper scripts.
     44
     45#DEBHELPER#
     46
     47exit 0
     48
Note: See TracChangeset for help on using the changeset viewer.