You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
474 B

  1. #!/bin/sh -e
  2. if ! ([ "$1" = "configure" ] || [ "$1" = "reconfigure" ]); then
  3. exit 0
  4. fi
  5. XRDP="xrdp"
  6. ADDUSER="/usr/sbin/adduser"
  7. XRDPLOG="/var/log/xrdp-sesman.log"
  8. SESMANLOG="/var/log/xrdp-sesman.log"
  9. [ -d /var/run/xrdp ] || mkdir -p /var/run/xrdp
  10. $ADDUSER --system --disabled-password --disabled-login --home /var/run/xrdp \
  11. --no-create-home --quiet --group $XRDP
  12. touch $SESMANLOG $XRDPLOG
  13. chown $XRDP:$XRDP $SESMANLOG
  14. chown $XRDP:$XRDP $XRDPLOG
  15. #DEBHELPER#