Post install script
This commit is contained in:
parent
08f5a2e7c4
commit
fbe1e2ab74
24
postinstall-pak
Normal file
24
postinstall-pak
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/sh -e
|
||||||
|
|
||||||
|
if ! ([ "$1" = "configure" ] || [ "$1" = "reconfigure" ]); then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
XRDP="xrdp"
|
||||||
|
ADDUSER="/usr/sbin/adduser"
|
||||||
|
XRDPLOG="/var/log/xrdp-sesman.log"
|
||||||
|
SESMANLOG="/var/log/xrdp-sesman.log"
|
||||||
|
RSAKEYS="/etc/xrdp/rsakeys.ini"
|
||||||
|
|
||||||
|
[ -d /var/run/xrdp ] || mkdir -p /var/run/xrdp
|
||||||
|
$ADDUSER --system --disabled-password --disabled-login --home /var/run/xrdp \
|
||||||
|
--no-create-home --quiet --group $XRDP
|
||||||
|
|
||||||
|
touch $SESMANLOG $XRDPLOG
|
||||||
|
chown $XRDP:$XRDP $SESMANLOG
|
||||||
|
chown $XRDP:$XRDP $XRDPLOG
|
||||||
|
chgrp $XRDP $RSAKEYS
|
||||||
|
chmod g+r $RSAKEYS
|
||||||
|
|
||||||
|
#DEBHELPER#
|
Loading…
Reference in New Issue
Block a user