diff options
author | André Bierwolf <a.b.bierwolf@gmail.com> | 2017-07-19 20:10:02 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-07-29 00:28:10 +0200 |
commit | 7004919ed9970e5b3c93f370dbba9104ca5d6ba4 (patch) | |
tree | 67509886d73845ce54fcef8084c84f9d6b48e1bf /testing/novnc/alpine-specific-launch.js.patch | |
parent | dac78d9247328891ab31ff9a64de925f7af5af30 (diff) | |
download | aports-7004919ed9970e5b3c93f370dbba9104ca5d6ba4.tar.bz2 aports-7004919ed9970e5b3c93f370dbba9104ca5d6ba4.tar.xz |
testing/novnc: new aport
The Kimchi aport wil need this as a dependency to make vnc console work.
Diffstat (limited to 'testing/novnc/alpine-specific-launch.js.patch')
-rw-r--r-- | testing/novnc/alpine-specific-launch.js.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/novnc/alpine-specific-launch.js.patch b/testing/novnc/alpine-specific-launch.js.patch new file mode 100644 index 0000000000..ca1c985188 --- /dev/null +++ b/testing/novnc/alpine-specific-launch.js.patch @@ -0,0 +1,17 @@ +--- a/utils/launch.sh ++++ b/utils/launch.sh +@@ -1,4 +1,4 @@ +-#!/usr/bin/env bash ++#!/bin/ash + + # Copyright 2016 Joel Martin + # Copyright 2016 Solly Ross +@@ -141,7 +141,7 @@ + ${WEBSOCKIFY} --web ${WEB} ${CERT:+--cert ${CERT}} ${PORT} ${VNC_DEST} & + proxy_pid="$!" + sleep 1 +-if ! ps -p ${proxy_pid} >/dev/null; then ++if [ -z "$proxy_pid" ] || ! ps -o pid= | grep -qw ${proxy_pid}; then + proxy_pid= + echo "Failed to start WebSockets proxy" + exit 1 |