spec: active_profile converted from full path to name in %post
This commit is contained in:
parent
bb40c14cc7
commit
17564fdc19
1 changed files with 3 additions and 0 deletions
|
|
@ -70,6 +70,9 @@ if [ $1 -eq 1 ]; then
|
||||||
/usr/bin/systemctl daemon-reload &>/dev/null || :
|
/usr/bin/systemctl daemon-reload &>/dev/null || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# convert active_profile from full path to name (if needed)
|
||||||
|
sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' /etc/tuned/active_profile
|
||||||
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
# package removal, not upgrade
|
# package removal, not upgrade
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue