Skip to content

Commit

Permalink
Fix package builds after removal of icinga2-{en,dis}able-feature scripts
Browse files Browse the repository at this point in the history
refs #7250
  • Loading branch information
Michael Friedrich committed Oct 14, 2014
1 parent 9df1b6b commit 648f47f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
1 change: 0 additions & 1 deletion debian/icinga2-common.install
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ debian/tmp/etc/bash_completion.d
tools/syntax/* usr/share/icinga2-common/syntax
usr/bin/icinga2-build*
usr/bin/icinga2-sign-key
usr/sbin/icinga2-*-feature
usr/sbin/icinga2-list-objects
usr/sbin/icinga2-*-agent
usr/sbin/icinga2-list-agents
Expand Down
11 changes: 5 additions & 6 deletions icinga2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ exit 0
%postun ido-mysql
if [ "$1" = "0" ]; then
# deinstallation of the package - remove feature
test -x %{_sbindir}/icinga2 feature disable && %{_sbindir}/icinga2 feature disable ido-mysql
test -x %{_sbindir}/icinga2 && %{_sbindir}/icinga2 feature disable ido-mysql
fi

exit 0
Expand All @@ -408,7 +408,7 @@ exit 0
%postun ido-pgsql
if [ "$1" = "0" ]; then
# deinstallation of the package - remove feature
test -x %{_sbindir}/icinga2 feature disable && %{_sbindir}/icinga2 feature disable ido-pgsql
test -x %{_sbindir}/icinga2 && %{_sbindir}/icinga2 feature disable ido-pgsql
fi

exit 0
Expand All @@ -425,9 +425,9 @@ exit 0
%postun classicui-config
if [ "$1" = "0" ]; then
# deinstallation of the package - remove feature
test -x %{_sbindir}/icinga2 feature disable && %{_sbindir}/icinga2 feature disable statusdata
test -x %{_sbindir}/icinga2 feature disable && %{_sbindir}/icinga2 feature disable compatlog
test -x %{_sbindir}/icinga2 feature disable && %{_sbindir}/icinga2 feature disable command
test -x %{_sbindir}/icinga2 && %{_sbindir}/icinga2 feature disable statusdata
test -x %{_sbindir}/icinga2 && %{_sbindir}/icinga2 feature disable compatlog
test -x %{_sbindir}/icinga2 && %{_sbindir}/icinga2 feature disable command
fi

exit 0
Expand Down Expand Up @@ -483,7 +483,6 @@ exit 0
%{_datadir}/%{name}
%exclude %{_datadir}/%{name}/include
%{_mandir}/man8/%{name}.8.gz
%{_mandir}/man8/%{name}-feature enable.8.gz
%{_mandir}/man8/%{name}-build-ca.8.gz
%{_mandir}/man8/%{name}-build-key.8.gz
%{_mandir}/man8/%{name}-sign-key.8.gz
Expand Down
2 changes: 1 addition & 1 deletion test/jenkins/livestatus_socket.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ livestatus_path="/var/run/icinga2/cmd/livestatus"

if [ ! -e $livestatus_path ];
then
sudo icinga2-feature enable livestatus 1> /dev/null
sudo icinga2 feature enable livestatus 1> /dev/null
sudo service icinga2 restart 1> /dev/null
sleep 1

Expand Down
2 changes: 1 addition & 1 deletion test/jenkins/statusdata.test
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ objectscache_path="/var/cache/icinga2/objects.cache"

if [ ! -f $statusdata_path ];
then
sudo icinga2-feature enable statusdata 1> /dev/null
sudo icinga2 feature enable statusdata 1> /dev/null
sudo service icinga2 restart 1> /dev/null

n=0
Expand Down

0 comments on commit 648f47f

Please sign in to comment.