]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Only uses dbconfig-common in prerm if it exists
authorThomas Goirand <thomas@goirand.fr>
Wed, 7 Aug 2013 15:42:05 +0000 (17:42 +0200)
committerThomas Goirand <thomas@goirand.fr>
Wed, 7 Aug 2013 15:42:05 +0000 (17:42 +0200)
Rewritten-From: ffb67e9b7d80ea5c029a90c7f8ac9b057022f291

xenial/debian/neutron-common.prerm

index 97516608e93a3c7254d49d88ade85969dae387ff..025ace98e73fa096aa9c6ea70e8f2b9f5a312f38 100644 (file)
@@ -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#