Database detection for upgrades
This commit is contained in:
parent
9b2d74d91b
commit
ddc6de99ed
14
bacula.spec
14
bacula.spec
@ -472,6 +472,18 @@ exit 0
|
|||||||
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-mysql.so 50
|
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-mysql.so 50
|
||||||
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-sqlite3.so 40
|
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-sqlite3.so 40
|
||||||
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-postgresql.so 60
|
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-postgresql.so 60
|
||||||
|
# Fix for automatic selection of backends during upgrades
|
||||||
|
if readlink /etc/alternatives/libbaccats.so | grep --silent mysql || \
|
||||||
|
readlink /etc/alternatives/bacula-dir | grep --silent mysql || \
|
||||||
|
readlink /etc/alternatives/bacula-sd | grep --silent mysql; then
|
||||||
|
/usr/sbin/alternatives --set libbaccats.so %{_libdir}/libbaccats-mysql.so
|
||||||
|
elif readlink /etc/alternatives/libbaccats.so | grep --silent sqlite || \
|
||||||
|
readlink /etc/alternatives/bacula-dir | grep --silent sqlite || \
|
||||||
|
readlink /etc/alternatives/bacula-sd | grep --silent sqlite; then
|
||||||
|
/usr/sbin/alternatives --set libbaccats.so %{_libdir}/libbaccats-sqlite3.so
|
||||||
|
else
|
||||||
|
/usr/sbin/alternatives --set libbaccats.so %{_libdir}/libbaccats-postgresql.so
|
||||||
|
fi
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
|
|
||||||
@ -834,6 +846,8 @@ fi
|
|||||||
* Mon Jun 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.8-1
|
* Mon Jun 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.8-1
|
||||||
- Update to 5.2.8.
|
- Update to 5.2.8.
|
||||||
- Removed upstram xattr patch.
|
- Removed upstram xattr patch.
|
||||||
|
- Added database backend detection to bacula-libs-sql for upgrades from
|
||||||
|
<= 5.0.3-28-fc16 and 5.2.6-1.fc17.
|
||||||
|
|
||||||
* Fri Jun 08 2012 Simone Caronni <negativo17@gmail.com> - 5.2.7-4
|
* Fri Jun 08 2012 Simone Caronni <negativo17@gmail.com> - 5.2.7-4
|
||||||
- Make a note about mt-st and mtx (bz#829888).
|
- Make a note about mt-st and mtx (bz#829888).
|
||||||
|
Loading…
Reference in New Issue
Block a user