From b6c5ab4bbf91bff90418339c3fcd251b9f93d668 Mon Sep 17 00:00:00 2001 From: Yenthe Date: Thu, 27 Aug 2015 11:12:51 +0200 Subject: [PATCH] Init git pull script Init git pull script --- base_update_script | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 base_update_script diff --git a/base_update_script b/base_update_script new file mode 100644 index 0000000..f9f7965 --- /dev/null +++ b/base_update_script @@ -0,0 +1,15 @@ +#!/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------"