From 600644aac561d51f23beff724fc9ddf728846658 Mon Sep 17 00:00:00 2001 From: Simone Caronni Date: Nov 29 2022 10:07:46 +0000 Subject: Fix isworm script --- diff --git a/bacula-scrips.patch b/bacula-scrips.patch new file mode 100644 index 0000000..e008cf7 --- /dev/null +++ b/bacula-scrips.patch @@ -0,0 +1,12 @@ +diff -Naur bacula-13.0.1.old/scripts/isworm bacula-13.0.1/scripts/isworm +--- bacula-13.0.1.old/scripts/isworm 2022-08-05 17:13:35.000000000 +0200 ++++ bacula-13.0.1/scripts/isworm 2022-11-29 11:04:03.313337376 +0100 +@@ -46,7 +46,7 @@ + # but it does not work for mhvtl. Comment out the next 5 lines + # and the code that follows will detect correctly on mhtvl. + # +-worm=`$sdparm --page=0x1D -f $1 |grep " *WORMM"|cut -b12-16|sed "s:^ *::"` ++worm=`$sdparm --page=0x1D -f $1 |grep "WORMM"|cut -b12-16|sed "s:^ *::"` + if [ $? = 0 ] ; then + echo $worm + exit 0 diff --git a/bacula.spec b/bacula.spec index 5e4c05b..4f2b7bb 100644 --- a/bacula.spec +++ b/bacula.spec @@ -3,7 +3,7 @@ Name: bacula Version: 13.0.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Cross platform network backup for Linux, Unix, Mac and Windows # See LICENSE for details License: AGPLv3 with exceptions @@ -41,6 +41,7 @@ Patch8: %{name}-docker-plugin.patch # required by the daemons. # http://bugs.bacula.org/view.php?id=2084 Patch9: %{name}-autoconf.patch +Patch10: %{name}-scripts.patch BuildRequires: desktop-file-utils BuildRequires: perl-generators @@ -641,6 +642,9 @@ exit 0 %{_libdir}/nagios/plugins/check_bacula %changelog +* Tue Nov 29 2022 Simone Caronni - 13.0.1-4 +- Fix isworm script. + * Tue Nov 29 2022 Simone Caronni - 13.0.1-3 - Require sdparm in storage subpackage. It's required for WORM tapes.