r340 - vdr/vdr-xxv/trunk/debian
Tobias Grimm
pkg-vdr-dvb-changes@lists.alioth.debian.org
Mon, 28 Mar 2005 11:05:52 +0000
Author: tiber-guest
Date: 2005-03-28 11:05:46 +0000 (Mon, 28 Mar 2005)
New Revision: 340
Modified:
vdr/vdr-xxv/trunk/debian/postinst
Log:
set home dir and user description
Modified: vdr/vdr-xxv/trunk/debian/postinst
===================================================================
--- vdr/vdr-xxv/trunk/debian/postinst 2005-03-28 10:33:38 UTC (rev 339)
+++ vdr/vdr-xxv/trunk/debian/postinst 2005-03-28 11:05:46 UTC (rev 340)
@@ -152,13 +152,15 @@
#
setup_user()
{
- USER=$1
- GROUP=$2
+ USER="$1"
+ GROUP="$2"
+ HOME="$3"
+ DESC="$4"
setup_group $GROUP
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 \
+ adduser --system --home "$HOME" --shell /bin/false \
+ --gecos "$DESC" --no-create-home --disabled-login \
--disabled-password --ingroup $GROUP $USER
echo "...done"
fi
@@ -189,7 +191,7 @@
# user and group (xxv needs access to some vdr files and must therefore
# be a member of the group vdr)
setup_group "xxv"
- setup_user "xxv" "vdr"
+ setup_user "xxv" "vdr" /var/lib/vdr-xxv/ "XXV user"
chown -R xxv:xxv /var/lib/vdr-xxv
chown -R xxv:xxv /var/cache/vdr-xxv/doc