From 778206e94bec853345ef04e936aba33ba9573c9e Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 27 Jun 2021 09:47:55 +0200 Subject: add config file --- print-status-html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'print-status-html') diff --git a/print-status-html b/print-status-html index 107647c..c82bfa0 100755 --- a/print-status-html +++ b/print-status-html @@ -1,6 +1,6 @@ #!/bin/bash -watch_dirs=('/data/raid/harti') +. /etc/print-status.conf { cat < EOF - if [ -f /srv/http/tmp/index.html ]; then + if [ -f "${http_dir}/index.html" ]; then cat < NameFortschrittbisherige Größe EOF - OUTPUT=/srv/http/tmp/index.html backup-progress \ + OUTPUT="${http_dir}/index.html" backup-progress \ | tr -d '()' \ | awk '{print "" $1 "" $2 " " $3 "" $4 " " $5 ""}' @@ -181,8 +181,8 @@ EOF EOF } | \ - if mountpoint -q /srv/http/tmp; then - sponge /srv/http/tmp/index.html + if mountpoint -q "${http_dir}"; then + sponge "${http_dir}/index.html" else cat fi -- cgit v1.2.3-54-g00ecf