db_get fails if there is no debconf entry (for example if the

package is not yet configured)
This commit is contained in:
Isaac Connor 2015-07-23 15:07:32 -04:00
parent a6a33fa77f
commit 27ef821a4f
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ apache_remove() {
if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
# Deconfigure the web server
db_get zoneminder/webserver
db_get zoneminder/webserver || true
for webserver in $RET; do
webserver=${webserver%,}
# Currently we only support apache2