# arg 1: the new package version post_install() { ln -s /myth/video /data/srv/httpd/htdocs/mythweb/data/video ln -s /myth/video/.covers /data/srv/httpd/htdocs/mythweb/data/video_covers } # arg 1: the new package version # arg 2: the old package version #post_upgrade() { #} # arg 1: the old package version post_remove() { rm -fr /data/srv/httpd/htdocs/mythweb/data/video rm -fr /data/srv/httpd/htdocs/mythweb/data/video_covers } op=$1 shift $op $*