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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user