Reducing the download size

Added the "--depth 1" to the command so it only retrieves the latest version without all the repository history, which makes the download quite a bit quicker, and uses less space in disk, making it suitable for a production environment.
pull/7/head
Sebastian Reyes Espinosa 10 years ago
parent 4f0ef4e2d6
commit 5f7ccdc76a

@ -107,7 +107,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 --branch $OE_VERSION https://www.github.com/odoo/odoo $OE_HOME_EXT/ sudo git clone --depth 1 --branch $OE_VERSION https://www.github.com/odoo/odoo $OE_HOME_EXT/
echo -e "\n---- Create custom module directory ----" echo -e "\n---- Create custom module directory ----"
sudo su $OE_USER -c "mkdir $OE_HOME/custom" sudo su $OE_USER -c "mkdir $OE_HOME/custom"

Loading…
Cancel
Save