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:08:06 -04:00
parent 27ef821a4f
commit b90d8c4f73
1 changed files with 1 additions and 1 deletions

View File

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