1
0
mirror of https://github.com/fcwu/docker-ubuntu-vnc-desktop synced 2026-08-06 08:12:40 +02:00

refactor: code structure

1. move folders from /usr/* to /usr/local/*
2. supervisord controls everything
This commit is contained in:
Doro Wu
2018-03-13 16:42:22 +08:00
parent 9e608482c8
commit f5da5d152f
232 changed files with 41 additions and 45 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
usage() {
echo "Usage: $(basename $0) OLD_PORT NEW_PORT COMMAND_LINE"
echo
echo "Launch COMMAND_LINE, but intercept system calls to bind"
echo "to OLD_PORT and instead bind them to localhost:NEW_PORT"
exit 2
}
# Parameter defaults
mydir=$(readlink -f $(dirname ${0}))
export REBIND_PORT_OLD="${1}"; shift
export REBIND_PORT_NEW="${1}"; shift
LD_PRELOAD=${mydir}/rebind.so "${@}"