# arg 1: the new package version post_install() { MYTHOME=` su - mythtv -c "echo ~" ` if [ ! -f $MYTHOME/.xine/config ] then echo "Copying in standard config file for xine" mkdir -p $MYTHOME/.xine/ cp -rp $TEMPLATES/xine.config.template $MYTHOME/.xine/config chown -R mythtv:mythtv $MYTHOME/.xine fi } # # arg 1: the new package version # # arg 2: the old package version post_upgrade() { post_install $1 } # # # arg 1: the old package version post_remove() { /bin/true } op=$1 shift $op $*