fine tune postinstall
This commit is contained in:
parent
a05987334a
commit
4d9cd08cfc
6
debian/postinst
vendored
6
debian/postinst
vendored
@ -8,14 +8,14 @@ fi
|
|||||||
XRDP="xrdp"
|
XRDP="xrdp"
|
||||||
CHOWN="/bin/chown"
|
CHOWN="/bin/chown"
|
||||||
ADDUSER="/usr/sbin/adduser"
|
ADDUSER="/usr/sbin/adduser"
|
||||||
|
SESMANLOG="/var/log/xrdp-sesman.log"
|
||||||
|
|
||||||
[ -d /var/run/xrdp ] || mkdir -p /var/run/xrdp
|
[ -d /var/run/xrdp ] || mkdir -p /var/run/xrdp
|
||||||
$ADDUSER --system --disabled-password --disabled-login --home /var/run/xrdp \
|
$ADDUSER --system --disabled-password --disabled-login --home /var/run/xrdp \
|
||||||
--no-create-home --quiet --group $XRDP
|
--no-create-home --quiet --group $XRDP
|
||||||
|
|
||||||
$CHOWN -R $XRDP:$XRDP /etc/xrdp
|
touch $SESMANLOG
|
||||||
touch /var/log/sesman.log
|
$CHOWN $XRDP:$XRDP $SESMANLOG
|
||||||
$CHOWN -R $XRDP:$XRDP /var/log/sesman.log
|
|
||||||
|
|
||||||
|
|
||||||
#DEBHELPER#
|
#DEBHELPER#
|
||||||
|
Loading…
Reference in New Issue
Block a user