summaryrefslogtreecommitdiff
path: root/debian/postinst
diff options
context:
space:
mode:
authorAndreas Mair <amair.sob@googlemail.com>2005-05-12 11:01:29 +0200
committerAndreas Mair <amair.sob@googlemail.com>2005-05-12 11:01:29 +0200
commitbebe0382652e0616c8d040b3e217c2a21b81beee (patch)
tree30378ade7ba3e45c4ed6fc0915580cecc344d226 /debian/postinst
parent022c4f162d7b83cb287b7d16749899d9e7c4242a (diff)
downloadvdradmin-am-0.97-am3.2.tar.gz
vdradmin-am-0.97-am3.2.tar.bz2
2005-05-12: 0.97-am3.2v0.97-am3.2
- Added "make uninstall" to remove VDRAdmin from your system if you have installed it using "make install". Please always use this before you install a new release! - Fixed programming of repeating timers when day is "D" (Thanks to "maxkr" for reporting this). - Print date in prog_list & prog_list2 in system's locale. Please comment! - More transparent "selected channels" usage. - Added reccmds.conf content to rec_list (needs valid VDRCONFDIR in vdradmind.conf) - AutoTimers can now be limited to certain weekdays (Patch submitted by Magnus Schmidt). - Streaming can be turn on/off for live viewing and recordings viewing (Based on code submitted by Tobias Grimm). - Added streaming button to prog_list2. - Fixed handling of incorrect start/stop times in AutoTimer. - Changed localisation to use gettext() (Thanks to Tobias Grimm for doing most of the needed work). - Language can no longer be set in VDRAdmin, it's taken from your system's setting. Issue "export LC_MESSAGES=<language code>" if you need to change it, where <language code> is one of "de_DE", "en_EN", "es_ES", "fi_FI" or "fr_FR". - Added Finnish i18n (Submitted by Rolf Ahrenberg). - Fixed ":" & "|" handling in timer's directory (Thanks "vejoun"). - Added links to prog_list on channels in at_timer_list and timer_list. - Added IMDb lookup button to recording's detail view. - Added "Priority" and "Lifetime" tooltip to at_timer_list and timer_list (point mouse to timer's name). - Small changes for streaming recordings: Please update your vdradmind.conf (VIDEODIR & ST_VIDEODIR)! - Non-LinVDR logo on non-LinVDR machines (Posted by Unimatrix0 at vdrportal.de).
Diffstat (limited to 'debian/postinst')
-rw-r--r--debian/postinst66
1 files changed, 0 insertions, 66 deletions
diff --git a/debian/postinst b/debian/postinst
deleted file mode 100644
index 735d586..0000000
--- a/debian/postinst
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh -e
-set -e
-
-TEMPLATE_DIR=/usr/share/vdradmin/template
-
-# Check if there are still cfgfiles in /etc/vdradmin/ and move them
-# to /var/lib/vdradmin
-if [ ! -f /var/lib/vdradmin/vdradmind.conf ]; then
- if [ -f /etc/vdradmin/vdradmind.conf ]; then
- mv /etc/vdradmin/vdradmind.conf /var/lib/vdradmin/
- else
- cp /usr/share/doc/vdradmin/examples/vdradmind.conf /var/lib/vdradmin/
- fi
-fi
-
-[ -e /etc/vdradmin/vdradmind.conf ] || ln -s /var/lib/vdradmin/vdradmind.conf \
-/etc/vdradmin/vdradmind.conf
-
-if [ ! -f /var/lib/vdradmin/vdradmind.at ]; then
- [ ! -f /etc/vdradmin/vdradmind.at ] || mv /etc/vdradmin/vdradmind.at /var/lib/vdradmin/
-fi
-
-# ensure that user and group 'vdradmin' exist
-USER=vdradmin
-GROUP=vdradmin
-if ! getent group | grep -q "^$GROUP:" ; then
- echo -n "Adding group $GROUP.."
- addgroup --quiet --system $GROUP
- echo "..done"
-fi
-if ! getent passwd | grep -q "^$USER:"; then
- echo -n "Adding user $USER.."
- adduser --system --home /var/lib/vdradmin --shell /bin/false \
- --gecos "VDRAdmin user" --no-create-home \
- --disabled-login --disabled-password \
- --ingroup $GROUP \
- $USER
- echo "...done"
-fi
-
-# ensure vdradmind.at (auto timers) exists
-ATFILE=/var/lib/vdradmin/vdradmind.at
-[ -e $ATFILE ] || touch $ATFILE
-
-# ensure that vdradmin's config files have the correct owner
-[ ! -d /var/lib/vdradmin ] || chown -R $USER:$GROUP /var/lib/vdradmin/
-
-# change the permissions of the cfg-file to 0600
-[ ! -e /var/lib/vdradmin/vdradmind.conf ] || chmod 0600 /var/lib/vdradmin/vdradmind.conf
-
-# change the owner and group of the logfile to vdradmin
-[ ! -e /var/log/vdradmind.log ] || chown $USER:$GROUP /var/log/vdradmind.log
-
-# make auto timer file "read/writeable" by group vdr and config file readable
-# by group "vdr",so that vdr plugins (Autotimeredit plugin) get access
-if getent group | grep -q "^vdr:" ; then
- if [ -d /var/lib/vdradmin ] ; then
- chgrp -R vdr /var/lib/vdradmin
- chmod a=,ug=rwx /var/lib/vdradmin
- chmod a=,ug=rw $ATFILE
- CFGFILE=/var/lib/vdradmin/vdradmind.conf
- [ -e $CFGFILE ] && chmod a=,u=rw,g=r $CFGFILE
- fi
-fi
-
-##DEBHELPER##