Fix postupgrade reconfiguration bug.
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Thu, 23 Apr 2009 12:17:00 +0000 (14:17 +0200)
committerValentin Vidic <Valentin.Vidic@CARNet.hr>
Thu, 23 Apr 2009 12:17:00 +0000 (14:17 +0200)
src/functions.sh

index 8e09d21..6d192dd 100644 (file)
@@ -763,7 +763,7 @@ restore_config () {
   # force reconfiguration at the end if package is not upgraded automatically
   if [ "$config_changed" -a "$cn_package" ]; then
      cn_version=$( dpkg -s "$cn_package" | awk '/^Version:/ {print $2}' )
-     post_upgrade "pkg $cn_package eq $cn_version && dpkg-reconfigure $cn_package"
+     post_upgrade "pkg $cn_package gt $cn_version || dpkg-reconfigure $cn_package"
   fi
 }