From a6f617242be39d166574d5fca3dd0560d33d2322 Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Tue, 23 Jul 2024 23:06:27 +0200 Subject: [PATCH] Update INSTALL.sh --- version/0.2.3/INSTALL.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/version/0.2.3/INSTALL.sh b/version/0.2.3/INSTALL.sh index 19d689cc..1e394aef 100644 --- a/version/0.2.3/INSTALL.sh +++ b/version/0.2.3/INSTALL.sh @@ -151,7 +151,7 @@ is_package_installed() { # Get server ipv4 from ip.openpanel.co -current_ip=$(curl -s https://ip.openpanel.co || wget -qO- https://ip.openpanel.co) +current_ip=$(curl --silent --max-time 15 -4 https://ip.openpanel.co || wget -qO- https://ip.openpanel.co) # If site is not available, get the ipv4 from the hostname -I if [ -z "$current_ip" ]; then @@ -163,7 +163,7 @@ fi if [ "$CUSTOM_VERSION" = false ]; then # Fetch the latest version - version=$(curl -s https://get.openpanel.co/version) + version=$(curl --silent --max-time 10 -4 https://get.openpanel.co/version) if [[ $version =~ [0-9]+\.[0-9]+\.[0-9]+ ]]; then version=$version else