Reportozpostrm

Status: Accepted

Colis script


begin
  true ;
  FILE := '/etc/oz/id_rsa-icicle-gen' ;
  case_1134014 := arg 1 ;
  if test [ case_1134014; '='; 'purge' ]
  then if [ [ '-f'; split FILE; ']' ]
       then rm [ split FILE; split FILE '.pub' ] fi
  else ((((((test [ case_1134014; '='; 'remove' ] ||
              test [ case_1134014; '='; 'upgrade' ]) ||
             test [ case_1134014; '='; 'failed-upgrade' ]) ||
            test [ case_1134014; '='; 'abort-install' ]) ||
           test [ case_1134014; '='; 'abort-upgrade' ]) ||
          test [ case_1134014; '='; 'disappear' ]) ||
         begin
           nooutput echo [ 'postrm called with unknown argument \`' arg 1 ''' ] ;
           exit failure
         end)
  fi ;
  exit success
end

Original Shell script

#!/bin/sh

set -e

FILE="/etc/oz/id_rsa-icicle-gen"

case "$1" in
    purge)
    if [ -f $FILE ]; then
        rm $FILE $FILE.pub
    fi
    ;;

    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
    ;;

    *)
        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