#!/bin/sh # preinst script for hitch # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `install' # * `install' # * `upgrade' # * `abort-upgrade' # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in install|upgrade) if [ -n "$1" ]; then # Fix #802533 (hitch: creates /nonexistent/) fixed in 1.0.0-1 dpkg --compare-versions '1.0.1-1'~ 'gt-nl' "${2:-}" && find /nonexistent -mindepth 0 -maxdepth 0 -type d -user _hitch -delete fi ;; abort-upgrade) ;; *) echo "preinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. # Automatically added by dh_installinit/13.14.1 if [ "$1" = "install" ] && [ -n "$2" ] && [ -e "/etc/init.d/hitch" ] ; then chmod +x "/etc/init.d/hitch" >/dev/null || true fi # End automatically added section exit 0