Reportmirmonpostrm

Status: Accepted

Colis script


begin
  true ;
  case_2393095 := arg 1 ;
  ((((((test [ case_2393095; '='; 'remove' ] ||
         test [ case_2393095; '='; 'upgrade' ]) ||
        test [ case_2393095; '='; 'failed-upgrade' ]) ||
       test [ case_2393095; '='; 'abort-install' ]) ||
      test [ case_2393095; '='; 'abort-upgrade' ]) ||
     test [ case_2393095; '='; 'disappear' ]) ||
    if test [ case_2393095; '='; 'purge' ]
    then if [ [ '-f'; '/var/lib/mirmon/state'; ']' ]
         then rm [ '/var/lib/mirmon/state' ] fi
    else begin
           nooutput echo [ 'postrm called with unknown argument \`' arg 1 ''' ] ;
           exit failure
      end
    fi) ;
  exit success
end

Original Shell script

#!/bin/sh
# postrm script for mirmon
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
#        *  `remove'
#        *  `purge'
#        *  `upgrade' 
#        *  `failed-upgrade' 
#        *  `abort-install'
#        *  `abort-install' 
#        *  `abort-upgrade' 
#        *  `disappear' 
#          
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package


case "$1" in
    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
    ;;

    purge)
    if [ -f /var/lib/mirmon/state ]; then
      rm /var/lib/mirmon/state
    fi
    ;;

    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.



exit 0