From e44b8d383bd11ca2837f71c751cfdaea39c26d87 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Sun, 1 Nov 2020 21:51:57 +0100 Subject: [PATCH] only place warning if not already present --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 1930a25..ccfec9e 100755 --- a/install.sh +++ b/install.sh @@ -364,7 +364,7 @@ then echo "Disabling compress.cache-dir in /etc/lighttpd/lighttpd.conf due to often causing full disk issues when compression for filetype application/json is enabled." echo ----- sed -i -e 's$^compress.cache-dir.*$#\0 # disabled by tar1090, often causes full disk$' /etc/lighttpd/lighttpd.conf - else + elif ! grep -qs -e 'full disk when using tar1090' /etc/lighttpd/lighttpd.conf; then sed -i -e 's$^compress.cache-dir.*$# CAUTION, enabling cache-dir and filetype json will cause full disk when using tar1090\n\0$' /etc/lighttpd/lighttpd.conf fi fi