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..."