#!/bin/sh if $2 == 'clean'; then exit fi dirs="data cache modules custom" for dir in $dirs ; do chmod -R 777 ${MY_INSTALLDIR}/${dir} done