From 0ea3458730364c72c9fc4bd6e06ded87d8413ea8 Mon Sep 17 00:00:00 2001 From: Mohamed Sdeek Date: Wed, 20 Mar 2019 23:51:13 +0200 Subject: [PATCH] Update odoo_install.sh --- odoo_install.sh | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/odoo_install.sh b/odoo_install.sh index 2700d09..2fff81a 100644 --- a/odoo_install.sh +++ b/odoo_install.sh @@ -68,17 +68,17 @@ sudo systemctl status apache2 a2enmod proxy a2enmod proxy_http sudo touch /etc/apache2/sites-available/codefish.com.eg.conf -sudo su root -c "printf'' >> /etc/apache2/sites-available/codefish.com.eg.conf" -sudo su root -c "printf' ServerName codefish.com.eg' >> /etc/apache2/sites-available/codefish.com.eg.conf" -sudo su root -c "printf' ServerAlias *.codefish.com.eg' >> /etc/apache2/sites-available/codefish.com.eg.conf" -sudo su root -c "printf'' >> /etc/apache2/sites-available/codefish.com.eg.conf" -sudo su root -c "printf' ProxyRequests Off' >> /etc/apache2/sites-available/codefish.com.eg.conf" -sudo su root -c "printf' ' >> /etc/apache2/sites-available/codefish.com.eg.conf" -sudo su root -c "printf' Order deny,allow' >> /etc/apache2/sites-available/codefish.com.eg.conf" -sudo su root -c "printf' Allow from all' >> /etc/apache2/sites-available/codefish.com.eg.conf" -sudo su root -c "printf' ' >> /etc/apache2/sites-available/codefish.com.eg.conf" -sudo su root -c "printf'' >> /etc/apache2/sites-available/codefish.com.eg.conf" -sudo su root -c "printf' ProxyPass / http://localhost:8069/' >> /etc/apache2/sites-available/codefish.com.eg.conf" +sudo su root -c "printf'\n' >> /etc/apache2/sites-available/codefish.com.eg.conf" +sudo su root -c "printf' ServerName codefish.com.eg\n' >> /etc/apache2/sites-available/codefish.com.eg.conf" +sudo su root -c "printf' ServerAlias *.codefish.com.eg\n' >> /etc/apache2/sites-available/codefish.com.eg.conf" +sudo su root -c "printf'\n' >> /etc/apache2/sites-available/codefish.com.eg.conf" +sudo su root -c "printf' ProxyRequests Off\n' >> /etc/apache2/sites-available/codefish.com.eg.conf" +sudo su root -c "printf' \n' >> /etc/apache2/sites-available/codefish.com.eg.conf" +sudo su root -c "printf' Order deny,allow\n' >> /etc/apache2/sites-available/codefish.com.eg.conf" +sudo su root -c "printf' Allow from all\n' >> /etc/apache2/sites-available/codefish.com.eg.conf" +sudo su root -c "printf' \n' >> /etc/apache2/sites-available/codefish.com.eg.conf" +sudo su root -c "printf'\n' >> /etc/apache2/sites-available/codefish.com.eg.conf" +sudo su root -c "printf' ProxyPass / http://localhost:8069/\n' >> /etc/apache2/sites-available/codefish.com.eg.conf" sudo su root -c "printf' ProxyPassReverse / http://localhost:8069/' >> /etc/apache2/sites-available/codefish.com.eg.conf" sudo su root -c "printf' ProxyPass /longpolling/ http://localhost:8072/' >> /etc/apache2/sites-available/codefish.com.eg.conf" sudo su root -c "printf' ProxyPassReverse /longpolling/ http://localhost:8072/' >> /etc/apache2/sites-available/codefish.com.eg.conf" @@ -88,6 +88,7 @@ sudo su root -c "printf' Order allow,deny' >> /etc/apache2/sites- sudo su root -c "printf' Allow from all] >> /etc/apache2/sites-available/codefish.com.eg.conf" sudo su root -c "printf' ' >> /etc/apache2/sites-available/codefish.com.eg.conf" sudo su root -c "printf'' >> /etc/apache2/sites-available/codefish.com.eg.conf" +sudo chmod 640 /etc/apache2/sites-available/codefish.com.eg.conf ln -s /etc/apache2/sites-available/codefish.com.eg.conf /etc/apache2/sites-enabled/codefish.com.eg.conf service apache2 restart