Update and rename odoo_install.sh to odoo_install_shinji.sh

pull/84/head
shinjievil 8 years ago committed by GitHub
parent 1067ca0c19
commit 211fdf2d3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -92,6 +92,7 @@ if [ $INSTALL_WKHTMLTOPDF = "True" ]; then
fi fi
sudo wget $_url sudo wget $_url
sudo gdebi --n `basename $_url` sudo gdebi --n `basename $_url`
sudo apt-get -f install
sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin
sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin
else else
@ -111,7 +112,7 @@ sudo chown $OE_USER:$OE_USER /var/log/$OE_USER
# Install ODOO # Install ODOO
#-------------------------------------------------- #--------------------------------------------------
echo -e "\n==== Installing ODOO Server ====" echo -e "\n==== Installing ODOO Server ===="
sudo git clone --depth 1 --branch $OE_VERSION https://www.github.com/odoo/odoo $OE_HOME_EXT/ sudo git clone --depth 1 --branch $OE_VERSION --single-branch https://www.github.com/odoo/odoo $OE_HOME_EXT/
if [ $IS_ENTERPRISE = "True" ]; then if [ $IS_ENTERPRISE = "True" ]; then
# Odoo Enterprise install! # Odoo Enterprise install!
@ -134,9 +135,12 @@ if [ $IS_ENTERPRISE = "True" ]; then
echo -e "\n---- Added Enterprise code under $OE_HOME/enterprise/addons ----" echo -e "\n---- Added Enterprise code under $OE_HOME/enterprise/addons ----"
echo -e "\n---- Installing Enterprise specific libraries ----" echo -e "\n---- Installing Enterprise specific libraries ----"
sudo pip3 install num2words ofxparse sudo pip3 install num2words ofxparse
sudo apt-get install nodejs npm sudo apt-get install curl
sudo npm install -g less curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo npm install -g less-plugin-clean-css sudo apt-get install -y npm
sudo ln -s /usr/bin/nodejs /usr/bin/node
sudo npm install -g less less-plugin-clean-css
sudo apt-get install node-less
fi fi
echo -e "\n---- Create custom module directory ----" echo -e "\n---- Create custom module directory ----"
Loading…
Cancel
Save