New upstream version
authorSam Hartman <hartmans@debian.org>
Wed, 25 Mar 2015 18:30:32 +0000 (14:30 -0400)
committerSam Hartman <hartmans@debian.org>
Wed, 25 Mar 2015 18:30:32 +0000 (14:30 -0400)
* Remove database if schema  if is outdated

* Include updated schema to fix key expirations

debian/changelog
debian/moonshot-trust-router.postinst

index d556bee..27dcd9f 100644 (file)
@@ -1,3 +1,9 @@
+moonshot-trust-router (1.5.1~1) unstable; urgency=medium
+
+  * New Upstream version to fix key expiration schema/view
+
+ -- Sam Hartman <hartmans@debian.org>  Wed, 25 Mar 2015 14:30:01 -0400
+
 moonshot-trust-router (1.5~4) unstable; urgency=medium
 
   * Fix versioning because we want to fix the gss_delete_sec_context for wheezy
index 870aaac..b2cbbdb 100644 (file)
@@ -19,7 +19,11 @@ case "$1" in
     configure)
         if dpkg --compare-versions "$2" lt 1.2-2; then
            adduser --quiet --system --home /var/lib/trust_router --group --disabled-login trustrouter
-           fi
+       fi
+       if dpkg --compare-versions "$2" lt-nl 1.5.1 ; then
+           # Schema updated
+           rm -f /var/lib/trust_router/keys
+       fi
        su -s /bin/sh  -c "umask 027&&sqlite3 </usr/share/trust_router/schema.sql /var/lib/trust_router/keys" trustrouter ||true
     ;;