Merge pull request #2674 from NiGhTTraX/development

Fix uninstalling lighttpd when it's not installed
This commit is contained in:
Mark Drobnak 2019-03-15 22:11:34 -04:00 committed by GitHub
commit b64fb578fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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