summaryrefslogtreecommitdiff
path: root/debian/vdr-plugin-webvideo.postinst
diff options
context:
space:
mode:
authorAntti Ajanki <antti.ajanki@iki.fi>2010-08-25 20:47:32 +0300
committerAntti Ajanki <antti.ajanki@iki.fi>2010-08-25 20:47:32 +0300
commit0afac96f286456aa65109ccb92cf03f79c964c0f (patch)
treecf060dd0c54a7f9ba3f8b102bb424440c732b945 /debian/vdr-plugin-webvideo.postinst
parentf817cb0f4c07788a2c114590fd317c94c9a3958c (diff)
downloadvdr-plugin-webvideo-0afac96f286456aa65109ccb92cf03f79c964c0f.tar.gz
vdr-plugin-webvideo-0afac96f286456aa65109ccb92cf03f79c964c0f.tar.bz2
postinst and preinst in correct packages
Diffstat (limited to 'debian/vdr-plugin-webvideo.postinst')
-rw-r--r--debian/vdr-plugin-webvideo.postinst43
1 files changed, 43 insertions, 0 deletions
diff --git a/debian/vdr-plugin-webvideo.postinst b/debian/vdr-plugin-webvideo.postinst
new file mode 100644
index 0000000..33bb639
--- /dev/null
+++ b/debian/vdr-plugin-webvideo.postinst
@@ -0,0 +1,43 @@
+#!/bin/sh
+# postinst script for vdr-plugin-webvideo
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <postinst> `abort-remove'
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ configure)
+ chown vdr:vdr /var/lib/webvideo
+ chmod g=rwx /var/lib/webvideo
+ ;;
+
+ 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.
+
+#DEBHELPER#
+
+exit 0
+
+