Explorar o código

Auto-increment display num for xvnc

bryan %!s(int64=2) %!d(string=hai) anos
pai
achega
e76a4c7756
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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