]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Test KEYRINGER_CHECK_VERSION also on keyringer_upgrade
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 29 Sep 2013 22:02:17 +0000 (19:02 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 29 Sep 2013 22:02:17 +0000 (19:02 -0300)
lib/keyringer/functions

index 37a33aa70d8df9159a11239652d1b9899efe427c..0da1548c19139f15b9428ae13696008205d4a740 100755 (executable)
@@ -281,6 +281,10 @@ function keyringer_upgrade {
   # Variable used to hold applied version upgrades
   local version="$VERSION"
 
+  if [ "$KEYRINGER_CHECK_VERSION" == "false" ]; then
+    return
+  fi
+
   # Upgrade 0.1
   if [ "$version" == "0" ]; then
     if [ ! -d "$RECIPIENTS" ]; then