diff --git a/precise/0k-openerp/hooks/install b/precise/0k-openerp/hooks/install index 12aa2ee..6420b7f 100755 --- a/precise/0k-openerp/hooks/install +++ b/precise/0k-openerp/hooks/install @@ -173,8 +173,10 @@ python setup.py install ## Linking with external filestore ! ## + ( cd /opt/apps/0k-oe/openobject-server/openerp && +mkdir -p /var/openerp-filestore && ln -sf /var/openerp-filestore filestore && cd /var/openerp-filestore && chown openerp . @@ -186,10 +188,12 @@ chown openerp . ## ( - cd /opt/apps && - git clone $GIT_0K_CLONE_OPTIONS "$GIT_0K_BASE/0k/0k-manage.git" && - cd /opt/apps/0k-manage && - git checkout 0k/prod/master && + if ! [ -d "/opt/apps/0k-manage" ]; then + cd /opt/apps && + git clone $GIT_0K_CLONE_OPTIONS "$GIT_0K_BASE/0k/0k-manage.git" && + cd /opt/apps/0k-manage && + git checkout 0k/prod/master + fi ## beurk ln -sf "/opt/apps/0k-manage/src/bin/oe" "/usr/local/bin/oe"