What | Removed | Added |
---|---|---|
Status | NEW | IN_PROGRESS |
CC | suse-beta@cboltz.de | |
Flags | needinfo?(suse-beta@cboltz.de) |
is the following fix ok or do you have a better idea ? Index: mailgraph.spec =================================================================== --- mailgraph.spec (revision 67f8d40003ffe3d4b5f5886bfc5e3a6c) +++ mailgraph.spec (working copy) @@ -113,6 +113,10 @@ %endif %pre +if [[ -f %{_sysconfdir}/sysconfig/%{name} ]] && + [[ -z $(awk -F'"' '/MAILGRAPH_PID/ {print $2}' %{_sysconfdir}/sysconfig/%{name}) ]]; then + mv %{_sysconfdir}/sysconfig/%{name} %{_sysconfdir}/sysconfig/%{name}.rpmsic +fi %if 0%{?has_systemd} %service_add_pre %{name}.service %endif