]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
One more time, fix RPM upgrades...
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Sat, 4 Feb 2006 15:57:39 +0000 (15:57 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Sat, 4 Feb 2006 15:57:39 +0000 (15:57 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@5072 7a7537e8-13f0-0310-91df-b6672ffda945

packaging/cups.spec.in

index aedfcf4204d56410012082ffa1ef8c56f0943738..d9a8898d4eb83667d86847fd181030854d650b51 100644 (file)
@@ -99,6 +99,7 @@ make BUILDROOT=$RPM_BUILD_ROOT install
 
 # Restart cupsd if we are upgrading...
 if test $1 -gt 1; then
+       /sbin/service cups stop
        /sbin/service cups start
 fi
 
@@ -106,7 +107,6 @@ fi
 /sbin/ldconfig
 
 %preun
-
 if test $1 = 0; then
        /sbin/service cups stop
        /sbin/chkconfig --del cups
@@ -114,7 +114,8 @@ fi
 
 %postun
 if test $1 -ge 1; then
-       /sbin/service restart
+       /sbin/service stop
+       /sbin/service start
 fi
 
 %postun libs