mirror of
https://git.icinga.com/packaging/rpm-icinga2.git
synced 2025-09-21 09:07:39 +02:00
lint: Fix mixed indention
This commit is contained in:
parent
bb75469bfa
commit
bd8782beec
44
icinga2.spec
44
icinga2.spec
@ -366,7 +366,7 @@ cd -
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
make install \
|
make install \
|
||||||
DESTDIR="%{buildroot}"
|
DESTDIR="%{buildroot}"
|
||||||
|
|
||||||
# install custom limits.conf for systemd
|
# install custom limits.conf for systemd
|
||||||
%if 0%{?configure_systemd_limits}
|
%if 0%{?configure_systemd_limits}
|
||||||
@ -436,10 +436,10 @@ install -D -m 0644 tools/syntax/nano/%{name}.nanorc %{buildroot}%{_datadir}/nano
|
|||||||
|
|
||||||
if [ ${1:-0} -eq 1 ]
|
if [ ${1:-0} -eq 1 ]
|
||||||
then
|
then
|
||||||
# initial installation, enable default features
|
# initial installation, enable default features
|
||||||
for feature in checker notification mainlog; do
|
for feature in checker notification mainlog; do
|
||||||
ln -sf ../features-available/${feature}.conf %{_sysconfdir}/%{name}/features-enabled/${feature}.conf
|
ln -sf ../features-available/${feature}.conf %{_sysconfdir}/%{name}/features-enabled/${feature}.conf
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
@ -455,10 +455,10 @@ exit 0
|
|||||||
|
|
||||||
if [ ${1:-0} -eq 1 ]
|
if [ ${1:-0} -eq 1 ]
|
||||||
then
|
then
|
||||||
# initial installation, enable default features
|
# initial installation, enable default features
|
||||||
for feature in checker notification mainlog; do
|
for feature in checker notification mainlog; do
|
||||||
ln -sf ../features-available/${feature}.conf %{_sysconfdir}/%{name}/features-enabled/${feature}.conf
|
ln -sf ../features-available/${feature}.conf %{_sysconfdir}/%{name}/features-enabled/${feature}.conf
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
@ -485,8 +485,8 @@ exit 0
|
|||||||
%systemd_preun %{name}.service
|
%systemd_preun %{name}.service
|
||||||
%else
|
%else
|
||||||
if [ "$1" = "0" ]; then
|
if [ "$1" = "0" ]; then
|
||||||
/sbin/service %{name} stop > /dev/null 2>&1 || :
|
/sbin/service %{name} stop > /dev/null 2>&1 || :
|
||||||
/sbin/chkconfig --del %{name} || :
|
/sbin/chkconfig --del %{name} || :
|
||||||
fi
|
fi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -512,7 +512,7 @@ exit 0
|
|||||||
%systemd_postun_with_restart %{name}.service
|
%systemd_postun_with_restart %{name}.service
|
||||||
%else
|
%else
|
||||||
if [ "$1" -ge "1" ]; then
|
if [ "$1" -ge "1" ]; then
|
||||||
/sbin/service %{name} condrestart >/dev/null 2>&1 || :
|
/sbin/service %{name} condrestart >/dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -520,8 +520,8 @@ fi
|
|||||||
# suse / rhel
|
# suse / rhel
|
||||||
|
|
||||||
if [ "$1" = "0" ]; then
|
if [ "$1" = "0" ]; then
|
||||||
# deinstallation of the package - remove enabled features
|
# deinstallation of the package - remove enabled features
|
||||||
rm -rf %{_sysconfdir}/%{name}/features-enabled
|
rm -rf %{_sysconfdir}/%{name}/features-enabled
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
@ -546,16 +546,16 @@ getent passwd %{icinga_user} >/dev/null || %{_sbindir}/useradd -c "icinga" -s /s
|
|||||||
%post ido-mysql
|
%post ido-mysql
|
||||||
if [ ${1:-0} -eq 1 ] && [ -e %{_sysconfdir}/%{name}/features-enabled/ido-mysql.conf ]
|
if [ ${1:-0} -eq 1 ] && [ -e %{_sysconfdir}/%{name}/features-enabled/ido-mysql.conf ]
|
||||||
then
|
then
|
||||||
# initial installation, enable ido-mysql feature
|
# initial installation, enable ido-mysql feature
|
||||||
ln -sf ../features-available/ido-mysql.conf %{_sysconfdir}/%{name}/features-enabled/ido-mysql.conf
|
ln -sf ../features-available/ido-mysql.conf %{_sysconfdir}/%{name}/features-enabled/ido-mysql.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%postun ido-mysql
|
%postun ido-mysql
|
||||||
if [ "$1" = "0" ]; then
|
if [ "$1" = "0" ]; then
|
||||||
# deinstallation of the package - remove feature
|
# deinstallation of the package - remove feature
|
||||||
rm -f %{_sysconfdir}/%{name}/features-enabled/ido-mysql.conf
|
rm -f %{_sysconfdir}/%{name}/features-enabled/ido-mysql.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
@ -563,16 +563,16 @@ exit 0
|
|||||||
%post ido-pgsql
|
%post ido-pgsql
|
||||||
if [ ${1:-0} -eq 1 ] && [ -e %{_sysconfdir}/%{name}/features-enabled/ido-pgsql.conf ]
|
if [ ${1:-0} -eq 1 ] && [ -e %{_sysconfdir}/%{name}/features-enabled/ido-pgsql.conf ]
|
||||||
then
|
then
|
||||||
# initial installation, enable ido-pgsql feature
|
# initial installation, enable ido-pgsql feature
|
||||||
ln -sf ../features-available/ido-pgsql.conf %{_sysconfdir}/%{name}/features-enabled/ido-pgsql.conf
|
ln -sf ../features-available/ido-pgsql.conf %{_sysconfdir}/%{name}/features-enabled/ido-pgsql.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%postun ido-pgsql
|
%postun ido-pgsql
|
||||||
if [ "$1" = "0" ]; then
|
if [ "$1" = "0" ]; then
|
||||||
# deinstallation of the package - remove feature
|
# deinstallation of the package - remove feature
|
||||||
rm -f %{_sysconfdir}/%{name}/features-enabled/ido-pgsql.conf
|
rm -f %{_sysconfdir}/%{name}/features-enabled/ido-pgsql.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user