]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/cleanup
Remove bashism in script
[bacula/bacula] / regress / scripts / cleanup
1 #!/bin/sh
2 #
3 # Cleanup left over files -- both before and after test run
4 #
5 cwd=`pwd`
6 rm -rf ${cwd}/tmp/FileVolume*
7 rm -rf ${cwd}/tmp/TestVolume001 ${cwd}/tmp/bacula-restores ${cwd}/tmp/Small*
8 rm -rf ${cwd}/tmp/sed_tmp ${cwd}/tmp/file-list
9 rm -rf tmp/*
10 rm -rf working/log tmp/TEST-*
11 rm -rf working/*.bsr
12 rm -rf ${cwd}/tmp/disk-changer
13 find . -name "gigaslam.gif" -exec rm -f {} \;
14
15
16 # bin directory does not always exist
17 if [ -d bin ]
18 then
19   bin/bacula stop 2>&1 >/dev/null
20   cd bin
21   ./drop_bacula_tables      >/dev/null 2>&1
22   ./make_bacula_tables      >/dev/null 2>&1
23   ./grant_bacula_privileges >/dev/null 2>&1
24   cd ..
25 fi