Update debian packaging
This commit is contained in:
parent
0031f35b65
commit
8ddcb09894
2 changed files with 27 additions and 1 deletions
|
@ -16,7 +16,7 @@ PATH=/usr/sbin:/usr/bin:/sbin:/bin
|
|||
DESC="HTS Tvheadend"
|
||||
NAME=tvheadend
|
||||
DAEMON=/usr/bin/$NAME
|
||||
DAEMON_ARGS="-f"
|
||||
DAEMON_ARGS="-f -u hts -g video"
|
||||
PIDFILE=/var/run/$NAME.pid
|
||||
SCRIPTNAME=/etc/init.d/$NAME
|
||||
|
26
debian/hts-tvheadend.postinst
vendored
Normal file
26
debian/hts-tvheadend.postinst
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
#! /bin/sh -e
|
||||
|
||||
HTS_USER=hts
|
||||
|
||||
. /usr/share/debconf/confmodule
|
||||
db_version 2.0
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
|
||||
if ! getent passwd $HTS_USER >/dev/null; then
|
||||
echo "Creating user: $HTS_USER..."
|
||||
adduser --quiet --system --group --shell /bin/bash $HTS_USER
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "postinst called with unknown argument \`$1'" >&2
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
db_stop
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
Loading…
Add table
Reference in a new issue