diff --git a/ct/hermesagent.sh b/ct/hermesagent.sh index c42f2924c..59047cac4 100644 --- a/ct/hermesagent.sh +++ b/ct/hermesagent.sh @@ -31,16 +31,7 @@ function update_script() { exit fi - msg_warn "WARNING: This script will run an external installer from a third-party source (https://hermes-agent.nousresearch.com/)." - msg_warn "The following code is NOT maintained or audited by our repository." - msg_warn "If you have any doubts or concerns, please review the installer code before proceeding:" - msg_custom "${TAB3}${GATEWAY}${BGN}${CL}" "\e[1;34m" "→ hermes update (https://hermes-agent.nousresearch.com/)" - echo - read -r -p "${TAB3}Do you want to continue? [y/N]: " CONFIRM - if [[ ! "$CONFIRM" =~ ^([yY][eE][sS]|[yY])$ ]]; then - msg_error "Aborted by user. No changes have been made." - exit 10 - fi + confirm_external_installer "https://hermes-agent.nousresearch.com/" "hermes update (https://hermes-agent.nousresearch.com/)" msg_info "Stopping Services" systemctl stop hermes-dashboard diff --git a/ct/kasm.sh b/ct/kasm.sh index e53d6a0ee..35e4b35c1 100644 --- a/ct/kasm.sh +++ b/ct/kasm.sh @@ -62,16 +62,7 @@ function update_script() { msg_info "Updating Kasm" cd /tmp - msg_warn "WARNING: This script will run an external installer from a third-party source (https://www.kasmweb.com/)." - msg_warn "The following code is NOT maintained or audited by our repository." - msg_warn "If you have any doubts or concerns, please review the installer code before proceeding:" - msg_custom "${TAB3}${GATEWAY}${BGN}${CL}" "\e[1;34m" "→ upgrade.sh inside tar.gz $KASM_URL" - echo - read -r -p "${TAB3}Do you want to continue? [y/N]: " CONFIRM - if [[ ! "$CONFIRM" =~ ^([yY][eE][sS]|[yY])$ ]]; then - msg_error "Aborted by user. No changes have been made." - exit 10 - fi + confirm_external_installer "https://www.kasmweb.com/" "upgrade.sh inside tar.gz $KASM_URL" curl_download "/tmp/kasm_release_${KASM_VERSION}.tar.gz" "$KASM_URL" tar -xf "kasm_release_${KASM_VERSION}.tar.gz" chmod +x /tmp/kasm_release/install.sh diff --git a/install/bunkerweb-install.sh b/install/bunkerweb-install.sh index 351bc8a49..df63a5023 100644 --- a/install/bunkerweb-install.sh +++ b/install/bunkerweb-install.sh @@ -20,16 +20,7 @@ $STD apt install -y \ msg_ok "Installed Dependencies" RELEASE=$(get_latest_github_release "bunkerity/bunkerweb") -msg_warn "WARNING: This script will run an external installer from a third-party source (install-bunkerweb.sh)." -msg_warn "The following code is NOT maintained or audited by our repository." -msg_warn "If you have any doubts or concerns, please review the installer code before proceeding:" -msg_custom "${TAB3}${GATEWAY}${BGN}${CL}" "\e[1;34m" "→ https://github.com/bunkerity/bunkerweb/raw/v${RELEASE}/misc/install-bunkerweb.sh" -echo -read -r -p "${TAB3}Do you want to continue? [y/N]: " CONFIRM -if [[ ! "$CONFIRM" =~ ^([yY][eE][sS]|[yY])$ ]]; then - msg_error "Aborted by user. No changes have been made." - exit 10 -fi +confirm_external_installer "install-bunkerweb.sh" "https://github.com/bunkerity/bunkerweb/raw/v${RELEASE}/misc/install-bunkerweb.sh" msg_info "Installing BunkerWeb (Patience)" curl -fsSL -o install-bunkerweb.sh "https://github.com/bunkerity/bunkerweb/raw/v${RELEASE}/misc/install-bunkerweb.sh" chmod +x install-bunkerweb.sh diff --git a/install/casaos-install.sh b/install/casaos-install.sh index 18cd629d2..37b29a04a 100644 --- a/install/casaos-install.sh +++ b/install/casaos-install.sh @@ -13,16 +13,7 @@ setting_up_container network_check update_os -msg_warn "WARNING: This script will run an external installer from a third-party source (https://casaos.zimaspace.com/)." -msg_warn "The following code is NOT maintained or audited by our repository." -msg_warn "If you have any doubts or concerns, please review the installer code before proceeding:" -msg_custom "${TAB3}${GATEWAY}${BGN}${CL}" "\e[1;34m" "→ https://get.casaos.io/" -echo -read -r -p "${TAB3}Do you want to continue? [y/N]: " CONFIRM -if [[ ! "$CONFIRM" =~ ^([yY][eE][sS]|[yY])$ ]]; then - msg_error "Aborted by user. No changes have been made." - exit 10 -fi +confirm_external_installer "https://casaos.zimaspace.com/" "https://get.casaos.io/" msg_info "Installing CasaOS (Patience)" DOCKER_CONFIG_PATH='/etc/docker/daemon.json' mkdir -p $(dirname $DOCKER_CONFIG_PATH) diff --git a/install/channels-install.sh b/install/channels-install.sh index ceaaac426..6834ffd11 100644 --- a/install/channels-install.sh +++ b/install/channels-install.sh @@ -19,16 +19,7 @@ $STD apt install -y \ xvfb msg_ok "Installed Dependencies" -msg_warn "WARNING: This script will run an external installer from a third-party source (https://getchannels.com)." -msg_warn "The following code is NOT maintained or audited by our repository." -msg_warn "If you have any doubts or concerns, please review the installer code before proceeding:" -msg_custom "${TAB3}${GATEWAY}${BGN}${CL}" "\e[1;34m" "→ https://getchannels.com/dvr/setup.sh" -echo -read -r -p "${TAB3}Do you want to continue? [y/N]: " CONFIRM -if [[ ! "$CONFIRM" =~ ^([yY][eE][sS]|[yY])$ ]]; then - msg_error "Aborted by user. No changes have been made." - exit 10 -fi +confirm_external_installer "https://getchannels.com" "https://getchannels.com/dvr/setup.sh" setup_hwaccel diff --git a/install/hermesagent-install.sh b/install/hermesagent-install.sh index 93cf54cc7..5cacbe08b 100644 --- a/install/hermesagent-install.sh +++ b/install/hermesagent-install.sh @@ -33,16 +33,7 @@ NODE_OPTIONS=${NODE_OPTIONS} EOF msg_ok "Configured Service Environment" -msg_warn "WARNING: This script will run an external installer from a third-party source (https://hermes-agent.nousresearch.com/)." -msg_warn "The following code is NOT maintained or audited by our repository." -msg_warn "If you have any doubts or concerns, please review the installer code before proceeding:" -msg_custom "${TAB3}${GATEWAY}${BGN}${CL}" "\e[1;34m" "→ https://hermes-agent.nousresearch.com/install.sh" -echo -read -r -p "${TAB3}Do you want to continue? [y/N]: " CONFIRM -if [[ ! "$CONFIRM" =~ ^([yY][eE][sS]|[yY])$ ]]; then - msg_error "Aborted by user. No changes have been made." - exit 10 -fi +confirm_external_installer "https://hermes-agent.nousresearch.com/" "https://hermes-agent.nousresearch.com/install.sh" msg_info "Installing Hermes Agent" curl -fsSL https://hermes-agent.nousresearch.com/install.sh -o /tmp/hermes-install.sh diff --git a/install/iobroker-install.sh b/install/iobroker-install.sh index e6bfbe725..98ff41581 100644 --- a/install/iobroker-install.sh +++ b/install/iobroker-install.sh @@ -17,16 +17,7 @@ msg_info "Installing Dependencies" $STD apt install -y ca-certificates msg_ok "Installed Dependencies" -msg_warn "WARNING: This script will run an external installer from a third-party source (https://iobroker.net/)." -msg_warn "The following code is NOT maintained or audited by our repository." -msg_warn "If you have any doubts or concerns, please review the installer code before proceeding:" -msg_custom "${TAB3}${GATEWAY}${BGN}${CL}" "\e[1;34m" "→ https://iobroker.net/install.sh" -echo -read -r -p "${TAB3}Do you want to continue? [y/N]: " CONFIRM -if [[ ! "$CONFIRM" =~ ^([yY][eE][sS]|[yY])$ ]]; then - msg_error "Aborted by user. No changes have been made." - exit 10 -fi +confirm_external_installer "https://iobroker.net/" "https://iobroker.net/install.sh" NODE_VERSION="24" NPM_VERSION="11" setup_nodejs diff --git a/install/kasm-install.sh b/install/kasm-install.sh index d921933a4..38096b6d6 100644 --- a/install/kasm-install.sh +++ b/install/kasm-install.sh @@ -56,16 +56,7 @@ if [[ -z "$KASM_VERSION" ]] || [[ -z "$KASM_URL" ]]; then fi msg_ok "Detected Kasm Workspaces version $KASM_VERSION" -msg_warn "WARNING: This script will run an external installer from a third-party source (https://www.kasmweb.com/)." -msg_warn "The following code is NOT maintained or audited by our repository." -msg_warn "If you have any doubts or concerns, please review the installer code before proceeding:" -msg_custom "${TAB3}${GATEWAY}${BGN}${CL}" "\e[1;34m" "→ install.sh inside tar.gz $KASM_URL" -echo -read -r -p "${TAB3}Do you want to continue? [y/N]: " CONFIRM -if [[ ! "$CONFIRM" =~ ^([yY][eE][sS]|[yY])$ ]]; then - msg_error "Aborted by user. No changes have been made." - exit 10 -fi +confirm_external_installer "https://www.kasmweb.com/" "install.sh inside tar.gz $KASM_URL" msg_info "Installing Kasm Workspaces" curl_download "/opt/kasm_release_${KASM_VERSION}.tar.gz" "$KASM_URL" diff --git a/install/livebook-install.sh b/install/livebook-install.sh index bb8665fb1..0ff92417b 100644 --- a/install/livebook-install.sh +++ b/install/livebook-install.sh @@ -28,16 +28,7 @@ export HOME=/opt/livebook $STD adduser --system --group --home /opt/livebook --shell /bin/bash livebook msg_ok "Created livebook user" -msg_warn "WARNING: This script will run an external installer from a third-party source (https://elixir-lang.org)." -msg_warn "The following code is NOT maintained or audited by our repository." -msg_warn "If you have any doubts or concerns, please review the installer code before proceeding:" -msg_custom "${TAB3}${GATEWAY}${BGN}${CL}" "\e[1;34m" "→ https://elixir-lang.org/install.sh" -echo -read -r -p "${TAB3}Do you want to continue? [y/N]: " CONFIRM -if [[ ! "$CONFIRM" =~ ^([yY][eE][sS]|[yY])$ ]]; then - msg_error "Aborted by user. No changes have been made." - exit 10 -fi +confirm_external_installer "https://elixir-lang.org" "https://elixir-lang.org/install.sh" curl -fsSO https://elixir-lang.org/install.sh $STD sh install.sh elixir@latest otp@latest diff --git a/install/mattermost-install.sh b/install/mattermost-install.sh index e7c8fcf1a..00defd167 100644 --- a/install/mattermost-install.sh +++ b/install/mattermost-install.sh @@ -13,16 +13,7 @@ setting_up_container network_check update_os -msg_warn "WARNING: This script will run an external installer from a third-party source (https://mattermost.com/)." -msg_warn "The following code is NOT maintained or audited by our repository." -msg_warn "If you have any doubts or concerns, please review the installer code before proceeding:" -msg_custom "${TAB3}${GATEWAY}${BGN}${CL}" "\e[1;34m" "→ https://deb.packages.mattermost.com/repo-setup.sh" -echo -read -r -p "${TAB3}Do you want to continue? [y/N]: " CONFIRM -if [[ ! "$CONFIRM" =~ ^([yY][eE][sS]|[yY])$ ]]; then - msg_error "Aborted by user. No changes have been made." - exit 10 -fi +confirm_external_installer "https://mattermost.com/" "https://deb.packages.mattermost.com/repo-setup.sh" PG_VERSION="16" setup_postgresql diff --git a/install/nextcloudpi-install.sh b/install/nextcloudpi-install.sh index 51ea39eba..585ce66eb 100644 --- a/install/nextcloudpi-install.sh +++ b/install/nextcloudpi-install.sh @@ -13,16 +13,7 @@ setting_up_container network_check update_os -msg_warn "WARNING: This script will run an external installer from a third-party source (https://nextcloudpi.com/)." -msg_warn "The following code is NOT maintained or audited by our repository." -msg_warn "If you have any doubts or concerns, please review the installer code before proceeding:" -msg_custom "${TAB3}${GATEWAY}${BGN}${CL}" "\e[1;34m" "→ https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh" -echo -read -r -p "${TAB3}Do you want to continue? [y/N]: " CONFIRM -if [[ ! "$CONFIRM" =~ ^([yY][eE][sS]|[yY])$ ]]; then - msg_error "Aborted by user. No changes have been made." - exit 10 -fi +confirm_external_installer "https://nextcloudpi.com/" "https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh" msg_info "Making ssh.service reloads behave like restarts" mkdir -p /etc/systemd/system/ssh.service.d diff --git a/install/pihole-install.sh b/install/pihole-install.sh index 547d79f23..7b9757b0d 100644 --- a/install/pihole-install.sh +++ b/install/pihole-install.sh @@ -13,16 +13,7 @@ setting_up_container network_check update_os -msg_warn "WARNING: This script will run an external installer from a third-party source (https://pi-hole.net/)." -msg_warn "The following code is NOT maintained or audited by our repository." -msg_warn "If you have any doubts or concerns, please review the installer code before proceeding:" -msg_custom "${TAB3}${GATEWAY}${BGN}${CL}" "\e[1;34m" "→ https://install.pi-hole.net" -echo -read -r -p "${TAB3}Do you want to continue? [y/N]: " CONFIRM -if [[ ! "$CONFIRM" =~ ^([yY][eE][sS]|[yY])$ ]]; then - msg_error "Aborted by user. No changes have been made." - exit 10 -fi +confirm_external_installer "https://pi-hole.net/" "https://install.pi-hole.net" msg_info "Installing Dependencies" $STD apt install -y ufw diff --git a/install/wazuh-install.sh b/install/wazuh-install.sh index 59f029f5d..cc4a30668 100644 --- a/install/wazuh-install.sh +++ b/install/wazuh-install.sh @@ -15,16 +15,7 @@ update_os RELEASE=$(get_latest_github_release "wazuh/wazuh" | cut -d. -f1,2) -msg_warn "WARNING: This script will run an external installer from a third-party source (https://wazuh.com/)." -msg_warn "The following code is NOT maintained or audited by our repository." -msg_warn "If you have any doubts or concerns, please review the installer code before proceeding:" -msg_custom "${TAB3}${GATEWAY}${BGN}${CL}" "\e[1;34m" "→ https://packages.wazuh.com/$RELEASE/wazuh-install.sh " -echo -read -r -p "${TAB3}Do you want to continue? [y/N]: " CONFIRM -if [[ ! "$CONFIRM" =~ ^([yY][eE][sS]|[yY])$ ]]; then - msg_error "Aborted by user. No changes have been made." - exit 10 -fi +confirm_external_installer "https://wazuh.com/" "https://packages.wazuh.com/$RELEASE/wazuh-install.sh" msg_info "Setup Wazuh" curl -fsSL https://packages.wazuh.com/$RELEASE/wazuh-install.sh -o wazuh-install.sh diff --git a/install/yunohost-install.sh b/install/yunohost-install.sh index 1f36cd1d5..35cc615bf 100644 --- a/install/yunohost-install.sh +++ b/install/yunohost-install.sh @@ -20,16 +20,7 @@ $STD apt install -y \ ca-certificates msg_ok "Installed Dependencies" -msg_warn "WARNING: This script will run an external installer from a third-party source (https://yunohost.org/)." -msg_warn "The following code is NOT maintained or audited by our repository." -msg_warn "If you have any doubts or concerns, please review the installer code before proceeding:" -msg_custom "${TAB3}${GATEWAY}${BGN}${CL}" "\e[1;34m" "→ https://install.yunohost.org" -echo -read -r -p "${TAB3}Do you want to continue? [y/N]: " CONFIRM -if [[ ! "$CONFIRM" =~ ^([yY][eE][sS]|[yY])$ ]]; then - msg_error "Aborted by user. No changes have been made." - exit 10 -fi +confirm_external_installer "https://yunohost.org/" "https://install.yunohost.org" msg_info "Installing YunoHost (Patience)" touch /etc/.pve-ignore.resolv.conf diff --git a/install/zerotier-one-install.sh b/install/zerotier-one-install.sh index a544834f6..fb018e883 100644 --- a/install/zerotier-one-install.sh +++ b/install/zerotier-one-install.sh @@ -13,16 +13,7 @@ setting_up_container network_check update_os -msg_warn "WARNING: This script will run an external installer from a third-party source (https://install.zerotier.com)." -msg_warn "The following code is NOT maintained or audited by our repository." -msg_warn "If you have any doubts or concerns, please review the installer code before proceeding:" -msg_custom "${TAB3}${GATEWAY}${BGN}${CL}" "\e[1;34m" "→ https://install.zerotier.com" -echo -read -r -p "${TAB3}Do you want to continue? [y/N]: " CONFIRM -if [[ ! $CONFIRM =~ ^([yY][eE][sS]|[yY])$ ]]; then - msg_error "Aborted by user. No changes have been made." - exit 10 -fi +confirm_external_installer "https://install.zerotier.com" "https://install.zerotier.com" msg_info "Setting up Zerotier-One" curl -fsSL https://raw.githubusercontent.com/zerotier/ZeroTierOne/main/doc/contact%40zerotier.com.gpg | gpg --import >/dev/null 2>&1