systemctl daemon-reload
if [ $1 = 1 ]; then
# installation
- systemctl start security-manager.service
%{_datadir}/security-manager/db/update.sh
+ systemctl start security-manager.socket
+ systemctl start security-manager.service
fi
if [ $1 = 2 ]; then
# update
+ systemctl stop security-manager.socket
+ systemctl stop security-manager.service
%{_bindir}/security-manager-migration
- systemctl restart security-manager.service
%{_datadir}/security-manager/db/update.sh
+ systemctl start security-manager.socket
+ systemctl start security-manager.service
fi
chsmack -a System %{TZ_SYS_DB}/.security-manager.db