[Scrutiny] Add InfluxDB to script

This commit is contained in:
Sam Heinz
2024-06-28 09:12:00 +10:00
parent f55b438d43
commit 88d855dee2

View File

@@ -23,9 +23,22 @@ $STD apt-get install -y \
make \
mc \
wget \
openssh-server
openssh-server \
lsb-base \
gnupg2
msg_ok "Installed Dependencies"
msg_info "Setting up InfluxDB Repository"
wget -q https://repos.influxdata.com/influxdata-archive_compat.key
cat influxdata-archive_compat.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg > /dev/null
sh -c '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 install -y influxdb2
$STD systemctl enable --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) }')