1
0
mirror of https://github.com/fcwu/docker-ubuntu-vnc-desktop synced 2026-08-05 16:12:41 +02:00
Files
docker-ubuntu-vnc-desktop/image/usr/local/lib/novnc/utils/websockify/other/wswrap
T
Doro Wu f5da5d152f refactor: code structure
1. move folders from /usr/* to /usr/local/*
2. supervisord controls everything
2018-03-13 16:42:22 +08:00

23 lines
423 B
Bash
Executable File

#!/usr/bin/env bash
usage() {
echo "Usage: $(basename $0) PORT CMDLINE"
echo
echo " PORT Port to wrap with WebSockets support"
echo " CMDLINE Command line to wrap"
exit 2
}
# Parameter defaults
mydir=$(readlink -f $(dirname ${0}))
# Process parameters
#while [ "${1}" != "${1#-}" ]; do
# param=$1; shift
#done
export WSWRAP_PORT="${1}"; shift
LD_PRELOAD=${mydir}/wswrapper.so "${@}"