mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2025-08-16 13:43:46 +02:00
12 lines
204 B
Bash
Executable file
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 $?
|