]> arthur.barton.de Git - netatalk.git/blob - test/afpd/test.sh
Fix typo
[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 [Global]
14 afp port = 10548
15
16 [test]
17 path = /tmp/AFPtestvolume
18 cnid scheme = last
19 EOF
20     echo [ok]
21 fi