mirror of
				https://github.com/brain-hackers/brain-config.git
				synced 2025-11-04 14:38:36 +09:00 
			
		
		
		
	Improve test for VNC server being enabled
This commit is contained in:
		@@ -792,10 +792,10 @@ do_ssh() {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
get_vnc() {
 | 
					get_vnc() {
 | 
				
			||||||
  if systemctl status vncserver-x11-serviced.service  | grep -q inactive; then
 | 
					  if systemctl status vncserver-x11-serviced.service  | grep -q -w active; then
 | 
				
			||||||
    echo 1
 | 
					 | 
				
			||||||
  else
 | 
					 | 
				
			||||||
    echo 0
 | 
					    echo 0
 | 
				
			||||||
 | 
					  else
 | 
				
			||||||
 | 
					    echo 1
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user