vdr/vdr/debian vdr.postinst
Thomas Schmidt
pkg-vdr-dvb-changes@lists.alioth.debian.org
Sat, 15 Jan 2005 20:45:11 +0000
Update of /cvsroot/pkg-vdr-dvb/vdr/vdr/debian
In directory haydn:/tmp/cvs-serv30615/vdr/vdr/debian
Modified Files:
vdr.postinst
Log Message:
* do not fail when /var/lib/vdr is empty
* hide possible error-messages when running the chown-calls ;-)
Index: vdr.postinst
===================================================================
RCS file: /cvsroot/pkg-vdr-dvb/vdr/vdr/debian/vdr.postinst,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- vdr.postinst 15 Jan 2005 20:28:33 -0000 1.17
+++ vdr.postinst 15 Jan 2005 20:45:09 -0000 1.18
@@ -104,10 +104,10 @@
# ensure that vdr's config and recording files are correctly owned
[ ! -e /var/lib/video ] || chown -R vdr:vdr /var/lib/video/
- [ ! -e /var/lib/vdr ] || chown vdr:vdr /var/lib/vdr/*
[ ! -e /var/lib/vdr ] || chown vdr:vdr /var/lib/vdr
- [ ! -e /var/cache/vdr ] || chown vdr:vdr /var/cache/vdr/* || true
+ chown vdr:vdr /var/lib/vdr/* > /dev/null 2>&1 || true
[ ! -e /var/cache/vdr ] || chown vdr:vdr /var/cache/vdr
+ chown vdr:vdr /var/cache/vdr/* > /dev/null 2>&1|| true
# make /usr/lib/vdr/vdr-shutdown.wrapper setuid/setgid (owner root:vdr, mode 6750)
[ ! -e /usr/lib/vdr/vdr-shutdown.wrapper ] || \