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 <