diff --git a/scripts/cloudron-support b/scripts/cloudron-support index 5b13e86f2..08dcefb43 100755 --- a/scripts/cloudron-support +++ b/scripts/cloudron-support @@ -125,6 +125,20 @@ function check_box() { success "box v${version} is running" } +function check_netplan() { + if ! output=$(netplan get all 2>/dev/null); then + fail "netplan is not working" + exit 1 + fi + + if [[ -z "${output}" ]]; then + fail "netplan configuration is empty" + exit 1 + fi + + success "netplan is good" +} + function owner_login() { check_host_mysql >/dev/null @@ -448,6 +462,10 @@ EOF } function troubleshoot() { + vendor=$(cat /sys/devices/virtual/dmi/id/sys_vendor) + product=$(cat /sys/devices/virtual/dmi/id/product_name) + echo "Vendor: ${vendor} Product: ${product}" + # note: disk space test has already been run globally check_node check_docker @@ -455,6 +473,7 @@ function troubleshoot() { check_nginx # requires mysql to be checked check_dashboard_site_loopback # checks website via loopback check_box + check_netplan check_dns check_dashboard_cert check_dashboard_site_domain # check website via domain name