Reportdnshistorypostinst

Status: Accepted

Colis script


begin
  true ;
  case_6734286 := arg 1 ;
  if test [ case_6734286; '='; 'configure' ]
  then ([ [ '-d'; '/var/lib/dnshistory'; ']' ] ||
         mkdir [ '/var/lib/dnshistory' ])
  else (((test [ case_6734286; '='; 'abort-upgrade' ] ||
           test [ case_6734286; '='; 'abort-remove' ]) ||
          test [ case_6734286; '='; 'abort-deconfigure' ]) ||
         begin
           nooutput echo [ 'postinst called with unknown argument \`' arg 1
                           ''' ] ;
           exit failure
         end)
  fi ;
  exit success
end

Original Shell script

#!/bin/sh
# postinst script for dnshistory

set -e

case "$1" in
    configure)

        [ -d /var/lib/dnshistory ] || mkdir /var/lib/dnshistory;
        ;;

    abort-upgrade|abort-remove|abort-deconfigure)

        ;;

    *)
        echo "postinst 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