From 49cf27b3d618854272b0b1c044c391a60fc5a32b Mon Sep 17 00:00:00 2001 From: Pi-Farm Date: Tue, 24 Feb 2026 23:25:21 +0100 Subject: [PATCH] fix syntax and format --- root/defaults/stats | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/root/defaults/stats b/root/defaults/stats index 19296f4..e7788e6 100755 --- a/root/defaults/stats +++ b/root/defaults/stats @@ -4,31 +4,31 @@ output="/app/www/.stats" nic="eth0" generate_index() { - cat <<-EOF - - - - - - - Alpine Linux mirror statistics - - - - - - -
summaryhours
days
months
- - - EOF +cat < + + + + + + Alpine Linux mirror statistics + + + + + + +
summaryhours
days
months
+ + +EOF } -if [ ! -f "$output"/index.html ]; then - mkdir -p $output - generate_index > "$output"/index.html +if [ ! -f "$output/index.html" ]; then + mkdir -p "$output" + generate_index > "$output/index.html" fi for type in hours days months summary hsummary vsummary; do - vnstati --${type} -i $nic -o $output/${type}.png + vnstati --${type} -i "$nic" -o "$output/${type}.png" done \ No newline at end of file