diff --git a/ct/adguard-v5.sh b/ct/adguard-v5.sh index 6e424c6ae6..4325581697 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 d94a9c33a6..a3aed6225d 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 a59e2a5ad8..d16eb6a1eb 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 bac2131c71..6c63c6c23e 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 942565ac32..88c5ba1c32 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 a18faaef67..764e832bb1 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 c40fcac51f..70af50ab34 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 632c8c9f7f..9e856f710d 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 6d5b478c0f..6e039f32be 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 f170a68866..ec7e6c7fd6 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 7f168215a4..c284725b79 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 8abd935b37..a167d1a9bd 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 24296217ca..fbaf1bd1a2 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 22b90ad30f..be3a784cf3 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 dd21a81ec6..9a55c77019 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 6808f1ffc9..78b3623c6c 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 3313c43641..740f13ffd8 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 f4b4f1173d..1f65a7422e 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 0c349d10ed..0723b38415 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 49a71f40f2..8dd7be8444 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 0aac7e411a..2e687d4186 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 8f588766b9..9a5247afad 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 35a5c1c794..80f7c040ab 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 8b6028ba6f..f0de87a98c 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 4eee8fd553..092838f9fd 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 05700b719a..d7a94ab4bb 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 c419e8b449..b26fa92b8b 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 08687ce2b3..7865ff373b 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 ce7d81cb2d..aec33a3615 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 682cf962a7..44743db46b 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 9073437196..566323c877 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 2ffed10a97..00bde20e79 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 149cf054f6..5c64669081 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 5f2bea43cb..1b210bf8da 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 748e92dda8..d0b6d70cff 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 60febdd965..a7e10c6fd5 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 bc150f1761..42a7a903e3 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 bd05d8d3cc..d6438774fb 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 d6586750c0..4a47c646dc 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 0651924235..15ed0944e4 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 d440e7e5c4..9aca8a7daa 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 da10e52548..67fbc1bea1 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 34effe2b8b..0bc50e2e0d 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 2bbdc9baaf..8dd52282bf 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 47d50c74b4..23e2b5c662 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 72768f0e4c..7923b52249 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 3c82ce9fab..1a2577df4e 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 bd75f853aa..28041e7741 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 ac926ebbac..cfd7653d66 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 46acf01c4a..0787d49084 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 dfcfd8af6d..c2a793269c 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 32e66dd626..39766d021e 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 702a2d74ca..e9301f956a 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 e61101f871..ceaaabc675 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 aa1b8325fc..09ded8b2be 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 05122e98d9..e2b60b9aa5 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 8e3bd7336f..23fe82ccf2 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 8a9ab6fc9e..cd1a1fd1d5 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 63cf74e140..d78e79bfe0 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 ec0975b8be..0888b7918a 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 65399620fc..f942273087 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 33a2231125..0c2e1f0dc2 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 190d3df6a6..8b4f1d6746 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 7925af27e2..27ff2b07fa 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 9007943ab7..3638e39141 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 9ff7e67146..ec70c7bc23 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 5e395c27c5..75603db3c7 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 622406d881..db1881b8b2 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 b71cb766ef..ee1d71d6a4 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 7b62d7cd03..aa85b85f7b 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 8037558319..a7e63c93c8 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 8a7aa4f1cc..82c6edfdef 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 4e852dd099..e638b68c47 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 ab1d0fb632..e89d387289 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 900cc60ed7..4877261fda 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 c858ecb852..4a5e2296c4 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 b151cd1331..12aaa524db 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 52ed54a523..8c773e5792 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 2ba9a1aa3c..1a79f7ddb0 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 dbde69375a..4e8055dc5b 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 75152ccab4..5beec0f9e7 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 927412d413..309588d0bf 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 c5ea736aea..140b42397c 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 61b2eb455e..2aa9ed6a7d 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 51f1e601cb..d8c20d98a8 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 4825c26f6f..13ca959660 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 fbe2e18d0d..5435660830 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 fb845084d1..fe04107d43 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 ea43bc9877..2bc5536a5b 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 e876c39fd3..5d5dd79c7c 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 d15f4d0cba..0a5e83a50f 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 3e9973df20..189d4dede5 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 1dc55656cf..ab02653403 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 5eed93090c..a50a80e924 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 c23deef044..753c541df6 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 5a4cab7008..07e6b63065 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 0036638862..42e810b055 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 3827d1b042..6e4b218e4b 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 344ea7ce46..3210baa2df 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 351df94b6c..a920d9eadd 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 14c6d0e6b5..c51a67f656 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 e1213501be..3e6d602314 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 a966c54b90..f1a75d970a 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 2cd61caa52..9c093dfe99 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 5c0358ce01..f9012735a3 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 589297a03c..017efb4290 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 f623b20d11..c7db11a5da 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 0c9499cf1a..f17f3978cd 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 e8f0f73b16..56fc9c6d81 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 c9adae82bc..a790648802 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 0b5b6711e1..41ebc7550d 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 1940718723..b05cc0cfb7 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 4eaaa2e8cd..00bf3b609d 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 fa57fd6ece..8aafd3e5eb 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 37829a4333..5cefe54657 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 d172d37e29..31031d103c 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 f0d91b0e71..c573d84d80 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 4b2c70471a..a7401efe5c 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 e11671e6c3..9c421c555c 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 5f3804f0d9..c23cfa96e5 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 0d01c01e52..f702367f1c 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 d585a6602e..193aa3f7e1 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 f56b68c50a..e09afe29e3 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 026861635c..6ed1c72937 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 26428b02b1..2f007ebf7d 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 d5b06587fd..dc355c56fe 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 b57f9edf66..8948133131 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 bdf8ba88a4..cbc85eea72 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 66b62c0bfa..a18106b956 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 848d9cb1e7..2ef307c80c 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 bbd76a968a..1afcc40195 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 5a93e042b4..18828d37de 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 7e75b6f924..c8e375a0d4 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 8877f2e424..0835704745 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 357a2229e0..33a090bbaa 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 7ca5434bb8..6157280e16 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 85a47c29ba..32c540e03c 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 6554d37795..ae2b5416fa 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 ccf7490938..3e700eb31c 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 fd84cc49aa..d4753e214d 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 76d2b9b0c0..8738ea13c6 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 96dca52dc8..2152a929b2 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 8e6812b7ab..4fb4f35b8f 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 e13a2f9427..0604dd7260 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 0ad64b31ab..cb536f2eea 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 f56dff9152..44f1c40a0d 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 e93f13f102..936eac73c3 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 539076f01b..051e65547f 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 ee5469cfea..e07e745a61 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 3f105891c7..fa1c90ead8 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 92f6b6ba0f..d53bacc8b9 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 ee7181ca07..1421be406c 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 ac18b9b6bd..c07df6255d 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 a4db211d1b..2d3e996dfa 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 916a57b37b..36f4811065 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 9c94cdc4f0..955981518c 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 803a1fa016..912136e72c 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 9161fbb4a5..c24062c902 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 eb90430d16..02e5b65e1b 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