Last active
January 10, 2016 07:38
-
-
Save pendashteh/a333d48fe437fda176ed to your computer and use it in GitHub Desktop.
Fixes all .htaccess files found in the given directory. Required to install drupal on Virtualmin and similar environment
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/bash | |
root=$1 | |
# See: https://www.drupal.org/node/2625224 | |
# Copyright: https://www.virtualmin.com/node/24753#comment-111132 | |
find $root -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