Skip to content

Commit

Permalink
rpm: fix fg: no job control
Browse files Browse the repository at this point in the history
using an undefined macro trys to run literal %{insserv_cleanup} as shell command which results
in the errors like

    /var/tmp/rpm-tmp.1P1HM5: line 12: fg: no job control
  • Loading branch information
sni committed Nov 30, 2022
1 parent a807cb0 commit 5e1adf9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion naemon-core.spec
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ case "$*" in
%{_localstatedir}/log/naemon/naemon.log \
%{_localstatedir}/log/naemon/archives
rm -rf /var/run/naemon
%{insserv_cleanup}
%if 0%{?insserv_cleanup}
%{insserv_cleanup}
%endif
chkconfig --del naemon >/dev/null 2>&1 || :
systemctl try-restart naemon.service >/dev/null 2>&1 || :
rm -rf %{_libdir}/naemon/.local
Expand Down

0 comments on commit 5e1adf9

Please sign in to comment.