X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=debian%2Fdiogenes.config;fp=debian%2Fdiogenes.config;h=089b92e09d143612b4396999e5722be3dc038b19;hb=eb8500fddf388a8451f50a95b69d4639fc48d1d7;hp=c319a47ca1b83f7cec0bb5578f62223bcce0f46b;hpb=fda32171d119d52b371c8e91bb1d9d4d80edff66;p=diogenes.git diff --git a/debian/diogenes.config b/debian/diogenes.config index c319a47..089b92e 100644 --- a/debian/diogenes.config +++ b/debian/diogenes.config @@ -64,7 +64,13 @@ fi # source dbconfig-common shell library, and call the hook function if [ -f /usr/share/dbconfig-common/dpkg/config.mysql ]; then . /usr/share/dbconfig-common/dpkg/config.mysql + dbc_first_version=0.9.20-2 + dbc_oldversion="$2" + # check if we are migrating from a pre-dbc version + if [ "$dbc_oldversion" ] && [ "$dbc_first_version" ] && \ + dpkg --compare-versions "$dbc_first_version" gt "$dbc_oldversion"; then + echo "WE ARE MIGRATING" + fi dbc_go diogenes $@ fi -