Let's not try to define to triggers
error: line 639: Trigger fired by the same package is already defined in spec file: %post libs It's not clear what rpm is complaining about here, but the two %triggerun's for the same package seem to be the most likely offender. I wanted to avoid applying to preset reset twice, alas.
This commit is contained in:
parent
c8f86d89ba
commit
84fad5038a
@ -623,11 +623,10 @@ if [ $1 -eq 0 ] ; then
|
||||
>/dev/null || :
|
||||
fi
|
||||
|
||||
%triggerun -- systemd < 246~rc2-2
|
||||
%triggerun -- systemd < 246.1-1
|
||||
# This is for upgrades from previous versions before systemd-resolved became the default.
|
||||
systemctl --no-reload preset systemd-resolved.service &>/dev/null || :
|
||||
|
||||
%triggerun -- systemd < 246.1-1
|
||||
if systemctl is-enabled systemd-resolved.service &>/dev/null; then
|
||||
grep -q 'Generated by NetworkManager' /etc/resolv.conf 2>/dev/null && \
|
||||
echo -e '/etc/resolv.conf was generated by NetworkManager.\nRemoving it to let systemd-resolved manage this file.' && \
|
||||
|
Loading…
Reference in New Issue
Block a user