From b855a5782af0a2edf833149181520955dd425b79 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Thu, 24 Sep 2026 08:06:49 +0200 Subject: [PATCH] Use apt_update_safe instead of aborting on a failed apt update (#17462) --- ct/2fauth.sh | 2 +- ct/apache-cassandra.sh | 2 +- ct/apache-couchdb.sh | 2 +- ct/apt-cacher-ng.sh | 2 +- ct/aria2.sh | 2 +- ct/audiobookshelf.sh | 2 +- ct/authelia.sh | 2 +- ct/bunkerweb.sh | 2 +- ct/caddy.sh | 2 +- ct/casaos.sh | 2 +- ct/cloudflared.sh | 2 +- ct/cockpit.sh | 2 +- ct/ddclient.sh | 2 +- ct/debian.sh | 2 +- ct/deconz.sh | 2 +- ct/defguard.sh | 2 +- ct/deluge.sh | 2 +- ct/devuan.sh | 2 +- ct/docker.sh | 2 +- ct/dotnetaspwebapi.sh | 2 +- ct/drawio.sh | 2 +- ct/elasticsearch.sh | 2 +- ct/elementsynapse.sh | 2 +- ct/evcc.sh | 2 +- ct/fhem.sh | 2 +- ct/gitlab.sh | 2 +- ct/globaleaks.sh | 2 +- ct/grafana.sh | 2 +- ct/graylog.sh | 6 +++--- ct/haproxy.sh | 2 +- ct/homarr.sh | 2 +- ct/homeassistant.sh | 2 +- ct/homebridge.sh | 2 +- ct/hyperhdr.sh | 2 +- ct/hyperion.sh | 2 +- ct/immich.sh | 2 +- ct/infisical.sh | 2 +- ct/influxdb.sh | 2 +- ct/inventree.sh | 2 +- ct/iobroker.sh | 2 +- ct/itsm-ng.sh | 2 +- ct/jdownloader.sh | 2 +- ct/jenkins.sh | 2 +- ct/jitsi-meet.sh | 2 +- ct/keycloak.sh | 2 +- ct/kiwix.sh | 2 +- ct/livebook.sh | 2 +- ct/lldap.sh | 2 +- ct/loki.sh | 2 +- ct/mariadb.sh | 2 +- ct/matterbridge.sh | 2 +- ct/mattermost.sh | 2 +- ct/meshcentral.sh | 2 +- ct/minarca.sh | 2 +- ct/mongodb.sh | 2 +- ct/mqtt.sh | 2 +- ct/mumble.sh | 2 +- ct/mysql.sh | 2 +- ct/neo4j.sh | 2 +- ct/netbird.sh | 2 +- ct/nextcloudpi.sh | 2 +- ct/nextpvr.sh | 2 +- ct/notifiarr.sh | 2 +- ct/ntfy.sh | 2 +- ct/ntopng.sh | 2 +- ct/nzbget.sh | 2 +- ct/obsidian-livesync.sh | 2 +- ct/omv.sh | 2 +- ct/onlyoffice.sh | 2 +- ct/opencloud.sh | 2 +- ct/openhab.sh | 2 +- ct/openproject.sh | 2 +- ct/openziti-controller.sh | 2 +- ct/openziti-tunnel.sh | 2 +- ct/orb.sh | 2 +- ct/owntracks-recorder.sh | 2 +- ct/passbolt.sh | 2 +- ct/pihole.sh | 2 +- ct/plex.sh | 2 +- ct/podman-homeassistant.sh | 4 ++-- ct/podman.sh | 2 +- ct/postgresql.sh | 2 +- ct/powerdns.sh | 2 +- ct/proxmox-backup-server.sh | 2 +- ct/proxmox-datacenter-manager.sh | 4 ++-- ct/proxmox-mail-gateway.sh | 2 +- ct/pterodactyl-panel.sh | 2 +- ct/readarr.sh | 2 +- ct/redis.sh | 2 +- ct/resiliosync.sh | 2 +- ct/salt.sh | 2 +- ct/sftpgo.sh | 2 +- ct/smokeping.sh | 2 +- ct/snipeit.sh | 2 +- ct/speedtest-tracker.sh | 2 +- ct/sqlserver2022.sh | 2 +- ct/sqlserver2025.sh | 2 +- ct/squid.sh | 2 +- ct/step-ca.sh | 2 +- ct/syncthing.sh | 2 +- ct/tasmoadmin.sh | 2 +- ct/tdarr.sh | 2 +- ct/telegraf.sh | 2 +- ct/teleport.sh | 2 +- ct/tor-snowflake.sh | 2 +- ct/transmission.sh | 2 +- ct/twingate-connector.sh | 2 +- ct/ubuntu.sh | 2 +- ct/uhf.sh | 2 +- ct/umbraco.sh | 2 +- ct/unbound.sh | 2 +- ct/urbackupserver.sh | 2 +- ct/valkey.sh | 2 +- ct/wazuh.sh | 2 +- ct/wireguard.sh | 2 +- ct/yunohost.sh | 2 +- ct/zabbix.sh | 2 +- ct/zammad.sh | 2 +- ct/zerotier-one.sh | 2 +- install/cockpit-install.sh | 2 +- install/dotnetaspwebapi-install.sh | 2 +- install/evcc-install.sh | 2 +- install/flaresolverr-install.sh | 2 +- install/frigate-install.sh | 4 ++-- install/globaleaks-install.sh | 2 +- install/graylog-install.sh | 2 +- install/immich-install.sh | 4 ++-- install/kiwix-install.sh | 2 +- install/lldap-install.sh | 2 +- install/mattermost-install.sh | 2 +- install/medusa-install.sh | 2 +- install/minarca-install.sh | 2 +- install/motioneye-install.sh | 2 +- install/mylar3-install.sh | 2 +- install/mysql-install.sh | 2 +- install/neo4j-install.sh | 2 +- install/ntopng-install.sh | 2 +- install/ollama-install.sh | 2 +- install/omv-install.sh | 2 +- install/onlyoffice-install.sh | 2 +- install/opencloud-install.sh | 2 +- install/openwebui-install.sh | 2 +- install/openziti-controller-install.sh | 2 +- install/openziti-tunnel-install.sh | 2 +- install/pterodactyl-panel-install.sh | 2 +- install/sabnzbd-install.sh | 2 +- install/searxng-install.sh | 2 +- install/signoz-install.sh | 2 +- install/twingate-connector-install.sh | 2 +- install/valkey-install.sh | 2 +- install/zabbix-install.sh | 2 +- 151 files changed, 157 insertions(+), 157 deletions(-) diff --git a/ct/2fauth.sh b/ct/2fauth.sh index 54ad8dd04..f9b2c11b8 100644 --- a/ct/2fauth.sh +++ b/ct/2fauth.sh @@ -33,7 +33,7 @@ function update_script() { fi setup_mariadb if check_for_gh_release "2fauth" "Bubka/2FAuth"; then - $STD apt update + apt_update_safe $STD apt -y upgrade msg_info "Creating Backup" diff --git a/ct/apache-cassandra.sh b/ct/apache-cassandra.sh index 999b48d87..b23e3bf08 100644 --- a/ct/apache-cassandra.sh +++ b/ct/apache-cassandra.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating Apache Cassandra" - $STD apt update + apt_update_safe $STD apt install -y --only-upgrade cassandra cassandra-tools msg_ok "Updated Apache Cassandra" msg_ok "Updated successfully!" diff --git a/ct/apache-couchdb.sh b/ct/apache-couchdb.sh index 7b33fbcf2..83106a64b 100644 --- a/ct/apache-couchdb.sh +++ b/ct/apache-couchdb.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating Apache CouchDB" - $STD apt-get update + apt_update_safe $STD apt-get install -y --only-upgrade couchdb msg_ok "Updated Apache CouchDB" msg_ok "Updated successfully!" diff --git a/ct/apt-cacher-ng.sh b/ct/apt-cacher-ng.sh index 0eddcb749..f11a0fba7 100644 --- a/ct/apt-cacher-ng.sh +++ b/ct/apt-cacher-ng.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating Apt-Cacher-NG" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated Apt-Cacher-NG" msg_ok "Updated successfully!" diff --git a/ct/aria2.sh b/ct/aria2.sh index 46dc44c26..1379ebf7a 100644 --- a/ct/aria2.sh +++ b/ct/aria2.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating Aria2" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated Aria2" msg_ok "Updated successfully!" diff --git a/ct/audiobookshelf.sh b/ct/audiobookshelf.sh index 17bcd24d6..03ecb2472 100644 --- a/ct/audiobookshelf.sh +++ b/ct/audiobookshelf.sh @@ -32,7 +32,7 @@ function update_script() { fi msg_info "Updating AudiobookShelf" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated AudiobookShelf" msg_ok "Updated successfully!" diff --git a/ct/authelia.sh b/ct/authelia.sh index fea6c7cbd..33a1eb445 100644 --- a/ct/authelia.sh +++ b/ct/authelia.sh @@ -34,7 +34,7 @@ function update_script() { fi if check_for_gh_release "authelia" "authelia/authelia"; then - $STD apt update + apt_update_safe $STD apt -y upgrade fetch_and_deploy_gh_release "authelia" "authelia/authelia" "binary" msg_ok "Updated successfully!" diff --git a/ct/bunkerweb.sh b/ct/bunkerweb.sh index 8ec74a90e..2b7cd438f 100644 --- a/ct/bunkerweb.sh +++ b/ct/bunkerweb.sh @@ -39,7 +39,7 @@ Package: bunkerweb Pin: version ${RELEASE} Pin-Priority: 1001 EOF - $STD apt update + apt_update_safe $STD apt-mark unhold bunkerweb nginx $STD apt install -y --allow-downgrades bunkerweb="${RELEASE}" msg_ok "Updated BunkerWeb" diff --git a/ct/caddy.sh b/ct/caddy.sh index 34db90c9e..fbce6b742 100644 --- a/ct/caddy.sh +++ b/ct/caddy.sh @@ -40,7 +40,7 @@ update_deb_based() { fi msg_info "Updating Caddy LXC" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated Caddy LXC" diff --git a/ct/casaos.sh b/ct/casaos.sh index e75e48ed5..602df91c7 100644 --- a/ct/casaos.sh +++ b/ct/casaos.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - $STD apt-get update + apt_update_safe $STD apt-get -y upgrade msg_ok "Updated ${APP} LXC" msg_ok "Updated successfully!" diff --git a/ct/cloudflared.sh b/ct/cloudflared.sh index 8f1f0564f..61c9d0007 100644 --- a/ct/cloudflared.sh +++ b/ct/cloudflared.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated $APP LXC" msg_ok "Updated successfully!" diff --git a/ct/cockpit.sh b/ct/cockpit.sh index 9f513beab..2ee088084 100644 --- a/ct/cockpit.sh +++ b/ct/cockpit.sh @@ -32,7 +32,7 @@ function update_script() { fi msg_info "Updating ${APP} LXC" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated ${APP} LXC" diff --git a/ct/ddclient.sh b/ct/ddclient.sh index e44bbd886..7ed96516a 100644 --- a/ct/ddclient.sh +++ b/ct/ddclient.sh @@ -33,7 +33,7 @@ function update_script() { fi msg_info "Updating ddclient" - $STD apt update + apt_update_safe $STD apt install --only-upgrade -y ddclient $STD systemctl restart ddclient msg_ok "Updated ddclient" diff --git a/ct/debian.sh b/ct/debian.sh index e1cd94ccb..d6f1cb0a1 100644 --- a/ct/debian.sh +++ b/ct/debian.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated $APP LXC" msg_ok "Updated successfully!" diff --git a/ct/deconz.sh b/ct/deconz.sh index 09390b6c0..b1cd891d1 100644 --- a/ct/deconz.sh +++ b/ct/deconz.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating deCONZ" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated deCONZ" msg_ok "Updated successfully!" diff --git a/ct/defguard.sh b/ct/defguard.sh index 1fc574fa6..7f6534bfc 100644 --- a/ct/defguard.sh +++ b/ct/defguard.sh @@ -33,7 +33,7 @@ function update_script() { fi msg_info "Updating Defguard" - $STD apt update + apt_update_safe $STD apt install -y defguard defguard-proxy msg_ok "Updated Defguard" diff --git a/ct/deluge.sh b/ct/deluge.sh index a142d7048..cab5227b9 100644 --- a/ct/deluge.sh +++ b/ct/deluge.sh @@ -32,7 +32,7 @@ function update_script() { fi msg_info "Updating Deluge" ensure_dependencies python3-setuptools - $STD apt update + apt_update_safe $STD pip3 install deluge[all] "pyopenssl<25" --upgrade msg_ok "Updated Deluge" msg_ok "Updated successfully!" diff --git a/ct/devuan.sh b/ct/devuan.sh index 42aa7cc51..f2e2c7a2b 100644 --- a/ct/devuan.sh +++ b/ct/devuan.sh @@ -32,7 +32,7 @@ function update_script() { exit fi msg_info "Updating Devuan LXC" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated Devuan LXC" exit diff --git a/ct/docker.sh b/ct/docker.sh index 8611ceb7a..54c945377 100644 --- a/ct/docker.sh +++ b/ct/docker.sh @@ -36,7 +36,7 @@ catch_errors update_deb_based() { msg_info "Updating base system" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Base system updated" diff --git a/ct/dotnetaspwebapi.sh b/ct/dotnetaspwebapi.sh index b6914b10e..fe1a7d39f 100644 --- a/ct/dotnetaspwebapi.sh +++ b/ct/dotnetaspwebapi.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - $STD apt-get update + apt_update_safe $STD apt-get -y upgrade msg_ok "Updated successfully!" exit diff --git a/ct/drawio.sh b/ct/drawio.sh index fbded2cd5..55d65e7c8 100644 --- a/ct/drawio.sh +++ b/ct/drawio.sh @@ -37,7 +37,7 @@ function update_script() { msg_ok "Service stopped" msg_info "Updating Debian LXC" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated Debian LXC" diff --git a/ct/elasticsearch.sh b/ct/elasticsearch.sh index 84c7efacd..8444f9b37 100644 --- a/ct/elasticsearch.sh +++ b/ct/elasticsearch.sh @@ -33,7 +33,7 @@ function update_script() { fi msg_info "Updating ${APP}" - $STD apt update + apt_update_safe $STD apt install -y elasticsearch msg_ok "Updated ${APP}" diff --git a/ct/elementsynapse.sh b/ct/elementsynapse.sh index c28829f1e..f9521dabc 100644 --- a/ct/elementsynapse.sh +++ b/ct/elementsynapse.sh @@ -34,7 +34,7 @@ function update_script() { NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs msg_info "Updating LXC" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated LXC" diff --git a/ct/evcc.sh b/ct/evcc.sh index ed1e6d19e..c719409a5 100644 --- a/ct/evcc.sh +++ b/ct/evcc.sh @@ -40,7 +40,7 @@ function update_script() { "main" fi msg_info "Updating evcc LXC" - $STD apt update + apt_update_safe $STD apt --only-upgrade install -y evcc msg_ok "Updated successfully!" exit diff --git a/ct/fhem.sh b/ct/fhem.sh index 89be61a07..70c8e2c5c 100644 --- a/ct/fhem.sh +++ b/ct/fhem.sh @@ -32,7 +32,7 @@ function update_script() { fi msg_info "Updating FHEM" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated FHEM" msg_ok "Updated successfully!" diff --git a/ct/gitlab.sh b/ct/gitlab.sh index b65027b5d..0c13860a3 100644 --- a/ct/gitlab.sh +++ b/ct/gitlab.sh @@ -33,7 +33,7 @@ function update_script() { fi msg_info "Updating GitLab (Patience)" - $STD apt update + apt_update_safe $STD apt install -y gitlab-ce msg_ok "Updated GitLab" diff --git a/ct/globaleaks.sh b/ct/globaleaks.sh index 31db842dc..32a416e5e 100644 --- a/ct/globaleaks.sh +++ b/ct/globaleaks.sh @@ -31,7 +31,7 @@ function update_script() { fi msg_info "Updating $APP LXC" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated $APP LXC" msg_ok "Updated successfully!" diff --git a/ct/grafana.sh b/ct/grafana.sh index 6101bd30a..1e6e396f1 100644 --- a/ct/grafana.sh +++ b/ct/grafana.sh @@ -49,7 +49,7 @@ update_deb_based() { fi msg_info "Updating Grafana LXC" - $STD apt update + apt_update_safe $STD apt --only-upgrade install -y grafana msg_ok "Updated successfully!" } diff --git a/ct/graylog.sh b/ct/graylog.sh index c0c57feee..fee32d79c 100644 --- a/ct/graylog.sh +++ b/ct/graylog.sh @@ -43,17 +43,17 @@ function update_script() { MONGO_VERSION="8.2" setup_mongodb msg_info "Updating Graylog" - $STD apt update + apt_update_safe $STD apt upgrade -y curl -fsSL "https://packages.graylog2.org/repo/packages/graylog-7.0-repository_latest.deb" -o "graylog-7.0-repository_latest.deb" $STD dpkg -i graylog-7.0-repository_latest.deb - $STD apt update + apt_update_safe ensure_dependencies graylog-server graylog-datanode rm -f graylog-7.0-repository_latest.deb msg_ok "Updated Graylog" elif dpkg --compare-versions "$CURRENT_VERSION" ge "7.0"; then msg_info "Updating Graylog" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated Graylog" fi diff --git a/ct/haproxy.sh b/ct/haproxy.sh index b59e1f152..406e5c4f9 100644 --- a/ct/haproxy.sh +++ b/ct/haproxy.sh @@ -33,7 +33,7 @@ function update_script() { fi msg_info "Updating ${APP}" - $STD apt update + apt_update_safe $STD apt install -y haproxy msg_ok "Updated ${APP}" diff --git a/ct/homarr.sh b/ct/homarr.sh index e20d74fdf..4a0429be3 100644 --- a/ct/homarr.sh +++ b/ct/homarr.sh @@ -63,7 +63,7 @@ EOF fi msg_info "Updating Nodejs" - $STD apt update + apt_update_safe $STD apt upgrade nodejs -y msg_ok "Updated Nodejs" diff --git a/ct/homeassistant.sh b/ct/homeassistant.sh index 88cf48dc7..de6b3e762 100644 --- a/ct/homeassistant.sh +++ b/ct/homeassistant.sh @@ -63,7 +63,7 @@ function update_script() { fi if [ "$UPD" == "3" ]; then msg_info "Installing Home Assistant Community Store (HACS)" - $STD apt update + apt_update_safe cd /var/lib/docker/volumes/hass_config/_data $STD bash <(curl -fsSL https://get.hacs.xyz) msg_ok "Installed Home Assistant Community Store (HACS)" diff --git a/ct/homebridge.sh b/ct/homebridge.sh index b0bb2cf20..886f17355 100644 --- a/ct/homebridge.sh +++ b/ct/homebridge.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - $STD apt update + apt_update_safe $STD apt install -y homebridge msg_ok "Updated successfully!" exit diff --git a/ct/hyperhdr.sh b/ct/hyperhdr.sh index 576662e73..215cb55e0 100644 --- a/ct/hyperhdr.sh +++ b/ct/hyperhdr.sh @@ -32,7 +32,7 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated $APP LXC" msg_ok "Updated successfully!" diff --git a/ct/hyperion.sh b/ct/hyperion.sh index 973f508d6..17b0be4ee 100644 --- a/ct/hyperion.sh +++ b/ct/hyperion.sh @@ -32,7 +32,7 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - $STD apt update + apt_update_safe $STD apt install -y hyperion msg_ok "Updated successfully!" exit diff --git a/ct/immich.sh b/ct/immich.sh index 529b21b2e..c7adf85b0 100644 --- a/ct/immich.sh +++ b/ct/immich.sh @@ -56,7 +56,7 @@ Pin:release a=testing Pin-Priority: 450 EOF [[ -f /etc/apt/preferences.d/immich ]] && rm /etc/apt/preferences.d/immich - $STD apt update + apt_update_safe msg_ok "Added Debian Testing repo" fi diff --git a/ct/infisical.sh b/ct/infisical.sh index 96067f5f2..4a80905f7 100644 --- a/ct/infisical.sh +++ b/ct/infisical.sh @@ -42,7 +42,7 @@ function update_script() { msg_ok "Created backup" msg_info "Updating Infisical" - $STD apt update + apt_update_safe $STD apt install -y infisical-core $STD infisical-ctl reconfigure msg_ok "Updated Infisical" diff --git a/ct/influxdb.sh b/ct/influxdb.sh index dd82440ee..9d5ef3daa 100644 --- a/ct/influxdb.sh +++ b/ct/influxdb.sh @@ -32,7 +32,7 @@ function update_script() { fi msg_info "Updating InfluxDB" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated InfluxDB" msg_ok "Updated successfully!" diff --git a/ct/inventree.sh b/ct/inventree.sh index 606085a85..9dfed30b9 100644 --- a/ct/inventree.sh +++ b/ct/inventree.sh @@ -38,7 +38,7 @@ function update_script() { fi msg_info "Updating InvenTree" - $STD apt update + apt_update_safe $STD apt install --only-upgrade inventree -y msg_ok "Updated InvenTree" msg_ok "Updated successfully!" diff --git a/ct/iobroker.sh b/ct/iobroker.sh index 09ac7fb20..75cfc99aa 100644 --- a/ct/iobroker.sh +++ b/ct/iobroker.sh @@ -34,7 +34,7 @@ function update_script() { NODE_VERSION="24" NPM_VERSION="11" setup_nodejs msg_info "Updating ${APP} LXC" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated successfully!" exit diff --git a/ct/itsm-ng.sh b/ct/itsm-ng.sh index 7fac988e9..880a81392 100644 --- a/ct/itsm-ng.sh +++ b/ct/itsm-ng.sh @@ -34,7 +34,7 @@ function update_script() { setup_mariadb msg_info "Updating ITSM-NG" - $STD apt update + apt_update_safe $STD apt -y upgrade chown -R www-data:www-data /var/lib/itsm-ng mkdir -p /usr/share/itsm-ng/css/palettes diff --git a/ct/jdownloader.sh b/ct/jdownloader.sh index 1293615bd..e6cab05a8 100644 --- a/ct/jdownloader.sh +++ b/ct/jdownloader.sh @@ -33,7 +33,7 @@ function update_script() { fi msg_info "Updating Container OS" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated Container OS" diff --git a/ct/jenkins.sh b/ct/jenkins.sh index 0e831469f..db1b1b437 100644 --- a/ct/jenkins.sh +++ b/ct/jenkins.sh @@ -34,7 +34,7 @@ function update_script() { JAVA_VERSION="21" setup_java msg_info "Updating Jenkins" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated Jenkins" msg_ok "Updated successfully!" diff --git a/ct/jitsi-meet.sh b/ct/jitsi-meet.sh index 7468c5f13..d9be554f2 100644 --- a/ct/jitsi-meet.sh +++ b/ct/jitsi-meet.sh @@ -41,7 +41,7 @@ function update_script() { fi msg_info "Updating Jitsi Meet" - $STD apt update + apt_update_safe $STD apt install -y --only-upgrade \ jitsi-meet \ jicofo \ diff --git a/ct/keycloak.sh b/ct/keycloak.sh index a53a29c53..10c7d76ba 100644 --- a/ct/keycloak.sh +++ b/ct/keycloak.sh @@ -44,7 +44,7 @@ function update_script() { msg_ok "Stopped Service" msg_info "Updating packages" - $STD apt-get update + apt_update_safe $STD apt-get -y upgrade msg_ok "Updated packages" diff --git a/ct/kiwix.sh b/ct/kiwix.sh index 721528a92..029ca239d 100644 --- a/ct/kiwix.sh +++ b/ct/kiwix.sh @@ -35,7 +35,7 @@ function update_script() { CURRENT=$(dpkg-query -W -f='${Version}' kiwix-tools 2>/dev/null) msg_info "Updating Package Index" - $STD apt update + apt_update_safe msg_ok "Updated Package Index" CANDIDATE=$(apt-cache policy kiwix-tools | awk '/Candidate:/{print $2}') diff --git a/ct/livebook.sh b/ct/livebook.sh index 3caeefbfe..18617de2f 100755 --- a/ct/livebook.sh +++ b/ct/livebook.sh @@ -38,7 +38,7 @@ function update_script() { msg_info "Stopped Service" msg_info "Updating Container" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated Container" diff --git a/ct/lldap.sh b/ct/lldap.sh index a614e337f..ebc4cb8ee 100644 --- a/ct/lldap.sh +++ b/ct/lldap.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating lldap" - $STD apt update + apt_update_safe $STD apt upgrade -y lldap msg_ok "Updated lldap" msg_ok "Updated successfully!" diff --git a/ct/loki.sh b/ct/loki.sh index b2373529e..31ea36d9d 100644 --- a/ct/loki.sh +++ b/ct/loki.sh @@ -51,7 +51,7 @@ update_deb_based() { msg_ok "Stopped Loki" msg_info "Updating Loki" - $STD apt update + apt_update_safe $STD apt install -y --only-upgrade loki msg_ok "Updated Loki" diff --git a/ct/mariadb.sh b/ct/mariadb.sh index 30687acb2..0d7b89ebd 100644 --- a/ct/mariadb.sh +++ b/ct/mariadb.sh @@ -40,7 +40,7 @@ update_deb_based() { fi setup_mariadb msg_info "Updating ${APP} LXC" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated successfully!" } diff --git a/ct/matterbridge.sh b/ct/matterbridge.sh index 17854d70b..7da426d2b 100644 --- a/ct/matterbridge.sh +++ b/ct/matterbridge.sh @@ -30,7 +30,7 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi - $STD apt update + apt_update_safe $STD apt upgrade -y NODE_VERSION="24" NODE_MODULE="matterbridge" setup_nodejs msg_ok "Updated successfully!" diff --git a/ct/mattermost.sh b/ct/mattermost.sh index a0120679b..60fac4a99 100644 --- a/ct/mattermost.sh +++ b/ct/mattermost.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated successfully!" exit diff --git a/ct/meshcentral.sh b/ct/meshcentral.sh index 519212861..90090a325 100644 --- a/ct/meshcentral.sh +++ b/ct/meshcentral.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated successfully!" exit diff --git a/ct/minarca.sh b/ct/minarca.sh index 76a12366b..f071f363f 100644 --- a/ct/minarca.sh +++ b/ct/minarca.sh @@ -37,7 +37,7 @@ function update_script() { msg_ok "Stopped Service" msg_info "Updating ${APP} LXC" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated ${APP} LXC" diff --git a/ct/mongodb.sh b/ct/mongodb.sh index 632d2290f..e3905c851 100644 --- a/ct/mongodb.sh +++ b/ct/mongodb.sh @@ -32,7 +32,7 @@ function update_script() { fi msg_info "Updating MongoDB LXC" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated successfully!" exit diff --git a/ct/mqtt.sh b/ct/mqtt.sh index 253e5a628..a334ca021 100644 --- a/ct/mqtt.sh +++ b/ct/mqtt.sh @@ -41,7 +41,7 @@ function update_script() { fi msg_info "Updating MQTT" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated successfully!" exit diff --git a/ct/mumble.sh b/ct/mumble.sh index 6270ebf83..0745dc7f0 100644 --- a/ct/mumble.sh +++ b/ct/mumble.sh @@ -40,7 +40,7 @@ function update_script() { create_backup /etc/mumble/mumble-server.ini /var/lib/mumble-server/mumble-server.sqlite msg_info "Updating Mumble" - $STD apt update + apt_update_safe $STD apt install -y mumble-server cat <~/.mumble $(get_latest_github_release "mumble-voip/mumble") diff --git a/ct/mysql.sh b/ct/mysql.sh index cb178a1af..fc5405df2 100644 --- a/ct/mysql.sh +++ b/ct/mysql.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated successfully!" exit diff --git a/ct/neo4j.sh b/ct/neo4j.sh index 7aa6fabaf..1580ae4f3 100644 --- a/ct/neo4j.sh +++ b/ct/neo4j.sh @@ -33,7 +33,7 @@ function update_script() { JAVA_VERSION="21" setup_java msg_info "Updating ${APP}" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated successfully!" exit diff --git a/ct/netbird.sh b/ct/netbird.sh index 5bcac0843..e5ae0281f 100644 --- a/ct/netbird.sh +++ b/ct/netbird.sh @@ -34,7 +34,7 @@ function update_script() { fi msg_info "Updating Netbird" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated successfully!" exit diff --git a/ct/nextcloudpi.sh b/ct/nextcloudpi.sh index d42363ba2..385022330 100644 --- a/ct/nextcloudpi.sh +++ b/ct/nextcloudpi.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated successfully!" exit diff --git a/ct/nextpvr.sh b/ct/nextpvr.sh index 919a1274e..57afd6a23 100644 --- a/ct/nextpvr.sh +++ b/ct/nextpvr.sh @@ -37,7 +37,7 @@ function update_script() { msg_ok "Stopped Service" msg_info "Updating LXC packages" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated LXC packages" diff --git a/ct/notifiarr.sh b/ct/notifiarr.sh index c4a172525..779bda9d4 100644 --- a/ct/notifiarr.sh +++ b/ct/notifiarr.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating Notifiarr" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated Notifiarr" msg_ok "Updated successfully!" diff --git a/ct/ntfy.sh b/ct/ntfy.sh index aa6dc0bc2..ad84bfdf3 100644 --- a/ct/ntfy.sh +++ b/ct/ntfy.sh @@ -54,7 +54,7 @@ update_deb_based() { fi msg_info "Updating ntfy" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated ntfy" msg_ok "Updated successfully!" diff --git a/ct/ntopng.sh b/ct/ntopng.sh index fda4c058a..8664b9c06 100644 --- a/ct/ntopng.sh +++ b/ct/ntopng.sh @@ -33,7 +33,7 @@ function update_script() { fi msg_info "Updating ntopng" - $STD apt update + apt_update_safe $STD apt install -y ntopng msg_ok "Updated ntopng" diff --git a/ct/nzbget.sh b/ct/nzbget.sh index b7eb57bc5..84c48331b 100644 --- a/ct/nzbget.sh +++ b/ct/nzbget.sh @@ -41,7 +41,7 @@ function update_script() { fi msg_info "Updating NZBGet" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated NZBGet" msg_ok "Updated successfully!" diff --git a/ct/obsidian-livesync.sh b/ct/obsidian-livesync.sh index 60e561d55..2bef6ebbb 100644 --- a/ct/obsidian-livesync.sh +++ b/ct/obsidian-livesync.sh @@ -39,7 +39,7 @@ function update_script() { create_backup /var/lib/couchdb /opt/couchdb/etc/local.d/obsidian-livesync.ini /opt/obsidian-livesync/.env msg_info "Updating Container OS" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated Container OS" diff --git a/ct/omv.sh b/ct/omv.sh index 746222042..e3a15fc32 100644 --- a/ct/omv.sh +++ b/ct/omv.sh @@ -39,7 +39,7 @@ function update_script() { fi msg_info "Updating ${APP} LXC" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated successfully!" exit diff --git a/ct/onlyoffice.sh b/ct/onlyoffice.sh index ced4881ed..566577f43 100644 --- a/ct/onlyoffice.sh +++ b/ct/onlyoffice.sh @@ -33,7 +33,7 @@ function update_script() { fi msg_info "Updating OnlyOffice Document Server" - $STD apt update + apt_update_safe $STD apt -y --only-upgrade install onlyoffice-documentserver msg_ok "Updated OnlyOffice Document Server" diff --git a/ct/opencloud.sh b/ct/opencloud.sh index 79bee0851..da78777d4 100644 --- a/ct/opencloud.sh +++ b/ct/opencloud.sh @@ -39,7 +39,7 @@ function update_script() { msg_ok "Stopped services" msg_info "Updating packages" - $STD apt-get update + apt_update_safe $STD apt-get dist-upgrade -y ensure_dependencies "inotify-tools" msg_ok "Updated packages" diff --git a/ct/openhab.sh b/ct/openhab.sh index 687ee47c8..c7d9f4c35 100644 --- a/ct/openhab.sh +++ b/ct/openhab.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated successfully!" exit diff --git a/ct/openproject.sh b/ct/openproject.sh index 238ad3140..1099b9c6f 100644 --- a/ct/openproject.sh +++ b/ct/openproject.sh @@ -32,7 +32,7 @@ function update_script() { fi msg_info "Updating OpenProject" - $STD apt update + apt_update_safe $STD apt install --only-upgrade -y openproject msg_ok "Updated OpenProject" msg_ok "Updated successfully!" diff --git a/ct/openziti-controller.sh b/ct/openziti-controller.sh index 2b0b6397f..409d59f5d 100644 --- a/ct/openziti-controller.sh +++ b/ct/openziti-controller.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated $APP LXC" msg_ok "Updated successfully!" diff --git a/ct/openziti-tunnel.sh b/ct/openziti-tunnel.sh index 08513828f..cd5bd9b70 100644 --- a/ct/openziti-tunnel.sh +++ b/ct/openziti-tunnel.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated $APP LXC" msg_ok "Updated successfully!" diff --git a/ct/orb.sh b/ct/orb.sh index 7b31710ec..72ed97c9a 100644 --- a/ct/orb.sh +++ b/ct/orb.sh @@ -33,7 +33,7 @@ function update_script() { fi msg_info "Updating Orb" - $STD apt update + apt_update_safe $STD apt install -y --only-upgrade orb msg_ok "Updated successfully!" exit diff --git a/ct/owntracks-recorder.sh b/ct/owntracks-recorder.sh index a5f669aca..366b28453 100644 --- a/ct/owntracks-recorder.sh +++ b/ct/owntracks-recorder.sh @@ -33,7 +33,7 @@ function update_script() { fi msg_info "Updating ${APP}" - $STD apt update + apt_update_safe $STD apt install -y ot-recorder msg_ok "Updated ${APP}" diff --git a/ct/passbolt.sh b/ct/passbolt.sh index a1340d6c4..ea3b8fafa 100644 --- a/ct/passbolt.sh +++ b/ct/passbolt.sh @@ -32,7 +32,7 @@ function update_script() { fi setup_mariadb msg_info "Updating $APP LXC" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated $APP LXC" exit diff --git a/ct/pihole.sh b/ct/pihole.sh index f6812c747..fc07ae01d 100644 --- a/ct/pihole.sh +++ b/ct/pihole.sh @@ -32,7 +32,7 @@ function update_script() { fi msg_info "Updating PiHole" set +e - $STD apt update + apt_update_safe $STD apt upgrade -y /usr/local/bin/pihole -up msg_ok "Updated PiHole" diff --git a/ct/plex.sh b/ct/plex.sh index 5deed28ac..3f6e8a3bf 100644 --- a/ct/plex.sh +++ b/ct/plex.sh @@ -79,7 +79,7 @@ function update_script() { fi msg_info "Updating Plex Media Server" - $STD apt update + apt_update_safe $STD apt install -y plexmediaserver msg_ok "Updated Plex Media Server" diff --git a/ct/podman-homeassistant.sh b/ct/podman-homeassistant.sh index 58f042398..2718fb5f1 100644 --- a/ct/podman-homeassistant.sh +++ b/ct/podman-homeassistant.sh @@ -38,7 +38,7 @@ function update_script() { if [ "$UPD" == "1" ]; then msg_info "Updating ${APP} LXC" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated successfully!" @@ -59,7 +59,7 @@ function update_script() { fi if [ "$UPD" == "2" ]; then msg_info "Installing Home Assistant Community Store (HACS)" - $STD apt update + apt_update_safe cd /var/lib/containers/storage/volumes/hass_config/_data $STD bash <(curl -fsSL https://get.hacs.xyz) msg_ok "Installed Home Assistant Community Store (HACS)" diff --git a/ct/podman.sh b/ct/podman.sh index cd35e63c0..0c790e1be 100644 --- a/ct/podman.sh +++ b/ct/podman.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated successfully!" exit diff --git a/ct/postgresql.sh b/ct/postgresql.sh index 91fb6a542..fc09a2074 100644 --- a/ct/postgresql.sh +++ b/ct/postgresql.sh @@ -39,7 +39,7 @@ update_deb_based() { exit fi msg_info "Updating ${APP} LXC" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated successfully!" } diff --git a/ct/powerdns.sh b/ct/powerdns.sh index 43c1a1fa0..6b27a8621 100644 --- a/ct/powerdns.sh +++ b/ct/powerdns.sh @@ -46,7 +46,7 @@ function update_script() { fi msg_info "Updating PowerDNS" - $STD apt update + apt_update_safe $STD apt install -y --only-upgrade pdns-server pdns-backend-sqlite3 msg_ok "Updated PowerDNS" diff --git a/ct/proxmox-backup-server.sh b/ct/proxmox-backup-server.sh index d3b590e7a..2709b335a 100644 --- a/ct/proxmox-backup-server.sh +++ b/ct/proxmox-backup-server.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated $APP LXC" msg_ok "Updated successfully!" diff --git a/ct/proxmox-datacenter-manager.sh b/ct/proxmox-datacenter-manager.sh index 249fb0115..7022d2ac9 100644 --- a/ct/proxmox-datacenter-manager.sh +++ b/ct/proxmox-datacenter-manager.sh @@ -36,7 +36,7 @@ function update_script() { echo "deb [signed-by=/usr/share/keyrings/proxmox-archive-keyring.gpg] http://download.proxmox.com/debian/pdm bookworm pdm-test" >/etc/apt/sources.list.d/pdm-test.list curl -fsSL https://enterprise.proxmox.com/debian/proxmox-archive-keyring-trixie.gpg -o /usr/share/keyrings/proxmox-archive-keyring.gpg rm -f /etc/apt/keyrings/proxmox-release-bookworm.gpg /etc/apt/sources.list.d/proxmox-release-bookworm.list - $STD apt update + apt_update_safe msg_ok "Updated old sources" fi @@ -55,7 +55,7 @@ function update_script() { fi msg_info "Updating $APP LXC" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated $APP LXC" msg_ok "Updated successfully!" diff --git a/ct/proxmox-mail-gateway.sh b/ct/proxmox-mail-gateway.sh index cbf230e71..ff9b1426f 100644 --- a/ct/proxmox-mail-gateway.sh +++ b/ct/proxmox-mail-gateway.sh @@ -32,7 +32,7 @@ function update_script() { fi msg_info "Updating Proxmox-Mail-Gateway" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated Proxmox-Mail-Gateway" msg_ok "Updated successfully!" diff --git a/ct/pterodactyl-panel.sh b/ct/pterodactyl-panel.sh index d37c2db3d..ddfb87647 100644 --- a/ct/pterodactyl-panel.sh +++ b/ct/pterodactyl-panel.sh @@ -45,7 +45,7 @@ Suites: $(lsb_release -sc) Components: main Signed-By: /usr/share/keyrings/deb.sury.org-php.gpg EOF - $STD apt update + apt_update_safe $STD apt remove -y php"${CURRENT_PHP//./}"* $STD apt install -y \ php8.4 \ diff --git a/ct/readarr.sh b/ct/readarr.sh index 28186e6c2..d537d7451 100644 --- a/ct/readarr.sh +++ b/ct/readarr.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating $APP LXC" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated $APP LXC" msg_ok "Updated successfully!" diff --git a/ct/redis.sh b/ct/redis.sh index c15b17780..e27a36002 100644 --- a/ct/redis.sh +++ b/ct/redis.sh @@ -40,7 +40,7 @@ update_deb_based() { fi msg_info "Updating $APP LXC" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated $APP LXC" } diff --git a/ct/resiliosync.sh b/ct/resiliosync.sh index 49642b3de..f49228729 100644 --- a/ct/resiliosync.sh +++ b/ct/resiliosync.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating Resilio Sync" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated successfully!" exit diff --git a/ct/salt.sh b/ct/salt.sh index 50372ed39..119a3df36 100644 --- a/ct/salt.sh +++ b/ct/salt.sh @@ -36,7 +36,7 @@ function update_script() { if check_for_gh_release "salt" "saltstack/salt"; then msg_info "Updating Salt" sed -i "s/^\(Pin: version \).*/\1${RELEASE}/" /etc/apt/preferences.d/salt-pin-1001 - $STD apt update + apt_update_safe $STD apt upgrade -y echo "${RELEASE}" >~/.salt msg_ok "Updated successfully!" diff --git a/ct/sftpgo.sh b/ct/sftpgo.sh index 3b458b6ad..abd26ead7 100644 --- a/ct/sftpgo.sh +++ b/ct/sftpgo.sh @@ -38,7 +38,7 @@ function update_script() { "trixie" msg_info "Updating SFTPGo" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated SFTPGo" msg_ok "Updated successfully!" diff --git a/ct/smokeping.sh b/ct/smokeping.sh index 443775f7d..3b0569563 100644 --- a/ct/smokeping.sh +++ b/ct/smokeping.sh @@ -32,7 +32,7 @@ function update_script() { fi msg_info "Updating ${APP}" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated successfully!" exit diff --git a/ct/snipeit.sh b/ct/snipeit.sh index 26d00591c..689d78d3c 100644 --- a/ct/snipeit.sh +++ b/ct/snipeit.sh @@ -50,7 +50,7 @@ function update_script() { setup_composer msg_info "Updating Snipe-IT" - $STD apt update + apt_update_safe $STD apt -y upgrade cp /opt/snipe-it-backup/.env /opt/snipe-it/.env cp -r /opt/snipe-it-backup/public/uploads/. /opt/snipe-it/public/uploads/ diff --git a/ct/speedtest-tracker.sh b/ct/speedtest-tracker.sh index 2057df5fb..e21d5c5d2 100644 --- a/ct/speedtest-tracker.sh +++ b/ct/speedtest-tracker.sh @@ -43,7 +43,7 @@ function update_script() { msg_ok "Stopped Service" msg_info "Updating Speedtest CLI" - $STD apt update + apt_update_safe $STD apt --only-upgrade install -y speedtest msg_ok "Updated Speedtest CLI" diff --git a/ct/sqlserver2022.sh b/ct/sqlserver2022.sh index 6dc46d413..43dd5766e 100644 --- a/ct/sqlserver2022.sh +++ b/ct/sqlserver2022.sh @@ -32,7 +32,7 @@ function update_script() { fi msg_info "Updating SQL Server 2022" rm -f /etc/profile.d/debuginfod.sh /etc/profile.d/debuginfod.csh - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated successfully!" exit diff --git a/ct/sqlserver2025.sh b/ct/sqlserver2025.sh index cf85c3a34..d18e272cf 100644 --- a/ct/sqlserver2025.sh +++ b/ct/sqlserver2025.sh @@ -32,7 +32,7 @@ function update_script() { fi msg_info "Updating SQL Server 2025" rm -f /etc/profile.d/debuginfod.sh /etc/profile.d/debuginfod.csh - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated successfully!" exit diff --git a/ct/squid.sh b/ct/squid.sh index ede24559a..c30b394ea 100644 --- a/ct/squid.sh +++ b/ct/squid.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating Squid" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated Squid" diff --git a/ct/step-ca.sh b/ct/step-ca.sh index 2a3e24f76..14ab1c326 100644 --- a/ct/step-ca.sh +++ b/ct/step-ca.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating step-ca and step-cli" - $STD apt update + apt_update_safe $STD apt upgrade -y step-ca step-cli # Patch for making $STD happy (/usr/bin/step is a symlink to /usr/bin/step-cli) diff --git a/ct/syncthing.sh b/ct/syncthing.sh index ba3e2aec1..35e85c142 100644 --- a/ct/syncthing.sh +++ b/ct/syncthing.sh @@ -41,7 +41,7 @@ update_deb_based() { fi msg_info "Updating Syncthing" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated successfully!" } diff --git a/ct/tasmoadmin.sh b/ct/tasmoadmin.sh index 28c3ebe03..adb7c5f6a 100644 --- a/ct/tasmoadmin.sh +++ b/ct/tasmoadmin.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating TasmoAdmin" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated TasmoAdmin" msg_ok "Updated successfully!" diff --git a/ct/tdarr.sh b/ct/tdarr.sh index ed2783c86..e7c5bae75 100644 --- a/ct/tdarr.sh +++ b/ct/tdarr.sh @@ -32,7 +32,7 @@ function update_script() { exit fi msg_info "Updating Tdarr" - $STD apt update + apt_update_safe $STD apt upgrade -y rm -rf /opt/tdarr/Tdarr_Updater cd /opt/tdarr diff --git a/ct/telegraf.sh b/ct/telegraf.sh index 0e58f7067..75ae2405b 100644 --- a/ct/telegraf.sh +++ b/ct/telegraf.sh @@ -36,7 +36,7 @@ function update_script() { msg_ok "Stopped Service" msg_info "Updating Telegraf" - $STD apt update + apt_update_safe $STD apt upgrade -y telegraf msg_ok "Updated Telegraf" diff --git a/ct/teleport.sh b/ct/teleport.sh index 586dbca53..b0cc6ae7e 100644 --- a/ct/teleport.sh +++ b/ct/teleport.sh @@ -33,7 +33,7 @@ function update_script() { fi msg_info "Updating Teleport" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated successfully!" exit diff --git a/ct/tor-snowflake.sh b/ct/tor-snowflake.sh index ddbb0620b..336f86b10 100644 --- a/ct/tor-snowflake.sh +++ b/ct/tor-snowflake.sh @@ -29,7 +29,7 @@ function update_script() { check_container_resources msg_info "Updating Container OS" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated Container OS" diff --git a/ct/transmission.sh b/ct/transmission.sh index 584a2c72d..71d09bb86 100644 --- a/ct/transmission.sh +++ b/ct/transmission.sh @@ -40,7 +40,7 @@ update_deb_based() { exit fi msg_info "Updating Transmission" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated Transmission" msg_ok "Updated successfully!" diff --git a/ct/twingate-connector.sh b/ct/twingate-connector.sh index a6a662c71..f65218456 100644 --- a/ct/twingate-connector.sh +++ b/ct/twingate-connector.sh @@ -33,7 +33,7 @@ function update_script() { fi msg_info "Updating Twingate Connector" - $STD apt update + apt_update_safe $STD apt install -y --only-upgrade twingate-connector $STD systemctl restart twingate-connector msg_ok "Updated successfully!" diff --git a/ct/ubuntu.sh b/ct/ubuntu.sh index 0c67247d8..7731cdb56 100644 --- a/ct/ubuntu.sh +++ b/ct/ubuntu.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - $STD apt-get update + apt_update_safe $STD apt-get -y upgrade msg_ok "Updated ${APP} LXC" msg_ok "Updated successfully!" diff --git a/ct/uhf.sh b/ct/uhf.sh index de6afaa26..4f4d24dd5 100644 --- a/ct/uhf.sh +++ b/ct/uhf.sh @@ -37,7 +37,7 @@ function update_script() { msg_ok "Stopped Service" msg_info "Updating LXC" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated LXC" diff --git a/ct/umbraco.sh b/ct/umbraco.sh index e47e35f1f..04c9919c6 100644 --- a/ct/umbraco.sh +++ b/ct/umbraco.sh @@ -30,7 +30,7 @@ function update_script() { exit fi msg_info "Updating LXC" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated LXC" diff --git a/ct/unbound.sh b/ct/unbound.sh index 87247d98f..af8f1b151 100644 --- a/ct/unbound.sh +++ b/ct/unbound.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating Unbound" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated Unbound" msg_ok "Updated successfully!" diff --git a/ct/urbackupserver.sh b/ct/urbackupserver.sh index e2e5b2c17..9d692fdc7 100644 --- a/ct/urbackupserver.sh +++ b/ct/urbackupserver.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating ${APP} LXC" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated successfully!" exit diff --git a/ct/valkey.sh b/ct/valkey.sh index 73645a22d..334ab2a58 100644 --- a/ct/valkey.sh +++ b/ct/valkey.sh @@ -39,7 +39,7 @@ update_deb_based() { exit fi msg_info "Updating Valkey LXC" - $STD apt update + apt_update_safe $STD apt -y upgrade msg_ok "Updated Valkey LXC" msg_ok "Updated successfully!" diff --git a/ct/wazuh.sh b/ct/wazuh.sh index 6982c159a..ae8968b3e 100644 --- a/ct/wazuh.sh +++ b/ct/wazuh.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating Wazuh LXC" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated Wazuh LXC" msg_ok "Updated successfully!" diff --git a/ct/wireguard.sh b/ct/wireguard.sh index 87d73055f..7b2554122 100644 --- a/ct/wireguard.sh +++ b/ct/wireguard.sh @@ -42,7 +42,7 @@ update_deb_based() { ensure_dependencies git msg_info "Updating LXC" - $STD apt update + apt_update_safe $STD apt upgrade -y if [[ -d /etc/wgdashboard ]]; then sleep 2 diff --git a/ct/yunohost.sh b/ct/yunohost.sh index ba293bb24..93d4170b2 100644 --- a/ct/yunohost.sh +++ b/ct/yunohost.sh @@ -31,7 +31,7 @@ function update_script() { exit fi msg_info "Updating OS" - $STD apt-get update + apt_update_safe $STD apt-get -y upgrade msg_ok "Updated OS" diff --git a/ct/zabbix.sh b/ct/zabbix.sh index 694276e82..49d17221f 100644 --- a/ct/zabbix.sh +++ b/ct/zabbix.sh @@ -85,7 +85,7 @@ function update_script() { curl -fsSL "$ZABBIX_DEB_URL" -o /tmp/"$ZABBIX_DEB_FILE" $STD dpkg -i /tmp/"$ZABBIX_DEB_FILE" rm -rf /tmp/zabbix-release_*.deb - $STD apt update + apt_update_safe $STD apt install --only-upgrade zabbix-server-pgsql zabbix-frontend-php php8.4-pgsql diff --git a/ct/zammad.sh b/ct/zammad.sh index 496ae7b76..94c48441d 100644 --- a/ct/zammad.sh +++ b/ct/zammad.sh @@ -36,7 +36,7 @@ function update_script() { msg_ok "Stopped Service" msg_info "Updating Zammad" - $STD apt update + apt_update_safe $STD apt-mark hold zammad $STD apt upgrade -y $STD apt-mark unhold zammad diff --git a/ct/zerotier-one.sh b/ct/zerotier-one.sh index 2aba1dc7d..8b676c9b6 100644 --- a/ct/zerotier-one.sh +++ b/ct/zerotier-one.sh @@ -37,7 +37,7 @@ function update_script() { msg_ok "Stopping Service" msg_info "Updating Zerotier-One" - $STD apt update + apt_update_safe $STD apt upgrade -y msg_ok "Updated Zerotier-One" diff --git a/install/cockpit-install.sh b/install/cockpit-install.sh index f29815d8d..b7a8885d9 100644 --- a/install/cockpit-install.sh +++ b/install/cockpit-install.sh @@ -25,7 +25,7 @@ Enabled: yes Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg EOF -$STD apt update +apt_update_safe $STD apt install -t ${CODENAME}-backports cockpit cracklib-runtime --no-install-recommends -y sed -i "s/root//g" /etc/cockpit/disallowed-users msg_ok "Installed Cockpit" diff --git a/install/dotnetaspwebapi-install.sh b/install/dotnetaspwebapi-install.sh index 3c1ac5aae..619efebb5 100644 --- a/install/dotnetaspwebapi-install.sh +++ b/install/dotnetaspwebapi-install.sh @@ -14,7 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get update +apt_update_safe $STD apt-get install -y \ ssh \ software-properties-common diff --git a/install/evcc-install.sh b/install/evcc-install.sh index 57e52e6b6..60cfcb393 100644 --- a/install/evcc-install.sh +++ b/install/evcc-install.sh @@ -21,7 +21,7 @@ setup_deb822_repo \ "https://dl.evcc.io/public/evcc/stable/deb/debian/" \ "$(get_os_info codename)" \ "main" -$STD apt update +apt_update_safe msg_ok "evcc Repository setup sucessfully" msg_info "Installing evcc" diff --git a/install/flaresolverr-install.sh b/install/flaresolverr-install.sh index 556427526..36edc1ab4 100644 --- a/install/flaresolverr-install.sh +++ b/install/flaresolverr-install.sh @@ -26,7 +26,7 @@ setup_deb822_repo \ "https://dl.google.com/linux/linux_signing_key.pub" \ "https://dl.google.com/linux/chrome/deb/" \ "stable" -$STD apt update +apt_update_safe $STD apt install -y google-chrome-stable # remove google-chrome.list added by google-chrome-stable if [ -f /etc/apt/sources.list.d/google-chrome.list ]; then diff --git a/install/frigate-install.sh b/install/frigate-install.sh index 081f9cbb0..fe92e6641 100644 --- a/install/frigate-install.sh +++ b/install/frigate-install.sh @@ -41,7 +41,7 @@ Components: main contrib Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg EOF mv /etc/apt/sources.list /etc/apt/sources.list.bak - $STD apt update + apt_update_safe fi msg_ok "Converted APT sources" @@ -128,7 +128,7 @@ if [[ "$(arch_resolve)" == "amd64" ]]; then cp -a /rootfs/. / rm -rf /rootfs rm -f /etc/apt/sources.list.d/intel-gpu-jammy.list /usr/share/keyrings/intel-graphics.gpg - $STD apt update + apt_update_safe ldconfig msg_ok "Built Intel Media Driver" fi diff --git a/install/globaleaks-install.sh b/install/globaleaks-install.sh index 4d865f433..8622eee50 100644 --- a/install/globaleaks-install.sh +++ b/install/globaleaks-install.sh @@ -17,7 +17,7 @@ DISTRO_CODENAME="$(awk -F= '/^VERSION_CODENAME=/{print $2}' /etc/os-release)" curl -fsSL https://deb.globaleaks.org/globaleaks.asc | gpg --dearmor -o /etc/apt/trusted.gpg.d/globaleaks.gpg echo "deb [signed-by=/etc/apt/trusted.gpg.d/globaleaks.gpg] https://deb.globaleaks.org $DISTRO_CODENAME/" >/etc/apt/sources.list.d/globaleaks.list echo 'APPARMOR_SANDBOXING=0' >/etc/default/globaleaks -$STD apt update +apt_update_safe $STD apt -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install globaleaks msg_ok "Setup GlobaLeaks" diff --git a/install/graylog-install.sh b/install/graylog-install.sh index d3f69edc3..e075ee788 100644 --- a/install/graylog-install.sh +++ b/install/graylog-install.sh @@ -19,7 +19,7 @@ msg_info "Setup Graylog Data Node" PASSWORD_SECRET=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c16) curl -fsSL "https://packages.graylog2.org/repo/packages/graylog-7.0-repository_latest.deb" -o "graylog-7.0-repository_latest.deb" $STD dpkg -i graylog-7.0-repository_latest.deb -$STD apt-get update +apt_update_safe $STD apt-get install graylog-datanode -y sed -i "s/password_secret =/password_secret = $PASSWORD_SECRET/g" /etc/graylog/datanode/datanode.conf systemctl enable -q --now graylog-datanode diff --git a/install/immich-install.sh b/install/immich-install.sh index 371555d1b..25a391cb7 100644 --- a/install/immich-install.sh +++ b/install/immich-install.sh @@ -125,7 +125,7 @@ msg_ok "Dependencies Installed" msg_info "Installing Mise" curl -fSs https://mise.jdx.dev/gpg-key.pub | tee /etc/apt/keyrings/mise-archive-keyring.pub 1>/dev/null echo "deb [signed-by=/etc/apt/keyrings/mise-archive-keyring.pub arch=$(arch_resolve)] https://mise.jdx.dev/deb stable main" >/etc/apt/sources.list.d/mise.list -$STD apt update +apt_update_safe $STD apt install -y mise msg_ok "Installed Mise" @@ -150,7 +150,7 @@ Package: * Pin:release a=testing Pin-Priority: 450 EOF -$STD apt update +apt_update_safe msg_ok "Configured Debian Testing repo" msg_info "Installing packages from Debian Testing repo" $STD apt install -t testing --no-install-recommends -yqq libmimalloc3 libde265-dev diff --git a/install/kiwix-install.sh b/install/kiwix-install.sh index 9208c6998..98d596ec5 100644 --- a/install/kiwix-install.sh +++ b/install/kiwix-install.sh @@ -19,7 +19,7 @@ msg_ok "Installed Dependencies" msg_info "Adding Kiwix PPA" add-apt-repository -y ppa:kiwixteam/release >>"$(get_active_logfile)" 2>&1 -$STD apt update +apt_update_safe msg_ok "Added Kiwix PPA" msg_info "Installing Kiwix-Tools" diff --git a/install/lldap-install.sh b/install/lldap-install.sh index fca73160e..1fffc6097 100644 --- a/install/lldap-install.sh +++ b/install/lldap-install.sh @@ -29,7 +29,7 @@ URIs: http://download.opensuse.org/repositories/home:/Masgalor:/LLDAP/${DISTRO}_ Suites: / Signed-By: /usr/share/keyrings/home_Masgalor_LLDAP.gpg EOF -$STD apt update +apt_update_safe $STD apt install -y lldap systemctl enable -q --now lldap msg_ok "Installed lldap" diff --git a/install/mattermost-install.sh b/install/mattermost-install.sh index f5ba870d3..3b698abd7 100644 --- a/install/mattermost-install.sh +++ b/install/mattermost-install.sh @@ -46,7 +46,7 @@ msg_ok "Set up PostgreSQL" msg_info "Installing Mattermost" curl -fsSL -o /usr/share/keyrings/mattermost-archive-keyring.gpg https://deb.packages.mattermost.com/pubkey.gpg sh -c 'curl -fsSL https://deb.packages.mattermost.com/repo-setup.sh | sudo bash -s mattermost' >/dev/null -$STD apt update +apt_update_safe $STD apt install -y mattermost $STD install -C -m 600 -o mattermost -g mattermost /opt/mattermost/config/config.defaults.json /opt/mattermost/config/config.json sed -i -e "/DataSource/c\ \"DataSource\": \"postgres://$DB_USER:$DB_PASS@localhost:5432/$DB_NAME?sslmode=disable&connect_timeout=10\"," \ diff --git a/install/medusa-install.sh b/install/medusa-install.sh index b2d901450..fc6429fbb 100644 --- a/install/medusa-install.sh +++ b/install/medusa-install.sh @@ -26,7 +26,7 @@ Suites: trixie Components: non-free non-free-firmware Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg EOF -$STD apt update +apt_update_safe $STD apt install -y unrar rm /etc/apt/sources.list.d/non-free.sources msg_ok "Installed Dependencies" diff --git a/install/minarca-install.sh b/install/minarca-install.sh index 876c2fa4a..8a63ee44c 100644 --- a/install/minarca-install.sh +++ b/install/minarca-install.sh @@ -30,7 +30,7 @@ Components: main Architectures: amd64 Signed-By: /usr/share/keyrings/minarca-keyring.gpg EOF -$STD apt update +apt_update_safe $STD apt install -y minarca-server msg_ok "Installed Minarca" diff --git a/install/motioneye-install.sh b/install/motioneye-install.sh index d3829d572..c1952e7c5 100644 --- a/install/motioneye-install.sh +++ b/install/motioneye-install.sh @@ -39,7 +39,7 @@ $STD apt install -y ffmpeg v4l-utils msg_ok "Installed FFmpeg" msg_info "Installing MotionEye" -$STD apt update +apt_update_safe $STD pip install git+https://github.com/motioneye-project/motioneye.git@dev mkdir -p /etc/motioneye chown -R root:root /etc/motioneye diff --git a/install/mylar3-install.sh b/install/mylar3-install.sh index 13f8ae69e..f7bd76dc7 100644 --- a/install/mylar3-install.sh +++ b/install/mylar3-install.sh @@ -21,7 +21,7 @@ Suites: trixie Components: non-free non-free-firmware Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg EOF -$STD apt update +apt_update_safe $STD apt install -y unrar msg_ok "Installed Dependencies" diff --git a/install/mysql-install.sh b/install/mysql-install.sh index 402033768..0dd98cce7 100644 --- a/install/mysql-install.sh +++ b/install/mysql-install.sh @@ -46,7 +46,7 @@ Components: ${RELEASE_REPO} Signed-By: /usr/share/keyrings/mysql.gpg EOF fi -$STD apt update +apt_update_safe export DEBIAN_FRONTEND=noninteractive $STD apt install -y \ mysql-community-client \ diff --git a/install/neo4j-install.sh b/install/neo4j-install.sh index 176c27b75..5ae0736fa 100644 --- a/install/neo4j-install.sh +++ b/install/neo4j-install.sh @@ -19,7 +19,7 @@ JAVA_VERSION="21" setup_java msg_info "Installing Neo4j (patience)" curl -fsSL "https://debian.neo4j.com/neotechnology.gpg.key" | gpg --dearmor -o /etc/apt/keyrings/neotechnology.gpg echo 'deb [signed-by=/etc/apt/keyrings/neotechnology.gpg] https://debian.neo4j.com stable latest' >/etc/apt/sources.list.d/neo4j.list -$STD apt update +apt_update_safe $STD apt install -y neo4j sed -i '/server.default_listen_address/s/^#//' /etc/neo4j/neo4j.conf systemctl enable -q --now neo4j diff --git a/install/ntopng-install.sh b/install/ntopng-install.sh index a5abf8f70..0c008f21f 100644 --- a/install/ntopng-install.sh +++ b/install/ntopng-install.sh @@ -24,7 +24,7 @@ bookworm | trixie) esac msg_info "Installing ntopng" -$STD apt update +apt_update_safe $STD apt install -y ntopng msg_ok "Installed ntopng" diff --git a/install/ollama-install.sh b/install/ollama-install.sh index d7174e887..3f61abafd 100644 --- a/install/ollama-install.sh +++ b/install/ollama-install.sh @@ -40,7 +40,7 @@ Suites: all Components: main Signed-By: /usr/share/keyrings/oneapi-archive-keyring.gpg EOF -$STD apt update +apt_update_safe msg_ok "Set up Intel® Repositories" msg_info "Installing Intel® Level Zero" diff --git a/install/omv-install.sh b/install/omv-install.sh index 427334463..a536fdd48 100644 --- a/install/omv-install.sh +++ b/install/omv-install.sh @@ -22,7 +22,7 @@ EOF export LANG=C.UTF-8 export DEBIAN_FRONTEND=noninteractive export APT_LISTCHANGES_FRONTEND=none -$STD apt update +apt_update_safe apt -y --auto-remove --show-upgraded --allow-downgrades --allow-change-held-packages --no-install-recommends --option DPkg::Options::="--force-confdef" --option DPkg::Options::="--force-confold" install openmediavault-keyring openmediavault &>/dev/null omv-confdbadm populate &>/dev/null msg_ok "Installed OpenMediaVault" diff --git a/install/onlyoffice-install.sh b/install/onlyoffice-install.sh index f547382e0..3460cffa0 100644 --- a/install/onlyoffice-install.sh +++ b/install/onlyoffice-install.sh @@ -54,7 +54,7 @@ Suites: squeeze Components: main Signed-By: /usr/share/keyrings/onlyoffice.gpg EOF - $STD apt update + apt_update_safe msg_ok "GPG Key Added" else msg_error "Failed to download or verify GPG key from $KEY_URL" diff --git a/install/opencloud-install.sh b/install/opencloud-install.sh index b6b13e644..34215b678 100644 --- a/install/opencloud-install.sh +++ b/install/opencloud-install.sh @@ -50,7 +50,7 @@ URIs: https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-deb Suites: ./ Signed-By: /etc/apt/keyrings/collaboraonline-release-keyring.gpg EOF -$STD apt-get update +apt_update_safe $STD apt-get install -y coolwsd code-brand systemctl stop coolwsd mkdir -p /etc/systemd/system/coolwsd.service.d diff --git a/install/openwebui-install.sh b/install/openwebui-install.sh index 13234820d..fd46db8ed 100644 --- a/install/openwebui-install.sh +++ b/install/openwebui-install.sh @@ -75,7 +75,7 @@ Suites: all Components: main Signed-By: /usr/share/keyrings/oneapi-archive-keyring.gpg EOF - $STD apt update + apt_update_safe msg_ok "Set up Intel® Repositories" msg_info "Installing Intel® Level Zero" diff --git a/install/openziti-controller-install.sh b/install/openziti-controller-install.sh index c045d893c..9af0bf877 100644 --- a/install/openziti-controller-install.sh +++ b/install/openziti-controller-install.sh @@ -23,7 +23,7 @@ Suites: debian Components: main Signed-By: /usr/share/keyrings/openziti.gpg EOF -$STD apt update +apt_update_safe $STD apt install -y openziti-controller openziti-console /etc/apt/sources.list.d/twingate.list -$STD apt-get update +apt_update_safe msg_ok "Setup Twingate Repository" msg_info "Setup Twingate Connector" diff --git a/install/valkey-install.sh b/install/valkey-install.sh index 872044960..c9ade3aec 100644 --- a/install/valkey-install.sh +++ b/install/valkey-install.sh @@ -15,7 +15,7 @@ update_os setup_deb_based() { msg_info "Installing Valkey" - $STD apt update + apt_update_safe $STD apt install -y valkey openssl sed -i 's/^bind .*/bind 0.0.0.0/' /etc/valkey/valkey.conf diff --git a/install/zabbix-install.sh b/install/zabbix-install.sh index 6ee5763a5..e4bf34731 100644 --- a/install/zabbix-install.sh +++ b/install/zabbix-install.sh @@ -42,7 +42,7 @@ fi curl -fsSL "$ZABBIX_DEB_URL" -o /tmp/"$ZABBIX_DEB_FILE" $STD dpkg -i /tmp/"$ZABBIX_DEB_FILE" -$STD apt update +apt_update_safe $STD apt install -y zabbix-server-pgsql zabbix-frontend-php php8.4-pgsql zabbix-apache-conf zabbix-sql-scripts if [[ "$ZABBIX_VERSION" == "7.0" ]]; then