Skip to content

Instantly share code, notes, and snippets.

@jstrosch
Last active January 1, 2016 09:59
Show Gist options
  • Save jstrosch/8128322 to your computer and use it in GitHub Desktop.
Save jstrosch/8128322 to your computer and use it in GitHub Desktop.
Update file permissions on a Kohana website
#!/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