Re: Display a message on the console while upgrading a package

2021-03-31 Thread Vít Ondruch
I won't comment on if this is good or bad idea, but have you tried to use `%{echo:...}` [1]? Vít [1] https://rpm.org/user_doc/macros.html Dne 30. 03. 21 v 19:11 Robert-André Mauchin napsal(a): Hello, Following a change in the config file of a program, I'd like to display a message to my

Re: Display a message on the console while upgrading a package

2021-03-30 Thread Martin Kolman
On Tue, 2021-03-30 at 19:35 +, Zbigniew Jędrzejewski-Szmek wrote: > On Tue, Mar 30, 2021 at 06:54:25PM +, Gary Buhrmaster wrote: > > On Tue, Mar 30, 2021 at 6:18 PM Zbigniew Jędrzejewski-Szmek > > wrote: > > > > > There is no good way to do this. > > > > This is one of those cases where

Re: Display a message on the console while upgrading a package

2021-03-30 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Mar 30, 2021 at 06:54:25PM +, Gary Buhrmaster wrote: > On Tue, Mar 30, 2021 at 6:18 PM Zbigniew Jędrzejewski-Szmek > wrote: > > > There is no good way to do this. > > This is one of those cases where I occasionally > miss a mainframe fix update feature to prevent > certain bad automa

Re: Display a message on the console while upgrading a package

2021-03-30 Thread Adam Williamson
On Tue, 2021-03-30 at 19:11 +0200, Robert-André Mauchin wrote: > Hello, > > Following a change in the config file of a program, I'd like to display > a message to my users to indicate they need to update the config file > with the new one. I try "echo" in the update scriptlet: > > %postun > if

Re: Display a message on the console while upgrading a package

2021-03-30 Thread Gary Buhrmaster
On Tue, Mar 30, 2021 at 6:18 PM Zbigniew Jędrzejewski-Szmek wrote: > There is no good way to do this. This is one of those cases where I occasionally miss a mainframe fix update feature to prevent certain bad automated results. In SMP/E, there was the concept of HOLD's for a fix. There were a

Re: Display a message on the console while upgrading a package

2021-03-30 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Mar 30, 2021 at 07:11:16PM +0200, Robert-André Mauchin wrote: > Hello, > > Following a change in the config file of a program, I'd like to > display a message to my users to indicate they need to update the > config file with the new one. I try "echo" in the update scriptlet: > > %postun

Re: Display a message on the console while upgrading a package

2021-03-30 Thread Robert Marcano via devel
On 3/30/21 1:17 PM, Robert Marcano wrote: On 3/30/21 1:11 PM, Robert-André Mauchin wrote: Hello, Following a change in the config file of a program, I'd like to display a message to my users to indicate they need to update the config file with the new one. I try "echo" in the update scriptlet

Re: Display a message on the console while upgrading a package

2021-03-30 Thread Robert Marcano via devel
On 3/30/21 1:11 PM, Robert-André Mauchin wrote: Hello, Following a change in the config file of a program, I'd like to display a message to my users to indicate they need to update the config file with the new one. I try "echo" in the update scriptlet: %postun if [ "$1" -ge "1" ] ; then # Up

Display a message on the console while upgrading a package

2021-03-30 Thread Robert-André Mauchin
Hello, Following a change in the config file of a program, I'd like to display a message to my users to indicate they need to update the config file with the new one. I try "echo" in the update scriptlet: %postun if [ "$1" -ge "1" ] ; then # Upgrade dnscrypt-proxy -service install --config