diff --git a/bin/headlessvnc b/bin/headlessvnc index a46bcc1..5cd1514 100755 --- a/bin/headlessvnc +++ b/bin/headlessvnc @@ -70,7 +70,7 @@ public_start() { public_status() { if is_running; then echobf "The VNC server is running." - tail "./$(hostname):1.log" | sed 's/^/\t/g' + tail "./$(cat /proc/sys/kernel/hostname):1.log" | sed 's/^/\t/g' else echobf "The VNC server is not running." fi