Browse Source

fix: be more solid in case of launching the ``install`` hook outside of a LXC.

postgres
Valentin Lab 11 years ago
parent
commit
eb177c16dc
  1. 12
      precise/0k-openerp/hooks/install

12
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"

Loading…
Cancel
Save