Created
May 8, 2013 23:40
-
-
Save n0ts/5544520 to your computer and use it in GitHub Desktop.
Create app/tmp directory script for CakePHP
This file contains 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/sh | |
http_user=$1 | |
# Set up directories | |
mkdir -p app/tmp/cache/models | |
mkdir -p app/tmp/cache/persistent | |
mkdir -p app/tmp/cache/views | |
mkdir -p app/tmp/logs | |
mkdir -p app/tmp/sessions | |
mkdir -p app/tmp/tests | |
chmod -R 775 app/tmp | |
# Make the directories itself writeable | |
chown -R $http_user app/tmp/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment