#!/bin/sh



boa_path="/etc/boa"
boa_indexer_path="/usr/lib/boa"
boa_root_path="/var/www"
boa_log_path="/var/log/boa"
boa_cgi_path="/usr/lib/cgi-bin"


mkdir -p "$boa_path"
mkdir -p "$boa_indexer_path"
mkdir -p "$boa_root_path"
mkdir -p "$boa_log_path"
mkdir -p "$boa_cgi_path"


cp -af /mnt/nand1-2/working/Resources/tools/boa/boa $boa_path
cp -af /mnt/nand1-2/working/Resources/tools/boa/boa.conf $boa_path
cp -af /mnt/nand1-2/working/Resources/tools/boa/mime.types /etc/
cp -af /mnt/nand1-2/working/Resources/tools/boa/boa_indexer $boa_indexer_path
#cp -af /mnt/nand1-2/working/Resources/tools/boa/index.html $boa_root_path
#cp -af /mnt/nand1-2/working/Resources/tools/boa/cgi_test $boa_cgi_path

cd $boa_path
./boa
