Use apt_update_safe instead of aborting on a failed apt update (#17462)

This commit is contained in:
CanbiZ (MickLesk)
2026-09-24 08:06:49 +02:00
committed by GitHub
parent ba1409a920
commit b855a5782a
151 changed files with 157 additions and 157 deletions
+1 -1
View File
@@ -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