Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.18 KB | None | 0 0
  1. #!/usr/bin/bash
  2.  
  3. LN=$(cat -n apache.conf | grep '<Directory \/var\/www\/>' | grep -o '[0-9]*');
  4. sed -i "$LN","$(expr $LN + 4)"s/'AllowOverride None'/'AllowOverride All'/ apache.conf;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement