From 93c769ca1320f3ef70c0bc84b83398e4b79b4ea6 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Thu, 12 Nov 2020 13:36:38 +0100 Subject: [PATCH] make install script more robust --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 14276a2..9f99672 100755 --- a/install.sh +++ b/install.sh @@ -337,19 +337,19 @@ then #lighttpd -tt -f /etc/lighttpd/lighttpd.conf && echo success || true if lighttpd -tt -f /etc/lighttpd/lighttpd.conf 2>&1 | grep mod_setenv >/dev/null then - rm /etc/lighttpd/conf-enabled/87-mod_setenv.conf + rm -f /etc/lighttpd/conf-enabled/87-mod_setenv.conf fi #lighttpd -tt -f /etc/lighttpd/lighttpd.conf && echo success || true if lighttpd -tt -f /etc/lighttpd/lighttpd.conf 2>&1 | grep stat-cache >/dev/null then - rm /etc/lighttpd/conf-enabled/47-stat-cache.conf + rm -f /etc/lighttpd/conf-enabled/47-stat-cache.conf fi #lighttpd -tt -f /etc/lighttpd/lighttpd.conf && echo success || true if lighttpd -tt -f /etc/lighttpd/lighttpd.conf 2>&1 | grep mod_setenv >/dev/null then - rm /etc/lighttpd/conf-enabled/87-mod_setenv.conf + rm -f /etc/lighttpd/conf-enabled/87-mod_setenv.conf fi #lighttpd -tt -f /etc/lighttpd/lighttpd.conf && echo success || true if ! lighttpd -tt -f /etc/lighttpd/lighttpd.conf &>/dev/null; then