Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: fcd85f02b5
Sebastiaan van Parijs
executable file 39 lines (31 sloc) 0.709 kB
#!/bin/bash
binDir=/usr/bin/
set_project_dir()
{
tmp=`pwd`
cd $scriptdir/..
project_base_dir=`pwd`
cd $tmp
}
scriptname=$(basename $0)
scriptdir=$(dirname $0)
set_project_dir
createdirs=(
log
html/fileadmin/files
html/localsettings/logs
html/typo3temp
)
cd $project_base_dir
echo "$scriptname: Create required directories... (project_base_dir = $project_base_dir)"
i=0
len=${#createdirs[*]}
while [ $i -lt $len ]; do
if [ ! -d ${createdirs[i]} ] ; then
echo "$scriptname: Create ${createdirs[i]} directory"
mkdir -p ${createdirs[i]}
if [ "$?" -ne 0 ]; then echo "$scriptname: ERROR: Failed to create ${createdirs[i]} directory. Installation incomplete"; exit 1; fi
fi
let i++
done
cd $tmp
Jump to Line
Something went wrong with that request. Please try again.