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. 6
      precise/0k-openerp/hooks/install

6
precise/0k-openerp/hooks/install

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

Loading…
Cancel
Save