move to conf dir
This commit is contained in:
8
lemp.sh
8
lemp.sh
@@ -117,8 +117,8 @@ echo "Configuring Nginx for PHP..."
|
|||||||
IP=`curl ip.llm.me`
|
IP=`curl ip.llm.me`
|
||||||
sudo cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf.bak
|
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 /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf.bak
|
||||||
sudo cp ./nginx.conf /etc/nginx/nginx.conf
|
sudo cp ./conf/nginx.conf /etc/nginx/nginx.conf
|
||||||
sudo cp ./default.conf /etc/nginx/conf.d/default.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
|
sudo sed -i "s/localhost/$IP/g" /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
# Configure PHP
|
# Configure PHP
|
||||||
@@ -143,8 +143,8 @@ EOF
|
|||||||
|
|
||||||
# Configure MariaDB
|
# Configure MariaDB
|
||||||
echo "Configuring MariaDB..."
|
echo "Configuring MariaDB..."
|
||||||
sudo cp ./my.cnf /etc/my.cnf
|
sudo cp ./conf/my.cnf /etc/my.cnf
|
||||||
sudo cp ./server.cnf /etc/my.cnf.d/server.cnf
|
sudo cp ./conf/server.cnf /etc/my.cnf.d/server.cnf
|
||||||
|
|
||||||
# Restarting Services
|
# Restarting Services
|
||||||
echo "Restarting Services..."
|
echo "Restarting Services..."
|
||||||
|
|||||||
Reference in New Issue
Block a user