You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
InstallScript_Odoo/V8/base_update_script

16 lines
434 B

#!/bin/bash
OE_USER="odoo"
OE_HOME="/$OE_USER"
OE_HOME_EXT="/$OE_USER/$OE_USER-server"
cd HOME_EXT
username="$(git config --global user.name)"
email="$(git config --global user.email)"
if [[ ${#username} -gt 0 || ${#email} -gt 0 ]]
then
echo "We can do a git pull - git user configged."
#git pull origin master
else
echo "We can not update the Odoo code base - no git user configged"
fi
echo "------Finished the script------"