1
0
Fork 0

spec: active_profile converted from full path to name in %post

This commit is contained in:
Jaroslav Škarvada 2012-10-29 15:13:55 +01:00
parent bb40c14cc7
commit 17564fdc19

View file

@ -70,6 +70,9 @@ if [ $1 -eq 1 ]; then
/usr/bin/systemctl daemon-reload &>/dev/null || :
fi
# convert active_profile from full path to name (if needed)
sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' /etc/tuned/active_profile
%preun
# package removal, not upgrade