Status: Accepted
begin
true ;
case_3402069 := arg 1 ;
if test [ case_3402069; '='; 'configure' ]
then if [ [ '!'; '-f'; '/var/lib/mirmon/state'; ']' ]
then touch [ '/var/lib/mirmon/state' ] fi
else (((test [ case_3402069; '='; 'abort-upgrade' ] ||
test [ case_3402069; '='; 'abort-remove' ]) ||
test [ case_3402069; '='; 'abort-deconfigure' ]) ||
begin
nooutput echo [ 'postinst called with unknown argument \`' arg 1
''' ] ;
exit failure
end)
fi ;
exit success
end
#!/bin/sh
# postinst script for mirmon
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * `configure'
# * `abort-upgrade'
# * `abort-remove' `in-favour'
#
# * `abort-remove'
# * `abort-deconfigure' `in-favour'
# `removing'
#
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
configure)
if [ ! -f /var/lib/mirmon/state ]; then
touch /var/lib/mirmon/state
fi
;;
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