From eb9bff22c3f84138f07823ecee5ca0a2eec0b469 Mon Sep 17 00:00:00 2001 From: Sam Heinz <54530346+asylumexp@users.noreply.github.com> Date: Fri, 28 Jun 2024 10:25:08 +1000 Subject: [PATCH] Fix Scrutiny service start failure (#3278) --- install/scrutiny-install.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/install/scrutiny-install.sh b/install/scrutiny-install.sh index d155854b..068ff84f 100644 --- a/install/scrutiny-install.sh +++ b/install/scrutiny-install.sh @@ -21,9 +21,23 @@ $STD apt-get install -y \ curl \ smartmontools \ make \ - mc + mc \ + lsb-base \ + lsb-release \ + gnupg2 msg_ok "Installed Dependencies" +msg_info "Setting up InfluxDB Repository" +wget -qO- https://repos.influxdata.com/influxdata-archive_compat.key | gpg --dearmor > /etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg +echo "deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main" > /etc/apt/sources.list.d/influxdata.list +msg_ok "Set up InfluxDB Repository" + +msg_info "Installing InfluxDB" +$STD apt-get update +$STD apt-get install -y influxdb2 +systemctl enable -q --now influxdb +msg_ok "Installed InfluxDB" + msg_info "Installing Scrutiny WebApp" mkdir -p /opt/scrutiny/{config,web,bin} RELEASE=$(curl -s https://api.github.com/repos/analogj/scrutiny/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')