From 97f4af8075b56cf95c14107ecefe69fb8e0e73fc Mon Sep 17 00:00:00 2001 From: bryan Date: Fri, 24 Mar 2023 19:27:51 -0400 Subject: [PATCH] Move display increment to function --- installJRMC | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/installJRMC b/installJRMC index f16a697..c85ad36 100755 --- a/installJRMC +++ b/installJRMC @@ -1353,19 +1353,18 @@ service_jriver-xvnc() { if ! "${ENABLE[@]}" "$SERVICE_NAME"; then err "vncserver failed to start on DISPLAY $NEXT_DISPLAY" - err "Incrementing DISPLAY and retrying" # Allow to increment 10 times before breaking max=$(( DISPLAYNUM + 10 )) while [[ $NEXT_DISPLAYNUM -lt $max ]]; do + echo "Incrementing DISPLAY and retrying" service_jriver-xvnc done - return 1 else echo "Xvnc running on localhost:$PORT" openFirewall "jriver-xvnc" "$PORT/tcp" openFirewall "jriver-mediacenter" "52100-52200/tcp" "1900/udp" + return 0 fi - return 0 }