]> arthur.barton.de Git - netatalk.git/blob - test/afpd/test.sh
Merge 2-1
[netatalk.git] / test / afpd / test.sh
1 #!/bin/sh
2 if [ ! -d /tmp/AFPtestvolume ] ; then
3     mkdir -p /tmp/AFPtestvolume
4     if [ $? -ne 0 ] ; then
5         echo Error creating AFP test volume /tmp/AFPtestvolume
6         exit 1
7     fi
8 fi
9
10 if [ ! -f test.conf ] ; then
11     echo -n "Creating configuration template ... "
12     cat > test.conf <<EOF
13 test -noddp -port 10548
14 EOF
15     echo [ok]
16 fi
17
18 if [ ! -f test.default ] ; then
19     echo -n "Creating volume config template ... "
20     cat > test.default <<EOF
21 /tmp/AFPtestvolume "test" ea:none
22 EOF
23     echo [ok]
24 fi