diff --git a/gpm.spec b/gpm.spec index 7263476..5b5b4b4 100644 --- a/gpm.spec +++ b/gpm.spec @@ -106,7 +106,7 @@ rm -rf %{buildroot} %preun %ifnarch s390 s390x -if [ $1 -eq 0 ]; then +if [ "$1" = "0" ]; then /sbin/service gpm stop >/dev/null 2>&1 /sbin/chkconfig --del gpm fi @@ -115,7 +115,7 @@ fi %postun %ifnarch s390 s390x -if [ $1 -ge 1 ]; then +if [ "$1" -ge "1" ]; then /sbin/service gpm condrestart >/dev/null 2>&1 fi %endif