Skip to content

Instantly share code, notes, and snippets.

@n0ts
Created May 8, 2013 23:40
Show Gist options
  • Save n0ts/5544520 to your computer and use it in GitHub Desktop.
Save n0ts/5544520 to your computer and use it in GitHub Desktop.
Create app/tmp directory script for CakePHP
#!/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