Explorar o código

Update photoprism-install.sh

tteckster %!s(int64=3) %!d(string=hai) anos
pai
achega
5477cc60b0
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      setup/photoprism-install.sh

+ 6 - 0
setup/photoprism-install.sh

@@ -54,6 +54,12 @@ done
 msg_ok "Set up Container OS"
 msg_ok "Network Connected: ${BL}$(hostname -I)"
 
+if : >/dev/tcp/8.8.8.8/53; then
+  msg_ok "Internet Online"
+else
+  echo -e "${BFR} ${CROSS}${RD} Internet Offline"
+fi
+
 msg_info "Updating Container OS"
 apt update &>/dev/null
 apt-get -qqy upgrade &>/dev/null