Fix isworm script
This commit is contained in:
parent
697702867a
commit
600644aac5
12
bacula-scrips.patch
Normal file
12
bacula-scrips.patch
Normal file
@ -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
|
@ -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 <negativo17@gmail.com> - 13.0.1-4
|
||||
- Fix isworm script.
|
||||
|
||||
* Tue Nov 29 2022 Simone Caronni <negativo17@gmail.com> - 13.0.1-3
|
||||
- Require sdparm in storage subpackage. It's required for WORM tapes.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user