Install RealVNC server if it is missing when enabled.

This commit is contained in:
Simon Long 2017-02-23 18:18:18 +00:00
parent 98887bc18d
commit b867597b73

View File

@ -604,6 +604,9 @@ do_vnc() {
RET=$1
fi
if [ $RET -eq 0 ]; then
if [ ! -d /usr/share/doc/realvnc-vnc-server ] ; then
sudo apt-get install realvnc-vnc-server
fi
systemctl enable vncserver-x11-serviced.service &&
systemctl start vncserver-x11-serviced.service &&
STATUS=enabled