From 833aa0795c6ad39dc90ea492b8fcd9650cb937b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B2=B3=E6=9D=BE?= Date: Tue, 20 Sep 2016 21:43:25 +0800 Subject: [PATCH] move to conf dir --- default.conf => conf/default.conf | 0 my.cnf => conf/my.cnf | 0 nginx.conf => conf/nginx.conf | 0 server.cnf => conf/server.cnf | 0 lemp.sh | 8 ++++---- 5 files changed, 4 insertions(+), 4 deletions(-) rename default.conf => conf/default.conf (100%) rename my.cnf => conf/my.cnf (100%) rename nginx.conf => conf/nginx.conf (100%) rename server.cnf => conf/server.cnf (100%) diff --git a/default.conf b/conf/default.conf similarity index 100% rename from default.conf rename to conf/default.conf diff --git a/my.cnf b/conf/my.cnf similarity index 100% rename from my.cnf rename to conf/my.cnf diff --git a/nginx.conf b/conf/nginx.conf similarity index 100% rename from nginx.conf rename to conf/nginx.conf diff --git a/server.cnf b/conf/server.cnf similarity index 100% rename from server.cnf rename to conf/server.cnf diff --git a/lemp.sh b/lemp.sh index 4413df2..9e8b3b9 100755 --- a/lemp.sh +++ b/lemp.sh @@ -117,8 +117,8 @@ echo "Configuring Nginx for PHP..." IP=`curl ip.llm.me` sudo cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf.bak sudo cp /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf.bak -sudo cp ./nginx.conf /etc/nginx/nginx.conf -sudo cp ./default.conf /etc/nginx/conf.d/default.conf +sudo cp ./conf/nginx.conf /etc/nginx/nginx.conf +sudo cp ./conf/default.conf /etc/nginx/conf.d/default.conf sudo sed -i "s/localhost/$IP/g" /etc/nginx/conf.d/default.conf # Configure PHP @@ -143,8 +143,8 @@ EOF # Configure MariaDB echo "Configuring MariaDB..." -sudo cp ./my.cnf /etc/my.cnf -sudo cp ./server.cnf /etc/my.cnf.d/server.cnf +sudo cp ./conf/my.cnf /etc/my.cnf +sudo cp ./conf/server.cnf /etc/my.cnf.d/server.cnf # Restarting Services echo "Restarting Services..."