mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-12-22 20:20:06 +09:00
Improve test for VNC server being enabled
This commit is contained in:
parent
7535cdd94e
commit
de8477b500
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user