mirror of https://github.com/Icinga/icinga2.git
Fix package builds after removal of icinga2-{en,dis}able-feature scripts
refs #7250
This commit is contained in:
parent
9df1b6bc1c
commit
648f47f931
|
@ -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
|
||||
|
|
11
icinga2.spec
11
icinga2.spec
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue