Skip to content

Commit

Permalink
make install script more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Nov 12, 2020
1 parent 9d1a08f commit 93c769c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 93c769c

Please sign in to comment.