From 00442adb6364fbdccd4e18e3f7b2c5eab4769eb7 Mon Sep 17 00:00:00 2001 From: Christoph Galuschka Date: Dec 30 2013 20:20:03 +0000 Subject: fixed amanda test to not use deprecated configuration parameters on EL7 --- diff --git a/tests/p_amanda/amanda-server_test.sh b/tests/p_amanda/amanda-server_test.sh index 929ef9d..e8eee16 100755 --- a/tests/p_amanda/amanda-server_test.sh +++ b/tests/p_amanda/amanda-server_test.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Author: Christoph Galuschka +# Author: Christoph Galuschka t_Log "Running $0 - amanda server runs a simple task (backing up /etc)" if (t_GetPkgRel basesystem | grep -q el5) @@ -29,7 +29,7 @@ logdir "/amanda/state/log" indexdir "/amanda/state/index" EOF -if (t_GetPkgRel basesystem | grep -q el5) +if [ $centos_ver == 5 ] then echo 'dumpuser "amanda"' >> /etc/amanda/MyConfig/amanda.conf else @@ -39,6 +39,16 @@ fi cat >> /etc/amanda/MyConfig/amanda.conf <> /etc/amanda/MyConfig/amanda.conf +else + echo 'label_new_tapes "MyData%%"' >> /etc/amanda/MyConfig/amanda.conf +fi + +cat >> /etc/amanda/MyConfig/amanda.conf <