tabs to spaces,keeping nginx conf as odoo.

pull/198/head
Tony Benoy 6 years ago
parent dcb72d7412
commit 7a6c9d0d85
No known key found for this signature in database
GPG Key ID: C26752B6501EAD3D

@ -263,7 +263,7 @@ sudo update-rc.d $OE_CONFIG defaults
if [ $INSTALL_NGINX = "True" ]; then
echo -e "\n---- Installing and setting up Nginx ----"
sudo apt install nginx -y
cat <<EOF > ~/$OE_USER
cat <<EOF > ~/odoo
server {
listen 80;
@ -336,12 +336,12 @@ if [ $INSTALL_NGINX = "True" ]; then
}
EOF
sudo mv ~/$OE_USER /etc/nginx/sites-available/
sudo ln -s /etc/nginx/sites-available/odoo /etc/nginx/sites-enabled/$OE_USER
sudo mv ~/odoo /etc/nginx/sites-available/
sudo ln -s /etc/nginx/sites-available/odoo /etc/nginx/sites-enabled/odoo
sudo rm /etc/nginx/sites-enabled/default
sudo service nginx reload
sudo su root -c "printf 'proxy_mode = True\n' >> /etc/${OE_CONFIG}.conf"
echo "Done! The Nginx server is up and running. Configuration can be found at /etc/nginx/sites-enabled/$OE_USER"
echo "Done! The Nginx server is up and running. Configuration can be found at /etc/nginx/sites-available/odoo"
else
echo "Nginx isn't installed due to choice of the user!"
fi

Loading…
Cancel
Save