diff --git a/files/usr/local/sbin/chcustown b/files/usr/local/sbin/chcustown index a130271..ec66c24 100755 --- a/files/usr/local/sbin/chcustown +++ b/files/usr/local/sbin/chcustown @@ -18,8 +18,8 @@ if [ -d ${DOCROOT} ]; then fi ionice -c 3 chown -R ${USER}:wordpress ${DOCROOT} - ionice -c 3 find ${DOCROOT} -type d -exec chmod 755 {} \; - ionice -c 3 find ${DOCROOT} -type f -exec chmod 644 {} \; + ionice -c 3 find ${DOCROOT} -type d -print0 | xargs -0 chmod 775 + ionice -c 3 find ${DOCROOT} -type f -print0 | xargs -0 chmod 644 echo ${DOMAIN} has been locked down. else echo ${DOCROOT} does not exist. Lockdown failed.