Skip to content

Instantly share code, notes, and snippets.

View aronbeal's full-sized avatar

Aron Beal aronbeal

  • Beal Consulting
  • Vancouver, BC
View GitHub Profile
@aronbeal
aronbeal / fix_permissions.sh
Created July 12, 2013 17:53
Drupal site securing script
#!/bin/bash
if [ $(id -u) != 0 ]; then
printf "This script must be run as root.\n"
exit 1
fi
#TODO: change these variables to be the apache user and a group consisting of all users who
# need write access
drupal_path=${1%/}