Print logs on failure

pull/329/head
default 9 months ago
parent 52ba74c3e6
commit d619e6570b
No known key found for this signature in database

@ -186,6 +186,7 @@ vncserver -select-de "${DESKTOP_ENVIRONMENT}" -disableBasicAuth > /tmp/kasmvncse
sleep 5 sleep 5
if ! pgrep -f vncserver > /dev/null; then if ! pgrep -f vncserver > /dev/null; then
echo "ERROR: Failed to start KasmVNC server. Check logs at /tmp/kasmvncserver.log" echo "ERROR: Failed to start KasmVNC server. Check logs at /tmp/kasmvncserver.log"
grep -v '^[[:space:]]*$' /tmp/kasmvncserver.log
exit 1 exit 1
fi fi
printf "🚀 KasmVNC server started successfully!\n" printf "🚀 KasmVNC server started successfully!\n"

Loading…
Cancel
Save