Last active
January 1, 2016 09:59
-
-
Save jstrosch/8128322 to your computer and use it in GitHub Desktop.
Update file permissions on a Kohana website
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Type the directory from /var/www, followed by [ENTER]:" | |
read dir | |
cd /var/www/$dir | |
echo "Updating owners..." | |
#TODO: change | |
#chown -R :www-data . | |
echo "Update file permissions..." | |
find . -type d -exec chmod 755 {} \; | |
echo "Updating log and cache directories" | |
chmod 666 application/logs/ | |
chmod 666 application/cache/ | |
echo "Finished!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment