[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: init scripts macros for openssh alternative



> Hmmm; do you have access to the spec file 
> that was used for the previous package ?

Yes. If the previous package is broken there is no way to ensure clean
upgrade, is there?


> what I do is:
> 
> %postun
> if [ $1 = 0 ]; then
> 	stop services and maybe do some cleanup
> fi
> 
> 
> iirc the arg to postun represents how many
> versions are still present of `package'
> after `this' erasure (but I'm really not sure;
> it's been working for me though).

Ah, yes, you are right. That's what the official OpenSSH-servers rpm is
doing.

Now is this documented anywere? Is Maximum RPM outdated?





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []