Created
June 20, 2013 08:38
-
-
Save peppy/5821190 to your computer and use it in GitHub Desktop.
config linking from git repo
This file contains hidden or 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 | |
# fileinfo.sh | |
PWD=`pwd` | |
FILES="nginx/nginx.conf | |
nginx/fastcgi_params | |
nginx/sites-enabled | |
nginx/sites-enabled | |
nginx/sites-enabled | |
mysql/my.cnf | |
mysql/stopwords | |
memcached.conf | |
sysctl.conf | |
crontab | |
php5" | |
for file in $FILES | |
do | |
rm -r "/etc/$file"; | |
ln -s "$PWD/$file" "/etc/$file"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment