浏览代码

the install is an upgrade if the %post argument is greater than 1, not greater than or equal to 1

Rich Megginson 20 年之前
父节点
当前提交
41654ac0d6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ldapserver.spec.tmpl

+ 1 - 1
ldapserver.spec.tmpl

@@ -126,7 +126,7 @@ fi
 if [ -f $RPM_INSTALL_PREFIX/setup/console-ld-libpath.patch ] ; then
     patch -d $RPM_INSTALL_PREFIX -p0 < $RPM_INSTALL_PREFIX/setup/console-ld-libpath.patch
 fi
-if [ "$1" -ge 1 ] ; then
+if [ "$1" -gt 1 ] ; then
 # patch file to upgrade admin server from 1.0 to 1.0.1
     if [ -f $RPM_INSTALL_PREFIX/setup/adminserver10to101.patch ] ; then
         patch -d $RPM_INSTALL_PREFIX -p0 < $RPM_INSTALL_PREFIX/setup/adminserver10to101.patch