diff options
Diffstat (limited to 'debian/postinst')
-rw-r--r-- | debian/postinst | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/debian/postinst b/debian/postinst index 37e4931d..de913aed 100644 --- a/debian/postinst +++ b/debian/postinst @@ -6,16 +6,19 @@ fi XRDP="xrdp" -CHOWN="/bin/chown" 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 -$CHOWN $XRDP:$XRDP $SESMANLOG - +touch $SESMANLOG $XRDPLOG +chown $XRDP:$XRDP $SESMANLOG +chown $XRDP:$XRDP $XRDPLOG +chgrp $XRDP $RSAKEYS +chmod g+r $RSAKEYS #DEBHELPER# |