Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions files/usr/local/sbin/chcustown
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down