#!#/bin/bash mkdir -p public_html/storage/cms/cache/ mkdir -p public_html/storage/cms/twig/ mkdir -p public_html/storage/cms/combiner/ mkdir -p public_html/storage/framework/cache/ mkdir -p public_html/storage/framework/sessions/ mkdir -p public_html/storage/framework/views/ mkdir -p public_html/storage/logs/ rm -rf public_html/storage/cms/cache/* rm -rf public_html/storage/cms/twig/* rm -rf public_html/storage/cms/combiner/* rm -rf public_html/storage/framework/cache/* rm -rf public_html/storage/framework/sessions/* rm -rf public_html/storage/framework/views/* rm -rf public_html/storage/logs/* STR=`pwd` SUB='/home/' if [[ "$STR" == *"$SUB"* ]]; then user=${STR/$SUB/} chown -R $user:apache public_html/* fi