Fix uninstalling lighttpd when it's not installed

Signed-off-by: Andrei Picus <NiGhTTraX@users.noreply.github.com>
This commit is contained in:
Andrei Picus 2019-03-15 14:47:41 +01:00
parent ffcb173a7f
commit e9e92368b0

View file

@ -131,8 +131,7 @@ removeNoPurge() {
echo -e " ${TICK} Removed /etc/cron.d/pihole" echo -e " ${TICK} Removed /etc/cron.d/pihole"
fi fi
package_check lighttpd > /dev/null if package_check lighttpd > /dev/null; then
if [[ $? -eq 1 ]]; then
${SUDO} rm -rf /etc/lighttpd/ &> /dev/null ${SUDO} rm -rf /etc/lighttpd/ &> /dev/null
echo -e " ${TICK} Removed lighttpd" echo -e " ${TICK} Removed lighttpd"
else else