1
0
mirror of https://github.com/tteck/Proxmox.git synced 2024-12-29 11:06:17 +02:00

Merge pull request #195 from tteck/spider

Set Spider to https thanks @Lasons
This commit is contained in:
tteckster 2022-04-25 14:14:28 -04:00 committed by GitHub
commit 7eb773a127
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
33 changed files with 49 additions and 33 deletions

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -11,6 +11,22 @@ CM="${GN}✓${CL}"
CROSS="${RD}${CL}"
BFR="\\r\\033[K"
HOLD="-"
set -o errexit
set -o errtrace
set -o nounset
set -o pipefail
shopt -s expand_aliases
alias die='EXIT=$? LINE=$LINENO error_exit'
trap die ERR
function error_exit() {
trap - ERR
local reason="Unknown failure occured."
local msg="${1:-$reason}"
local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE"
echo -e "$flag $msg" 1>&2
exit $EXIT
}
function msg_info() {
local msg="$1"
@ -38,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -55,7 +55,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else

View File

@ -54,7 +54,7 @@ done
msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
wget -q --tries=10 --timeout=5 --spider http://google.com
wget -q --tries=10 --timeout=5 --spider https://google.com
if [[ $? -eq 0 ]]; then
msg_ok "Internet Online"
else