Browse Source

Auto-increment display num for xvnc

bryan 2 years ago
parent
commit
e76a4c7756
1 changed files with 2 additions and 1 deletions
  1. 2 1
      installJRMC

+ 2 - 1
installJRMC

@@ -1288,7 +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_DISPLAY=":$(( NEXT_DISPLAYNUM + 1 ))" 
+        NEXT_DISPLAYNUM=$(( NEXT_DISPLAYNUM + 1 ))
+        NEXT_DISPLAY=":$NEXT_DISPLAYNUM" 
         service_jriver-xvnc
         return
     fi