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
1 changed files with 3 additions and 3 deletions

View File

@ -792,10 +792,10 @@ do_ssh() {
}
get_vnc() {
if systemctl status vncserver-x11-serviced.service | grep -q inactive; then
echo 1
else
if systemctl status vncserver-x11-serviced.service | grep -q -w active; then
echo 0
else
echo 1
fi
}