Improve test for VNC server being enabled

This commit is contained in:
Simon Long 2020-02-06 13:26:56 +00:00
parent 7535cdd94e
commit de8477b500

View File

@ -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
} }