Skip to content

Instantly share code, notes, and snippets.

@doostinharrell
Created May 11, 2015 22:26
Show Gist options
  • Save doostinharrell/f51bb1accfe433ff96e9 to your computer and use it in GitHub Desktop.
Save doostinharrell/f51bb1accfe433ff96e9 to your computer and use it in GitHub Desktop.
dev.sh - Configure .htaccess for development environment
#!/bin/sh
#to run this command type: sh install.sh sitename
if [ -e $1 ];
then
echo "ERROR: please supply site name ie: thewiredmouse"
exit 1
fi
sudo echo "Starting scripts"
PARENT=$(basename $(pwd))
#update .htaccess files for local development
find /home/$1/public_html -name ".htaccess" -type f -exec sed -i 's/FollowSymLinks/SymLinksIfOwnerMatch/g' {} ";"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment