diff --git a/bacula/templates/device.conf.erb b/bacula/templates/device.conf.erb index eec5b4f..631caf0 100644 --- a/bacula/templates/device.conf.erb +++ b/bacula/templates/device.conf.erb @@ -7,6 +7,6 @@ Device { AlwaysOpen = no; RemovableMedia = yes; RandomAccess = no; - Alert Command = "sh -c 'tapeinfo -f %c | grep TapeAlert | cat'" - Alert Command = "sh -c 'smartctl -H -l error %c'" + Alert Command = "sh -c 'tapeinfo -f <%= @device %> | grep TapeAlert | cat'" + Alert Command = "sh -c 'smartctl -H -l error <%= @device %>' | cat" }