Remote-Mouse/src/socket_run.sh

17 lines
470 B
Bash
Executable File

#!/bin/bash
# set -o xtrace ## To debug scripts
# set -o errexit ## To exit on error
# set -o errunset ## To exit if a variable is referenced but not set
function main() {
SCRIPTPATH="$( cd "$(dirname "")" >/dev/null 2>&1 ; pwd -P )"
cd "${SCRIPTPATH}"
echo "Working Dir: " $(pwd)
mkdir /tmp/apps
/home/abaddon/Portable_Apps/py-venvs/remotemouse-venv/bin/gunicorn \
--bind unix:/tmp/apps/remoteconn.sock wsgi:app
}
main $@;