diff --git a/ct/adguard-v5.sh b/ct/adguard-v5.sh
index 6e424c6ae..432558169 100644
--- a/ct/adguard-v5.sh
+++ b/ct/adguard-v5.sh
@@ -393,7 +393,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/alpine-v5.sh b/ct/alpine-v5.sh
index d94a9c33a..a3aed6225 100644
--- a/ct/alpine-v5.sh
+++ b/ct/alpine-v5.sh
@@ -371,7 +371,7 @@ bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/c
msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} ${var_version} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/archlinux-v5.sh b/ct/archlinux-v5.sh
index a59e2a5ad..d16eb6a1e 100644
--- a/ct/archlinux-v5.sh
+++ b/ct/archlinux-v5.sh
@@ -375,7 +375,7 @@ bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/c
msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} ${var_version} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/audiobookshelf-v5.sh b/ct/audiobookshelf-v5.sh
index bac2131c7..6c63c6c23 100644
--- a/ct/audiobookshelf-v5.sh
+++ b/ct/audiobookshelf-v5.sh
@@ -371,7 +371,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/autobrr-v5.sh b/ct/autobrr-v5.sh
index 942565ac3..88c5ba1c3 100644
--- a/ct/autobrr-v5.sh
+++ b/ct/autobrr-v5.sh
@@ -385,7 +385,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/blocky-v5.sh b/ct/blocky-v5.sh
index a18faaef6..764e832bb 100644
--- a/ct/blocky-v5.sh
+++ b/ct/blocky-v5.sh
@@ -376,7 +376,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/casaos-v5.sh b/ct/casaos-v5.sh
index c40fcac51..70af50ab3 100644
--- a/ct/casaos-v5.sh
+++ b/ct/casaos-v5.sh
@@ -402,7 +402,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/changedetection-v5.sh b/ct/changedetection-v5.sh
index 632c8c9f7..9e856f710 100644
--- a/ct/changedetection-v5.sh
+++ b/ct/changedetection-v5.sh
@@ -375,7 +375,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/cronicle-v5.sh b/ct/cronicle-v5.sh
index 6d5b478c0..6e039f32b 100644
--- a/ct/cronicle-v5.sh
+++ b/ct/cronicle-v5.sh
@@ -423,7 +423,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/daemonsync-v5.sh b/ct/daemonsync-v5.sh
index f170a6886..ec7e6c7fd 100644
--- a/ct/daemonsync-v5.sh
+++ b/ct/daemonsync-v5.sh
@@ -376,7 +376,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/dashy-v5.sh b/ct/dashy-v5.sh
index 7f168215a..c284725b7 100644
--- a/ct/dashy-v5.sh
+++ b/ct/dashy-v5.sh
@@ -402,7 +402,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/debian-v5.sh b/ct/debian-v5.sh
index 8abd935b3..a167d1a9b 100644
--- a/ct/debian-v5.sh
+++ b/ct/debian-v5.sh
@@ -371,7 +371,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} ${var_version} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/deconz-v5.sh b/ct/deconz-v5.sh
index 24296217c..fbaf1bd1a 100644
--- a/ct/deconz-v5.sh
+++ b/ct/deconz-v5.sh
@@ -391,7 +391,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/deluge-v5.sh b/ct/deluge-v5.sh
index 22b90ad30..be3a784cf 100644
--- a/ct/deluge-v5.sh
+++ b/ct/deluge-v5.sh
@@ -372,7 +372,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/docker-v5.sh b/ct/docker-v5.sh
index dd21a81ec..9a55c7701 100644
--- a/ct/docker-v5.sh
+++ b/ct/docker-v5.sh
@@ -400,7 +400,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/emby-v5.sh b/ct/emby-v5.sh
index 6808f1ffc..78b3623c6 100644
--- a/ct/emby-v5.sh
+++ b/ct/emby-v5.sh
@@ -407,7 +407,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/emqx-v5.sh b/ct/emqx-v5.sh
index 3313c4364..740f13ffd 100644
--- a/ct/emqx-v5.sh
+++ b/ct/emqx-v5.sh
@@ -375,7 +375,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/esphome-v5.sh b/ct/esphome-v5.sh
index f4b4f1173..1f65a7422 100644
--- a/ct/esphome-v5.sh
+++ b/ct/esphome-v5.sh
@@ -382,7 +382,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/grafana-v5.sh b/ct/grafana-v5.sh
index 0c349d10e..0723b3841 100644
--- a/ct/grafana-v5.sh
+++ b/ct/grafana-v5.sh
@@ -376,7 +376,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/grocy-v5.sh b/ct/grocy-v5.sh
index 49a71f40f..8dd7be844 100644
--- a/ct/grocy-v5.sh
+++ b/ct/grocy-v5.sh
@@ -375,7 +375,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/heimdalldashboard-v5.sh b/ct/heimdalldashboard-v5.sh
index 0aac7e411..2e687d418 100644
--- a/ct/heimdalldashboard-v5.sh
+++ b/ct/heimdalldashboard-v5.sh
@@ -455,7 +455,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/homeassistant-core-v5.sh b/ct/homeassistant-core-v5.sh
index 8f588766b..9a5247afa 100644
--- a/ct/homeassistant-core-v5.sh
+++ b/ct/homeassistant-core-v5.sh
@@ -464,7 +464,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/homeassistant-v5.sh b/ct/homeassistant-v5.sh
index 35a5c1c79..80f7c040a 100644
--- a/ct/homeassistant-v5.sh
+++ b/ct/homeassistant-v5.sh
@@ -468,7 +468,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/homebridge-v5.sh b/ct/homebridge-v5.sh
index 8b6028ba6..f0de87a98 100644
--- a/ct/homebridge-v5.sh
+++ b/ct/homebridge-v5.sh
@@ -376,7 +376,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/homepage-v5.sh b/ct/homepage-v5.sh
index 4eee8fd55..092838f9f 100644
--- a/ct/homepage-v5.sh
+++ b/ct/homepage-v5.sh
@@ -382,7 +382,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/homer-v5.sh b/ct/homer-v5.sh
index 05700b719..d7a94ab4b 100644
--- a/ct/homer-v5.sh
+++ b/ct/homer-v5.sh
@@ -395,7 +395,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/hyperion-v5.sh b/ct/hyperion-v5.sh
index c419e8b44..b26fa92b8 100644
--- a/ct/hyperion-v5.sh
+++ b/ct/hyperion-v5.sh
@@ -391,7 +391,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/influxdb-v5.sh b/ct/influxdb-v5.sh
index 08687ce2b..7865ff373 100644
--- a/ct/influxdb-v5.sh
+++ b/ct/influxdb-v5.sh
@@ -376,7 +376,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/iobroker-v5.sh b/ct/iobroker-v5.sh
index ce7d81cb2..aec33a361 100644
--- a/ct/iobroker-v5.sh
+++ b/ct/iobroker-v5.sh
@@ -376,7 +376,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/jellyfin-v5.sh b/ct/jellyfin-v5.sh
index 682cf962a..44743db46 100644
--- a/ct/jellyfin-v5.sh
+++ b/ct/jellyfin-v5.sh
@@ -397,7 +397,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/k0s-v5.sh b/ct/k0s-v5.sh
index 907343719..566323c87 100644
--- a/ct/k0s-v5.sh
+++ b/ct/k0s-v5.sh
@@ -376,7 +376,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/kavita-v5.sh b/ct/kavita-v5.sh
index 2ffed10a9..00bde20e7 100644
--- a/ct/kavita-v5.sh
+++ b/ct/kavita-v5.sh
@@ -374,7 +374,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/keycloak-v5.sh b/ct/keycloak-v5.sh
index 149cf054f..5c6466908 100644
--- a/ct/keycloak-v5.sh
+++ b/ct/keycloak-v5.sh
@@ -377,7 +377,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/lidarr-v5.sh b/ct/lidarr-v5.sh
index 5f2bea43c..1b210bf8d 100644
--- a/ct/lidarr-v5.sh
+++ b/ct/lidarr-v5.sh
@@ -371,7 +371,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/magicmirror-v5.sh b/ct/magicmirror-v5.sh
index 748e92dda..d0b6d70cf 100644
--- a/ct/magicmirror-v5.sh
+++ b/ct/magicmirror-v5.sh
@@ -378,7 +378,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/mariadb-v5.sh b/ct/mariadb-v5.sh
index 60febdd96..a7e10c6fd 100644
--- a/ct/mariadb-v5.sh
+++ b/ct/mariadb-v5.sh
@@ -376,7 +376,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/meshcentral-v5.sh b/ct/meshcentral-v5.sh
index bc150f176..42a7a903e 100644
--- a/ct/meshcentral-v5.sh
+++ b/ct/meshcentral-v5.sh
@@ -376,7 +376,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/motioneye-v5.sh b/ct/motioneye-v5.sh
index bd05d8d3c..d6438774f 100644
--- a/ct/motioneye-v5.sh
+++ b/ct/motioneye-v5.sh
@@ -375,7 +375,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/mqtt-v5.sh b/ct/mqtt-v5.sh
index d6586750c..4a47c646d 100644
--- a/ct/mqtt-v5.sh
+++ b/ct/mqtt-v5.sh
@@ -376,7 +376,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/n8n-v5.sh b/ct/n8n-v5.sh
index 065192423..15ed0944e 100644
--- a/ct/n8n-v5.sh
+++ b/ct/n8n-v5.sh
@@ -376,7 +376,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/navidrome-v5.sh b/ct/navidrome-v5.sh
index d440e7e5c..9aca8a7da 100644
--- a/ct/navidrome-v5.sh
+++ b/ct/navidrome-v5.sh
@@ -387,7 +387,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/nextcloudpi-v5.sh b/ct/nextcloudpi-v5.sh
index da10e5254..67fbc1bea 100644
--- a/ct/nextcloudpi-v5.sh
+++ b/ct/nextcloudpi-v5.sh
@@ -376,7 +376,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/nginxproxymanager-v5.sh b/ct/nginxproxymanager-v5.sh
index 34effe2b8..0bc50e2e0 100644
--- a/ct/nginxproxymanager-v5.sh
+++ b/ct/nginxproxymanager-v5.sh
@@ -485,7 +485,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/nocodb-v5.sh b/ct/nocodb-v5.sh
index 2bbdc9baa..8dd52282b 100644
--- a/ct/nocodb-v5.sh
+++ b/ct/nocodb-v5.sh
@@ -379,7 +379,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/node-red-v5.sh b/ct/node-red-v5.sh
index 47d50c74b..23e2b5c66 100644
--- a/ct/node-red-v5.sh
+++ b/ct/node-red-v5.sh
@@ -412,7 +412,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/omada-v5.sh b/ct/omada-v5.sh
index 72768f0e4..7923b5224 100644
--- a/ct/omada-v5.sh
+++ b/ct/omada-v5.sh
@@ -374,7 +374,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/omv-v5.sh b/ct/omv-v5.sh
index 3c82ce9fa..1a2577df4 100644
--- a/ct/omv-v5.sh
+++ b/ct/omv-v5.sh
@@ -387,7 +387,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/openhab-v5.sh b/ct/openhab-v5.sh
index bd75f853a..28041e774 100644
--- a/ct/openhab-v5.sh
+++ b/ct/openhab-v5.sh
@@ -377,7 +377,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/paperless-ngx-v5.sh b/ct/paperless-ngx-v5.sh
index ac926ebba..cfd7653d6 100644
--- a/ct/paperless-ngx-v5.sh
+++ b/ct/paperless-ngx-v5.sh
@@ -444,7 +444,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/photoprism-v5.sh b/ct/photoprism-v5.sh
index 46acf01c4..0787d4908 100644
--- a/ct/photoprism-v5.sh
+++ b/ct/photoprism-v5.sh
@@ -397,7 +397,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/pihole-v5.sh b/ct/pihole-v5.sh
index dfcfd8af6..c2a793269 100644
--- a/ct/pihole-v5.sh
+++ b/ct/pihole-v5.sh
@@ -376,7 +376,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/plex-v5.sh b/ct/plex-v5.sh
index 32e66dd62..39766d021 100644
--- a/ct/plex-v5.sh
+++ b/ct/plex-v5.sh
@@ -407,7 +407,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/podman-homeassistant-v5.sh b/ct/podman-homeassistant-v5.sh
index 702a2d74c..e9301f956 100644
--- a/ct/podman-homeassistant-v5.sh
+++ b/ct/podman-homeassistant-v5.sh
@@ -446,7 +446,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/podman-v5.sh b/ct/podman-v5.sh
index e61101f87..ceaaabc67 100644
--- a/ct/podman-v5.sh
+++ b/ct/podman-v5.sh
@@ -376,7 +376,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/postgresql-v5.sh b/ct/postgresql-v5.sh
index aa1b8325f..09ded8b2b 100644
--- a/ct/postgresql-v5.sh
+++ b/ct/postgresql-v5.sh
@@ -376,7 +376,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/prometheus-v5.sh b/ct/prometheus-v5.sh
index 05122e98d..e2b60b9aa 100644
--- a/ct/prometheus-v5.sh
+++ b/ct/prometheus-v5.sh
@@ -376,7 +376,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/prowlarr-v5.sh b/ct/prowlarr-v5.sh
index 8e3bd7336..23fe82ccf 100644
--- a/ct/prowlarr-v5.sh
+++ b/ct/prowlarr-v5.sh
@@ -371,7 +371,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/radarr-v5.sh b/ct/radarr-v5.sh
index 8a9ab6fc9..cd1a1fd1d 100644
--- a/ct/radarr-v5.sh
+++ b/ct/radarr-v5.sh
@@ -371,7 +371,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/readarr-v5.sh b/ct/readarr-v5.sh
index 63cf74e14..d78e79bfe 100644
--- a/ct/readarr-v5.sh
+++ b/ct/readarr-v5.sh
@@ -371,7 +371,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/rockylinux-v5.sh b/ct/rockylinux-v5.sh
index ec0975b8b..0888b7918 100644
--- a/ct/rockylinux-v5.sh
+++ b/ct/rockylinux-v5.sh
@@ -376,7 +376,7 @@ bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/c
msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} ${var_version} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/sabnzbd-v5.sh b/ct/sabnzbd-v5.sh
index 65399620f..f94227308 100644
--- a/ct/sabnzbd-v5.sh
+++ b/ct/sabnzbd-v5.sh
@@ -371,7 +371,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/scrypted-v5.sh b/ct/scrypted-v5.sh
index 33a223112..0c2e1f0dc 100644
--- a/ct/scrypted-v5.sh
+++ b/ct/scrypted-v5.sh
@@ -391,7 +391,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/shinobi-v5.sh b/ct/shinobi-v5.sh
index 190d3df6a..8b4f1d674 100644
--- a/ct/shinobi-v5.sh
+++ b/ct/shinobi-v5.sh
@@ -386,7 +386,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/sonarr-v5.sh b/ct/sonarr-v5.sh
index 7925af27e..27ff2b07f 100644
--- a/ct/sonarr-v5.sh
+++ b/ct/sonarr-v5.sh
@@ -371,7 +371,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/syncthing-v5.sh b/ct/syncthing-v5.sh
index 9007943ab..3638e3914 100644
--- a/ct/syncthing-v5.sh
+++ b/ct/syncthing-v5.sh
@@ -377,7 +377,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/tdarr-v5.sh b/ct/tdarr-v5.sh
index 9ff7e6714..ec70c7bc2 100644
--- a/ct/tdarr-v5.sh
+++ b/ct/tdarr-v5.sh
@@ -371,7 +371,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/technitiumdns-v5.sh b/ct/technitiumdns-v5.sh
index 5e395c27c..75603db3c 100644
--- a/ct/technitiumdns-v5.sh
+++ b/ct/technitiumdns-v5.sh
@@ -438,7 +438,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/transmission-v5.sh b/ct/transmission-v5.sh
index 622406d88..db1881b8b 100644
--- a/ct/transmission-v5.sh
+++ b/ct/transmission-v5.sh
@@ -371,7 +371,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/trilium-v5.sh b/ct/trilium-v5.sh
index b71cb766e..ee1d71d6a 100644
--- a/ct/trilium-v5.sh
+++ b/ct/trilium-v5.sh
@@ -395,7 +395,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/ubuntu-v5.sh b/ct/ubuntu-v5.sh
index 7b62d7cd0..aa85b85f7 100644
--- a/ct/ubuntu-v5.sh
+++ b/ct/ubuntu-v5.sh
@@ -379,7 +379,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} ${var_version} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/umbrel-v5.sh b/ct/umbrel-v5.sh
index 803755831..a7e63c93c 100644
--- a/ct/umbrel-v5.sh
+++ b/ct/umbrel-v5.sh
@@ -400,7 +400,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/unifi-v5.sh b/ct/unifi-v5.sh
index 8a7aa4f1c..82c6edfde 100644
--- a/ct/unifi-v5.sh
+++ b/ct/unifi-v5.sh
@@ -376,7 +376,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/uptimekuma-v5.sh b/ct/uptimekuma-v5.sh
index 4e852dd09..e638b68c4 100644
--- a/ct/uptimekuma-v5.sh
+++ b/ct/uptimekuma-v5.sh
@@ -393,7 +393,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/vaultwarden-v5.sh b/ct/vaultwarden-v5.sh
index ab1d0fb63..e89d38728 100644
--- a/ct/vaultwarden-v5.sh
+++ b/ct/vaultwarden-v5.sh
@@ -444,7 +444,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/whisparr-v5.sh b/ct/whisparr-v5.sh
index 900cc60ed..4877261fd 100644
--- a/ct/whisparr-v5.sh
+++ b/ct/whisparr-v5.sh
@@ -372,7 +372,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/whoogle-v5.sh b/ct/whoogle-v5.sh
index c858ecb85..4a5e2296c 100644
--- a/ct/whoogle-v5.sh
+++ b/ct/whoogle-v5.sh
@@ -375,7 +375,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/wikijs-v5.sh b/ct/wikijs-v5.sh
index b151cd133..12aaa524d 100644
--- a/ct/wikijs-v5.sh
+++ b/ct/wikijs-v5.sh
@@ -389,7 +389,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/wireguard-v5.sh b/ct/wireguard-v5.sh
index 52ed54a52..8c773e579 100644
--- a/ct/wireguard-v5.sh
+++ b/ct/wireguard-v5.sh
@@ -431,7 +431,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/yunohost-v5.sh b/ct/yunohost-v5.sh
index 2ba9a1aa3..1a79f7ddb 100644
--- a/ct/yunohost-v5.sh
+++ b/ct/yunohost-v5.sh
@@ -371,7 +371,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/zigbee2mqtt-v5.sh b/ct/zigbee2mqtt-v5.sh
index dbde69375..4e8055dc5 100644
--- a/ct/zigbee2mqtt-v5.sh
+++ b/ct/zigbee2mqtt-v5.sh
@@ -436,7 +436,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/ct/zwave-js-ui-v5.sh b/ct/zwave-js-ui-v5.sh
index 75152ccab..5beec0f9e 100644
--- a/ct/zwave-js-ui-v5.sh
+++ b/ct/zwave-js-ui-v5.sh
@@ -403,7 +403,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
-IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
+IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
"
diff --git a/install/adguard-v5-install.sh b/install/adguard-v5-install.sh
index 927412d41..309588d0b 100644
--- a/install/adguard-v5-install.sh
+++ b/install/adguard-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/audiobookshelf-v5-install.sh b/install/audiobookshelf-v5-install.sh
index c5ea736ae..140b42397 100644
--- a/install/audiobookshelf-v5-install.sh
+++ b/install/audiobookshelf-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/autobrr-v5-install.sh b/install/autobrr-v5-install.sh
index 61b2eb455..2aa9ed6a7 100644
--- a/install/autobrr-v5-install.sh
+++ b/install/autobrr-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/blocky-v5-install.sh b/install/blocky-v5-install.sh
index 51f1e601c..d8c20d98a 100644
--- a/install/blocky-v5-install.sh
+++ b/install/blocky-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/casaos-v5-install.sh b/install/casaos-v5-install.sh
index 4825c26f6..13ca95966 100644
--- a/install/casaos-v5-install.sh
+++ b/install/casaos-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/changedetection-v5-install.sh b/install/changedetection-v5-install.sh
index fbe2e18d0..543566083 100644
--- a/install/changedetection-v5-install.sh
+++ b/install/changedetection-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/cronicle-v5-install.sh b/install/cronicle-v5-install.sh
index fb845084d..fe04107d4 100644
--- a/install/cronicle-v5-install.sh
+++ b/install/cronicle-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/daemonsync-v5-install.sh b/install/daemonsync-v5-install.sh
index ea43bc987..2bc5536a5 100644
--- a/install/daemonsync-v5-install.sh
+++ b/install/daemonsync-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/dashy-v5-install.sh b/install/dashy-v5-install.sh
index e876c39fd..5d5dd79c7 100644
--- a/install/dashy-v5-install.sh
+++ b/install/dashy-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/debian-v5-install.sh b/install/debian-v5-install.sh
index d15f4d0cb..0a5e83a50 100644
--- a/install/debian-v5-install.sh
+++ b/install/debian-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/deconz-v5-install.sh b/install/deconz-v5-install.sh
index 3e9973df2..189d4dede 100644
--- a/install/deconz-v5-install.sh
+++ b/install/deconz-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/deluge-v5-install.sh b/install/deluge-v5-install.sh
index 1dc55656c..ab0265340 100644
--- a/install/deluge-v5-install.sh
+++ b/install/deluge-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/docker-v5-install.sh b/install/docker-v5-install.sh
index 5eed93090..a50a80e92 100644
--- a/install/docker-v5-install.sh
+++ b/install/docker-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/emby-v5-install.sh b/install/emby-v5-install.sh
index c23deef04..753c541df 100644
--- a/install/emby-v5-install.sh
+++ b/install/emby-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/emqx-v5-install.sh b/install/emqx-v5-install.sh
index 5a4cab700..07e6b6306 100644
--- a/install/emqx-v5-install.sh
+++ b/install/emqx-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/esphome-v5-install.sh b/install/esphome-v5-install.sh
index 003663886..42e810b05 100644
--- a/install/esphome-v5-install.sh
+++ b/install/esphome-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/grafana-v5-install.sh b/install/grafana-v5-install.sh
index 3827d1b04..6e4b218e4 100644
--- a/install/grafana-v5-install.sh
+++ b/install/grafana-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/grocy-v5-install.sh b/install/grocy-v5-install.sh
index 344ea7ce4..3210baa2d 100644
--- a/install/grocy-v5-install.sh
+++ b/install/grocy-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/heimdalldashboard-v5-install.sh b/install/heimdalldashboard-v5-install.sh
index 351df94b6..a920d9ead 100644
--- a/install/heimdalldashboard-v5-install.sh
+++ b/install/heimdalldashboard-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/homeassistant-core-v5-install.sh b/install/homeassistant-core-v5-install.sh
index 14c6d0e6b..c51a67f65 100644
--- a/install/homeassistant-core-v5-install.sh
+++ b/install/homeassistant-core-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/homeassistant-v5-install.sh b/install/homeassistant-v5-install.sh
index e1213501b..3e6d60231 100644
--- a/install/homeassistant-v5-install.sh
+++ b/install/homeassistant-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/homebridge-v5-install.sh b/install/homebridge-v5-install.sh
index a966c54b9..f1a75d970 100644
--- a/install/homebridge-v5-install.sh
+++ b/install/homebridge-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/homepage-v5-install.sh b/install/homepage-v5-install.sh
index 2cd61caa5..9c093dfe9 100644
--- a/install/homepage-v5-install.sh
+++ b/install/homepage-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/homer-v5-install.sh b/install/homer-v5-install.sh
index 5c0358ce0..f9012735a 100644
--- a/install/homer-v5-install.sh
+++ b/install/homer-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/hyperion-v5-install.sh b/install/hyperion-v5-install.sh
index 589297a03..017efb429 100644
--- a/install/hyperion-v5-install.sh
+++ b/install/hyperion-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/influxdb-v5-install.sh b/install/influxdb-v5-install.sh
index f623b20d1..c7db11a5d 100644
--- a/install/influxdb-v5-install.sh
+++ b/install/influxdb-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/iobroker-v5-install.sh b/install/iobroker-v5-install.sh
index 0c9499cf1..f17f3978c 100644
--- a/install/iobroker-v5-install.sh
+++ b/install/iobroker-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/jellyfin-v5-install.sh b/install/jellyfin-v5-install.sh
index e8f0f73b1..56fc9c6d8 100644
--- a/install/jellyfin-v5-install.sh
+++ b/install/jellyfin-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/k0s-v5-install.sh b/install/k0s-v5-install.sh
index c9adae82b..a79064880 100644
--- a/install/k0s-v5-install.sh
+++ b/install/k0s-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/kavita-v5-install.sh b/install/kavita-v5-install.sh
index 0b5b6711e..41ebc7550 100644
--- a/install/kavita-v5-install.sh
+++ b/install/kavita-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/keycloak-v5-install.sh b/install/keycloak-v5-install.sh
index 194071872..b05cc0cfb 100644
--- a/install/keycloak-v5-install.sh
+++ b/install/keycloak-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/lidarr-v5-install.sh b/install/lidarr-v5-install.sh
index 4eaaa2e8c..00bf3b609 100644
--- a/install/lidarr-v5-install.sh
+++ b/install/lidarr-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/magicmirror-v5-install.sh b/install/magicmirror-v5-install.sh
index fa57fd6ec..8aafd3e5e 100644
--- a/install/magicmirror-v5-install.sh
+++ b/install/magicmirror-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -55,7 +54,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -65,7 +64,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/mariadb-v5-install.sh b/install/mariadb-v5-install.sh
index 37829a433..5cefe5465 100644
--- a/install/mariadb-v5-install.sh
+++ b/install/mariadb-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/meshcentral-v5-install.sh b/install/meshcentral-v5-install.sh
index d172d37e2..31031d103 100644
--- a/install/meshcentral-v5-install.sh
+++ b/install/meshcentral-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/motioneye-v5-install.sh b/install/motioneye-v5-install.sh
index f0d91b0e7..c573d84d8 100644
--- a/install/motioneye-v5-install.sh
+++ b/install/motioneye-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/mqtt-v5-install.sh b/install/mqtt-v5-install.sh
index 4b2c70471..a7401efe5 100644
--- a/install/mqtt-v5-install.sh
+++ b/install/mqtt-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/n8n-v5-install.sh b/install/n8n-v5-install.sh
index e11671e6c..9c421c555 100644
--- a/install/n8n-v5-install.sh
+++ b/install/n8n-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/navidrome-v5-install.sh b/install/navidrome-v5-install.sh
index 5f3804f0d..c23cfa96e 100644
--- a/install/navidrome-v5-install.sh
+++ b/install/navidrome-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/nextcloudpi-v5-install.sh b/install/nextcloudpi-v5-install.sh
index 0d01c01e5..f702367f1 100644
--- a/install/nextcloudpi-v5-install.sh
+++ b/install/nextcloudpi-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/nginxproxymanager-v5-install.sh b/install/nginxproxymanager-v5-install.sh
index d585a6602..193aa3f7e 100644
--- a/install/nginxproxymanager-v5-install.sh
+++ b/install/nginxproxymanager-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/nocodb-v5-install.sh b/install/nocodb-v5-install.sh
index f56b68c50..e09afe29e 100644
--- a/install/nocodb-v5-install.sh
+++ b/install/nocodb-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/node-red-v5-install.sh b/install/node-red-v5-install.sh
index 026861635..6ed1c7293 100644
--- a/install/node-red-v5-install.sh
+++ b/install/node-red-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/omada-v5-install.sh b/install/omada-v5-install.sh
index 26428b02b..2f007ebf7 100644
--- a/install/omada-v5-install.sh
+++ b/install/omada-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/omv-v5-install.sh b/install/omv-v5-install.sh
index d5b06587f..dc355c56f 100644
--- a/install/omv-v5-install.sh
+++ b/install/omv-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
export DEBIAN_FRONTEND=noninteractive
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/openhab-v5-install.sh b/install/openhab-v5-install.sh
index b57f9edf6..894813313 100644
--- a/install/openhab-v5-install.sh
+++ b/install/openhab-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/paperless-ngx-v5-install.sh b/install/paperless-ngx-v5-install.sh
index bdf8ba88a..cbc85eea7 100644
--- a/install/paperless-ngx-v5-install.sh
+++ b/install/paperless-ngx-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -55,7 +54,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -65,7 +64,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/photoprism-v5-install.sh b/install/photoprism-v5-install.sh
index 66b62c0bf..a18106b95 100644
--- a/install/photoprism-v5-install.sh
+++ b/install/photoprism-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
AVX=$(grep -o -m1 'avx[^ ]*' /proc/cpuinfo)
@@ -59,7 +58,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -69,7 +68,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/pihole-v5-install.sh b/install/pihole-v5-install.sh
index 848d9cb1e..2ef307c80 100644
--- a/install/pihole-v5-install.sh
+++ b/install/pihole-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
export DEBIAN_FRONTEND=noninteractive
@@ -59,7 +58,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -69,7 +68,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/plex-v5-install.sh b/install/plex-v5-install.sh
index bbd76a968..1afcc4019 100644
--- a/install/plex-v5-install.sh
+++ b/install/plex-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/podman-homeassistant-v5-install.sh b/install/podman-homeassistant-v5-install.sh
index 5a93e042b..18828d37d 100644
--- a/install/podman-homeassistant-v5-install.sh
+++ b/install/podman-homeassistant-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/podman-v5-install.sh b/install/podman-v5-install.sh
index 7e75b6f92..c8e375a0d 100644
--- a/install/podman-v5-install.sh
+++ b/install/podman-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/postgresql-v5-install.sh b/install/postgresql-v5-install.sh
index 8877f2e42..083570474 100644
--- a/install/postgresql-v5-install.sh
+++ b/install/postgresql-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/prometheus-v5-install.sh b/install/prometheus-v5-install.sh
index 357a2229e..33a090bba 100644
--- a/install/prometheus-v5-install.sh
+++ b/install/prometheus-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/prowlarr-v5-install.sh b/install/prowlarr-v5-install.sh
index 7ca5434bb..6157280e1 100644
--- a/install/prowlarr-v5-install.sh
+++ b/install/prowlarr-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/radarr-v5-install.sh b/install/radarr-v5-install.sh
index 85a47c29b..32c540e03 100644
--- a/install/radarr-v5-install.sh
+++ b/install/radarr-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/readarr-v5-install.sh b/install/readarr-v5-install.sh
index 6554d3779..ae2b5416f 100644
--- a/install/readarr-v5-install.sh
+++ b/install/readarr-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/sabnzbd-v5-install.sh b/install/sabnzbd-v5-install.sh
index ccf749093..3e700eb31 100644
--- a/install/sabnzbd-v5-install.sh
+++ b/install/sabnzbd-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/scrypted-v5-install.sh b/install/scrypted-v5-install.sh
index fd84cc49a..d4753e214 100644
--- a/install/scrypted-v5-install.sh
+++ b/install/scrypted-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/shinobi-v5-install.sh b/install/shinobi-v5-install.sh
index 76d2b9b0c..8738ea13c 100644
--- a/install/shinobi-v5-install.sh
+++ b/install/shinobi-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/sonarr-v5-install.sh b/install/sonarr-v5-install.sh
index 96dca52dc..2152a929b 100644
--- a/install/sonarr-v5-install.sh
+++ b/install/sonarr-v5-install.sh
@@ -1,7 +1,6 @@
#!/usr/bin/env bash
export DEBIAN_FRONTEND=noninteractive
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/syncthing-v5-install.sh b/install/syncthing-v5-install.sh
index 8e6812b7a..4fb4f35b8 100644
--- a/install/syncthing-v5-install.sh
+++ b/install/syncthing-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/tdarr-v5-install.sh b/install/tdarr-v5-install.sh
index e13a2f942..0604dd726 100644
--- a/install/tdarr-v5-install.sh
+++ b/install/tdarr-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/technitiumdns-v5-install.sh b/install/technitiumdns-v5-install.sh
index 0ad64b31a..cb536f2ee 100644
--- a/install/technitiumdns-v5-install.sh
+++ b/install/technitiumdns-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/transmission-v5-install.sh b/install/transmission-v5-install.sh
index f56dff915..44f1c40a0 100644
--- a/install/transmission-v5-install.sh
+++ b/install/transmission-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/trilium-v5-install.sh b/install/trilium-v5-install.sh
index e93f13f10..936eac73c 100644
--- a/install/trilium-v5-install.sh
+++ b/install/trilium-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/ubuntu-v5-install.sh b/install/ubuntu-v5-install.sh
index 539076f01..051e65547 100644
--- a/install/ubuntu-v5-install.sh
+++ b/install/ubuntu-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/umbrel-v5-install.sh b/install/umbrel-v5-install.sh
index ee5469cfe..e07e745a6 100644
--- a/install/umbrel-v5-install.sh
+++ b/install/umbrel-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/unifi-v5-install.sh b/install/unifi-v5-install.sh
index 3f105891c..fa1c90ead 100644
--- a/install/unifi-v5-install.sh
+++ b/install/unifi-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
#https://community.ui.com/questions/UniFi-Installation-Scripts-or-UniFi-Easy-Update-Script-or-UniFi-Lets-Encrypt-or-UniFi-Easy-Encrypt-/ccbc7530-dd61-40a7-82ec-22b17f027776
@@ -59,7 +58,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -69,7 +68,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/uptimekuma-v5-install.sh b/install/uptimekuma-v5-install.sh
index 92f6b6ba0..d53bacc8b 100644
--- a/install/uptimekuma-v5-install.sh
+++ b/install/uptimekuma-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/vaultwarden-v5-install.sh b/install/vaultwarden-v5-install.sh
index ee7181ca0..1421be406 100644
--- a/install/vaultwarden-v5-install.sh
+++ b/install/vaultwarden-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/whisparr-v5-install.sh b/install/whisparr-v5-install.sh
index ac18b9b6b..c07df6255 100644
--- a/install/whisparr-v5-install.sh
+++ b/install/whisparr-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/whoogle-v5-install.sh b/install/whoogle-v5-install.sh
index a4db211d1..2d3e996df 100644
--- a/install/whoogle-v5-install.sh
+++ b/install/whoogle-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/wikijs-v5-install.sh b/install/wikijs-v5-install.sh
index 916a57b37..36f481106 100644
--- a/install/wikijs-v5-install.sh
+++ b/install/wikijs-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/wireguard-v5-install.sh b/install/wireguard-v5-install.sh
index 9c94cdc4f..955981518 100644
--- a/install/wireguard-v5-install.sh
+++ b/install/wireguard-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/yunohost-v5-install.sh b/install/yunohost-v5-install.sh
index 803a1fa01..912136e72 100644
--- a/install/yunohost-v5-install.sh
+++ b/install/yunohost-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -57,7 +56,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -67,7 +66,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/zigbee2mqtt-v5-install.sh b/install/zigbee2mqtt-v5-install.sh
index 9161fbb4a..c24062c90 100644
--- a/install/zigbee2mqtt-v5-install.sh
+++ b/install/zigbee2mqtt-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e
diff --git a/install/zwave-js-ui-v5-install.sh b/install/zwave-js-ui-v5-install.sh
index eb90430d1..02e5b65e1 100644
--- a/install/zwave-js-ui-v5-install.sh
+++ b/install/zwave-js-ui-v5-install.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-if [ "$VERBOSE" == "yes" ]; then set -x; STD=""; fi
-if [ "$VERBOSE" != "yes" ]; then STD="silent"; fi
+if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
YW=$(echo "\033[33m")
@@ -58,7 +57,7 @@ msg_ok "Set up Container OS"
msg_ok "Network Connected: ${BL}$(hostname -I)"
set +e
-if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
+if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
@@ -68,7 +67,7 @@ if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
exit 1
fi
fi
-RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
+RESOLVEDIP=$(getent hosts github.com | awk '{ print $1 }')
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to ${BL}$RESOLVEDIP${CL}"; fi
set -e