rdpgw/dev/docker/run.sh
2025-01-07 18:35:27 +08:00

12 lines
204 B
Bash
Executable file

#!/bin/sh
USER=rdpgw
cd /opt/rdpgw || exit 1
/opt/rdpgw/rdpgw-auth -n rdpgw -s /tmp/rdpgw-auth.sock &
# drop privileges and run the application
su -c /opt/rdpgw/rdpgw "${USER}" -- "$@" &
wait
exit $?