[IMP] odoo_install: better installation handling of packages

[IMP] odoo_install: better installation handling of packages
pull/197/head
Yenthe Van Ginneken 6 years ago committed by GitHub
commit ed82d49037
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -54,7 +54,7 @@ sudo apt-get upgrade -y
# Install PostgreSQL Server # Install PostgreSQL Server
#-------------------------------------------------- #--------------------------------------------------
echo -e "\n---- Install PostgreSQL Server ----" echo -e "\n---- Install PostgreSQL Server ----"
sudo apt-get install postgresql -y sudo apt-get install postgresql postgresql-server-dev-all -y
echo -e "\n---- Creating the ODOO PostgreSQL User ----" echo -e "\n---- Creating the ODOO PostgreSQL User ----"
sudo su - postgres -c "createuser -s $OE_USER" 2> /dev/null || true sudo su - postgres -c "createuser -s $OE_USER" 2> /dev/null || true
@ -69,7 +69,7 @@ echo -e "\n---- Install python packages/requirements ----"
sudo pip3 install -r https://github.com/odoo/odoo/raw/${OE_VERSION}/requirements.txt sudo pip3 install -r https://github.com/odoo/odoo/raw/${OE_VERSION}/requirements.txt
echo -e "\n---- Installing nodeJS NPM and rtlcss for LTR support ----" echo -e "\n---- Installing nodeJS NPM and rtlcss for LTR support ----"
sudo apt-get install nodejs npm sudo apt-get install nodejs npm -y
sudo npm install -g rtlcss sudo npm install -g rtlcss
#-------------------------------------------------- #--------------------------------------------------
@ -156,7 +156,7 @@ sudo chmod 640 /etc/${OE_CONFIG}.conf
echo -e "* Create startup file" echo -e "* Create startup file"
sudo su root -c "echo '#!/bin/sh' >> $OE_HOME_EXT/start.sh" sudo su root -c "echo '#!/bin/sh' >> $OE_HOME_EXT/start.sh"
sudo su root -c "echo 'sudo -u $OE_USER $OE_HOME_EXT/openerp-server --config=/etc/${OE_CONFIG}.conf' >> $OE_HOME_EXT/start.sh" sudo su root -c "echo 'sudo -u $OE_USER $OE_HOME_EXT/odoo-bin --config=/etc/${OE_CONFIG}.conf' >> $OE_HOME_EXT/start.sh"
sudo chmod 755 $OE_HOME_EXT/start.sh sudo chmod 755 $OE_HOME_EXT/start.sh
#-------------------------------------------------- #--------------------------------------------------

Loading…
Cancel
Save