From 9a1045beb15f3c54c9139848832fffd283888b0f Mon Sep 17 00:00:00 2001 From: bryan Date: Tue, 24 Jan 2023 13:39:50 -0500 Subject: [PATCH] Auto-increment display num for xvnc --- installJRMC | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installJRMC b/installJRMC index 764ea83..dea095b 100755 --- a/installJRMC +++ b/installJRMC @@ -1288,8 +1288,8 @@ service_jriver-xvnc() { if ! systemctl_enable_cmd "$SERVICE_NAME"; then err "vncserver failed to start on DISPLAY $NEXT_DISPLAY" err "Incrementing DISPLAY by one and retrying" - NEXT_DISPLAYNUM=$(( NEXT_DISPLAYNUM + 1 )) - NEXT_DISPLAY=":$NEXT_DISPLAYNUM" + export NEXT_DISPLAYNUM=$(( NEXT_DISPLAYNUM + 1 )) + export NEXT_DISPLAY=":$NEXT_DISPLAYNUM" service_jriver-xvnc return fi