fix: comprehensive script audit - bug fixes and optimizations

- ct/invidious.sh: fix copy-paste bug (OxiCloud code in update block)
- install/invidious-install.sh: fix sed redirect, service filename mismatch
- ct/forgejo-runner.sh: fix binary download path, bump Debian to 13
- ct/authentik.sh: add -f flag to curl (fail on HTTP errors)
- ct/localagi.sh: add -f flag to curl, add installation check guard
- ct/ente.sh: fix broken install check (/var -> /opt/ente), apt-get -> apt
- ct/garmin-grafana.sh: add explicit tarball mode to fetch_and_deploy
- install/garmin-grafana-install.sh: fix local outside function, add tarball mode
- install/ente-install.sh: uncomment cleanup_lxc
- install/github-runner-install.sh: add missing , fix msg_info text
- ct/step-ca.sh: remove duplicate success message
- ct/devuan.sh, ct/ubuntu.sh: apt-get -> apt, remove duplicate msg_ok
This commit is contained in:
CanbiZ (MickLesk)
2026-03-23 15:26:04 +01:00
parent 8606f62a73
commit 53c1ee08fc
13 changed files with 38 additions and 35 deletions

View File

@@ -350,4 +350,4 @@ msg_ok "Created helper scripts"
motd_ssh
customize
#cleanup_lxc
cleanup_lxc

View File

@@ -54,7 +54,7 @@ msg_ok "Installed Grafana"
msg_info "Configuring Grafana"
GRAFANA_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-13)
local retries=0
retries=0
while ! grafana-cli admin reset-admin-password "${GRAFANA_PASS}" &>/dev/null; do
((retries++))
[[ $retries -ge 30 ]] && break
@@ -64,7 +64,7 @@ $STD grafana-cli plugins install marcusolsson-hourly-heatmap-panel
$STD systemctl restart grafana-server
msg_ok "Configured Grafana"
fetch_and_deploy_gh_release "garmin-grafana" "arpanghosh8453/garmin-grafana"
fetch_and_deploy_gh_release "garmin-grafana" "arpanghosh8453/garmin-grafana" "tarball"
msg_info "Configuring garmin-grafana"
mkdir -p /opt/garmin-grafana/.garminconnect

View File

@@ -12,8 +12,8 @@ network_check
update_os
msg_info "Install Dependencies"
apt install -y \
msg_info "Installing Dependencies"
$STD apt install -y \
git \
gh
msg_ok "Installed Dependencies"

View File

@@ -72,12 +72,11 @@ msg_ok "Migrated database"
msg_info "Configuring services"
sed -e 's|=invidious|=root|' \
-e 's|/home|/opt|' /opt/invidious.service /etc/systemd/system/invidious.service
-e 's|/home|/opt|' /opt/invidious.service >/etc/systemd/system/invidious.service
curl -fsSL https://github.com/iv-org/invidious-companion/raw/refs/heads/master/invidious-companion.service -o /etc/systemd/system/invidious-companion.service
sed -i -e "s|CHANGE_ME$|${SECRET_KEY}|" \
-e 's|=invidious$|=root|' \
-e 's|/home|/opt|' /etc/systemd/system/invidious_companion.service
systemctl daemon-reload
-e 's|/home|/opt|' /etc/systemd/system/invidious-companion.service
systemctl -q enable --now invidious invidious-companion
msg_ok "Configured services"