Probable fix for BZ 458432.
This commit is contained in:
parent
26f94f4df3
commit
e45f06fbfb
28
bacula.spec
28
bacula.spec
@ -9,7 +9,7 @@
|
|||||||
Summary: Cross platform network backup for Linux, Unix, Mac and Windows
|
Summary: Cross platform network backup for Linux, Unix, Mac and Windows
|
||||||
Name: bacula
|
Name: bacula
|
||||||
Version: 2.4.2
|
Version: 2.4.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
# See LICENSE for details
|
# See LICENSE for details
|
||||||
License: GPLv2 with exceptions
|
License: GPLv2 with exceptions
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
@ -620,16 +620,21 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
|
|
||||||
%preun director-mysql
|
%preun director-mysql
|
||||||
|
if [ "$1" = 0 ]; then
|
||||||
/usr/sbin/alternatives --remove bacula-dir /usr/sbin/bacula-dir.mysql
|
/usr/sbin/alternatives --remove bacula-dir /usr/sbin/bacula-dir.mysql
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
%preun director-sqlite
|
%preun director-sqlite
|
||||||
|
if [ "$1" = 0 ]; then
|
||||||
/usr/sbin/alternatives --remove bacula-dir /usr/sbin/bacula-dir.sqlite
|
/usr/sbin/alternatives --remove bacula-dir /usr/sbin/bacula-dir.sqlite
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
%preun director-postgresql
|
%preun director-postgresql
|
||||||
|
if [ "$1" = 0 ]; then
|
||||||
/usr/sbin/alternatives --remove bacula-dir /usr/sbin/bacula-dir.postgresql
|
/usr/sbin/alternatives --remove bacula-dir /usr/sbin/bacula-dir.postgresql
|
||||||
|
fi
|
||||||
|
|
||||||
%pre common
|
%pre common
|
||||||
/usr/sbin/fedora-groupadd 33 -r bacula &>/dev/null || :
|
/usr/sbin/fedora-groupadd 33 -r bacula &>/dev/null || :
|
||||||
@ -658,23 +663,26 @@ test "$1" != 0 || /usr/sbin/fedora-groupdel bacula &>/dev/null || :
|
|||||||
|
|
||||||
|
|
||||||
%preun storage-mysql
|
%preun storage-mysql
|
||||||
|
if [ "$1" = 0 ]; then
|
||||||
/usr/sbin/alternatives --remove bacula-sd /usr/sbin/bcopy.mysql
|
/usr/sbin/alternatives --remove bacula-sd /usr/sbin/bcopy.mysql
|
||||||
|
fi
|
||||||
|
|
||||||
%preun storage-sqlite
|
%preun storage-sqlite
|
||||||
|
if [ "$1" = 0 ]; then
|
||||||
/usr/sbin/alternatives --remove bacula-sd /usr/sbin/bcopy.sqlite
|
/usr/sbin/alternatives --remove bacula-sd /usr/sbin/bcopy.sqlite
|
||||||
|
fi
|
||||||
|
|
||||||
%preun storage-postgresql
|
%preun storage-postgresql
|
||||||
|
if [ "$1" = 0 ]; then
|
||||||
/usr/sbin/alternatives --remove bacula-sd /usr/sbin/bcopy.postgresql
|
/usr/sbin/alternatives --remove bacula-sd /usr/sbin/bcopy.postgresql
|
||||||
|
fi
|
||||||
|
|
||||||
%post client
|
%post client
|
||||||
/sbin/chkconfig --add bacula-fd
|
/sbin/chkconfig --add bacula-fd
|
||||||
|
|
||||||
|
|
||||||
%preun client
|
%preun client
|
||||||
if [ $1 = 0 ]; then
|
if [ "$1" = 0 ]; then
|
||||||
/sbin/service bacula-fd stop >/dev/null 2>&1 || :
|
/sbin/service bacula-fd stop >/dev/null 2>&1 || :
|
||||||
/sbin/chkconfig --del bacula-fd
|
/sbin/chkconfig --del bacula-fd
|
||||||
fi
|
fi
|
||||||
@ -691,7 +699,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%preun director-common
|
%preun director-common
|
||||||
if [ $1 = 0 ]; then
|
if [ "$1" = 0 ]; then
|
||||||
/sbin/service bacula-dir stop >/dev/null 2>&1 || :
|
/sbin/service bacula-dir stop >/dev/null 2>&1 || :
|
||||||
/sbin/chkconfig --del bacula-dir
|
/sbin/chkconfig --del bacula-dir
|
||||||
fi
|
fi
|
||||||
@ -708,7 +716,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%preun storage-common
|
%preun storage-common
|
||||||
if [ $1 = 0 ]; then
|
if [ "$1" = 0 ]; then
|
||||||
/sbin/service bacula-sd stop >/dev/null 2>&1 || :
|
/sbin/service bacula-sd stop >/dev/null 2>&1 || :
|
||||||
/sbin/chkconfig --del bacula-sd
|
/sbin/chkconfig --del bacula-sd
|
||||||
fi
|
fi
|
||||||
@ -922,6 +930,10 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 09 2008 Jon Ciesla <limb@jcomserv.net> - 2.4.2-2
|
||||||
|
- Logrotate fix. BZ 457894.
|
||||||
|
- Alternatives fix. BZ 458432.
|
||||||
|
|
||||||
* Thu Jul 31 2008 Jon Ciesla <limb@jcomserv.net> - 2.4.2-1
|
* Thu Jul 31 2008 Jon Ciesla <limb@jcomserv.net> - 2.4.2-1
|
||||||
- Update to 2.4.2.
|
- Update to 2.4.2.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user