From b0c40476fd13cfd08f987aab062a0254779d7cd5 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Sun, 19 Sep 2021 15:43:08 +0200 Subject: [PATCH] clean up broken symlinks in conf-enabled --- install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install.sh b/install.sh index 12c6714..c21fe0b 100755 --- a/install.sh +++ b/install.sh @@ -324,6 +324,8 @@ do cp nginx.conf "$ipath/nginx-$service.conf" if [[ $lighttpd == yes ]]; then + # clean up broken symlinks in conf-enabled ... + for link in /etc/lighttpd/conf-enabled/*; do file "$link" | grep -qs "broken symbolic link" && rm -f "$link"; done if [[ "$otherport" != "done" ]]; then cp 95-tar1090-otherport.conf /etc/lighttpd/conf-available/ ln -f -s /etc/lighttpd/conf-available/95-tar1090-otherport.conf /etc/lighttpd/conf-enabled/95-tar1090-otherport.conf