Skip to content

Instantly share code, notes, and snippets.

@chrisjlee
Created November 12, 2011 04:15
Show Gist options
  • Save chrisjlee/1360030 to your computer and use it in GitHub Desktop.
Save chrisjlee/1360030 to your computer and use it in GitHub Desktop.
prep.sh - create folders and change permissions for drupal installation
#!/bin/sh
echo "Preparing Drupal"
echo "===================================="
sudo cp -vf www/sites/default/default.settings.php www/sites/default/settings.php
echo "Copied settings file!"
sudo chmod 777 www/sites/default/settings.php
echo "Changed Permissions to settings.php ..."
sudo mkdir -p www/sites/default/files
echo "Creating folder for files"
sudo chmod 777 -R www/sites/default/files
echo "Changing permissions\n"
echo "===================================="
echo "...Completed!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment