mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-30 13:51:31 +01:00
20 lines
869 B
Diff
20 lines
869 B
Diff
diff --git a/utils/novnc_proxy b/utils/novnc_proxy
|
|
index ea3ea70..6daa98e 100755
|
|
--- a/utils/novnc_proxy
|
|
+++ b/utils/novnc_proxy
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/env bash
|
|
+#!/bin/sh
|
|
|
|
# Copyright (C) 2018 The noVNC Authors
|
|
# Licensed under MPL 2.0 or any later version (see LICENSE.txt)
|
|
@@ -196,7 +196,7 @@ echo "Starting webserver and WebSockets proxy on port ${PORT}"
|
|
${WEBSOCKIFY} ${SYSLOG_ARG} ${SSLONLY} ${FILEONLY_ARG} --web ${WEB} ${CERT:+--cert ${CERT}} ${KEY:+--key ${KEY}} ${PORT} ${VNC_DEST} ${HEARTBEAT_ARG} ${IDLETIMEOUT_ARG} ${RECORD_ARG} ${TIMEOUT_ARG} ${WEBAUTH_ARG} ${AUTHPLUGIN_ARG} ${AUTHSOURCE_ARG} &
|
|
proxy_pid="$!"
|
|
sleep 1
|
|
-if [ -z "$proxy_pid" ] || ! ps -eo pid= | grep -w "$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
|