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 [ "$1" -ge "1" ] ; then # Upgrade
>    dnscrypt-proxy -service install --config 
> %{_sysconfdir}/dnscrypt-proxy/dnscrypt-proxy.toml
>    echo 'Since version 2.0.45, some of the configuration files have been 
> renamed.
>    Please merge your config to 
> /etc/dnscrypt-proxy/dnscrypt-proxy.toml.rpmnew then
>    replace dnscrypt-proxy.toml with that file.
>    Read /usr/share/doc/dnscrypt-proxy/ChangeLog to merge files accordingly.'
> fi
> 
> But it doesn't work as expected. Is there a way to transmit that message 
> to my users?

Besides putting it in the update description, no.

You cannot assume that updates are done attended, or done from a
console. What if they're using dnf-automatic? What if they're using a
graphical application which doesn't display console output?
-- 
Adam Williamson
Fedora QA
IRC: adamw | Twitter: adamw_ha
https://www.happyassassin.net


_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to