From: Thomas Goirand Date: Wed, 7 Aug 2013 15:42:05 +0000 (+0200) Subject: Only uses dbconfig-common in prerm if it exists X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=eb5b9f653aa9eba5d21e52f59276a1a6a88f4e8a;p=openstack-build%2Fneutron-build.git Only uses dbconfig-common in prerm if it exists Rewritten-From: ffb67e9b7d80ea5c029a90c7f8ac9b057022f291 --- diff --git a/xenial/debian/neutron-common.prerm b/xenial/debian/neutron-common.prerm index 97516608e..025ace98e 100644 --- a/xenial/debian/neutron-common.prerm +++ b/xenial/debian/neutron-common.prerm @@ -6,8 +6,10 @@ set -e db_get neutron/configure_db if [ "$RET" = "true" ]; then - . /usr/share/dbconfig-common/dpkg/prerm - dbc_go neutron-common $@ + if [ -e /usr/share/dbconfig-common/dpkg/prerm ] ; then + . /usr/share/dbconfig-common/dpkg/prerm + dbc_go neutron-common $@ + fi fi #DEBHELPER#