#!/bin/bash # svn propset svn:executable '' ./setup USER_NAME=$(whoami) BASE_PATH=`pwd` PUB_BASE_PATH=$(pwd | sed "s/\/home\/$USER_NAME\//\/home\/pub\//") FILES_DIRECTORY="userfile" FCK_DIRECTORY="fckfiles" EMAIL_DIRECTORY="broadcastEmailFiles" rm -f $BASE_PATH/site/tmp/tpl_c/* # FILES_DIRECTORY if [ -L "$BASE_PATH/www/$FILES_DIRECTORY" ] ; then unlink $BASE_PATH/www/$FILES_DIRECTORY fi if [ ! -d "$PUB_BASE_PATH/www/$FILES_DIRECTORY" ] ; then mkdir -p $PUB_BASE_PATH/www/$FILES_DIRECTORY echo 'Options -Indexes' > $PUB_BASE_PATH/www/$FILES_DIRECTORY/.htaccess chmod -R 777 $PUB_BASE_PATH/www/$FILES_DIRECTORY fi ln -s $PUB_BASE_PATH/www/$FILES_DIRECTORY $BASE_PATH/www/$FILES_DIRECTORY #------------------------------------------ # FCK_DIRECTORY if [ -L "$BASE_PATH/www/$FCK_DIRECTORY" ] ; then unlink $BASE_PATH/www/$FCK_DIRECTORY fi if [ ! -d "$PUB_BASE_PATH/www/$FCK_DIRECTORY" ] ; then mkdir -p $PUB_BASE_PATH/www/$FCK_DIRECTORY echo 'Options -Indexes' > $PUB_BASE_PATH/www/$FCK_DIRECTORY/.htaccess chmod -R 777 $PUB_BASE_PATH/www/$FCK_DIRECTORY fi ln -s $PUB_BASE_PATH/www/$FCK_DIRECTORY $BASE_PATH/www/$FCK_DIRECTORY #------------------------------------------ # EMAIL_DIRECTORY if [ -d "$BASE_PATH/www/$EMAIL_DIRECTORY" ] ; then rm -Rf $BASE_PATH/www/$EMAIL_DIRECTORY fi if [ -L "$BASE_PATH/www/$EMAIL_DIRECTORY" ] ; then unlink $BASE_PATH/www/$EMAIL_DIRECTORY fi if [ ! -d "$PUB_BASE_PATH/www/$EMAIL_DIRECTORY" ] ; then mkdir -p $PUB_BASE_PATH/www/$EMAIL_DIRECTORY echo 'Options -Indexes' > $PUB_BASE_PATH/www/$EMAIL_DIRECTORY/.htaccess chmod -R 777 $PUB_BASE_PATH/www/$EMAIL_DIRECTORY fi ln -s $PUB_BASE_PATH/www/$EMAIL_DIRECTORY $BASE_PATH/www/$EMAIL_DIRECTORY #------------------------------------------ # Feeds if [ -d "$BASE_PATH/www/statistical_feed" ] ; then rm -Rf $BASE_PATH/www/statistical_feed fi if [ -L "$BASE_PATH/www/statistical_feed" ] ; then unlink $BASE_PATH/www/statistical_feed fi ln -s $BASE_PATH/site/data/statistical_feed $BASE_PATH/www/statistical_feed