Compare commits

...

4 Commits

Author SHA1 Message Date
Sam Heinz aa24bb723d Update scrutiny-install.sh 2024-06-28 10:22:54 +10:00
Sam Heinz 895f4491b5 Update scrutiny-install.sh 2024-06-28 10:12:24 +10:00
Sam Heinz b11d998236 Update scrutiny-install.sh 2024-06-28 09:31:39 +10:00
Sam Heinz 1439e21334 Fix Scrutiny service failure
It fails to start because it can't access an InfluxDB instance, so just added one.
2024-06-28 09:29:59 +10:00
+15 -1
View File
@@ -21,9 +21,23 @@ $STD apt-get install -y \
curl \ curl \
smartmontools \ smartmontools \
make \ make \
mc mc \
lsb-base \
lsb-release \
gnupg2
msg_ok "Installed Dependencies" 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" msg_info "Installing Scrutiny WebApp"
mkdir -p /opt/scrutiny/{config,web,bin} 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) }') RELEASE=$(curl -s https://api.github.com/repos/analogj/scrutiny/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')