final_path -> install_dir
This commit is contained in:
parent
db7ed356ff
commit
a18616b9cf
2 changed files with 4 additions and 4 deletions
|
@ -9,7 +9,7 @@ db_password = __DB_PWD__
|
||||||
__CONTENT__
|
__CONTENT__
|
||||||
__CONTENT2__
|
__CONTENT2__
|
||||||
__CONTENT3__
|
__CONTENT3__
|
||||||
addons_path = __FINAL_PATH__/__APPNAME__/addons,__FINAL_PATH__/custom-addons
|
addons_path = __INSTALL_DIR__/__APPNAME__/addons,__INSTALL_DIR__/custom-addons
|
||||||
proxy_mode = true
|
proxy_mode = true
|
||||||
logfile = /var/log/__APP__.log
|
logfile = /var/log/__APP__.log
|
||||||
xmlrpc_interface = 127.0.0.1
|
xmlrpc_interface = 127.0.0.1
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
ynh_abort_if_errors
|
ynh_abort_if_errors
|
||||||
|
|
||||||
CUSTOM_ADDONS=$final_path/custom-addons
|
CUSTOM_ADDONS=$install_dir/custom-addons
|
||||||
VENV=$final_path/venv
|
VENV=$install_dir/venv
|
||||||
CUSTOM_REPO=$CUSTOM_ADDONS/custom-repo
|
CUSTOM_REPO=$CUSTOM_ADDONS/custom-repo
|
||||||
REPOS_YML=$CUSTOM_REPO/repos.yml
|
REPOS_YML=$CUSTOM_REPO/repos.yml
|
||||||
REQUIREMENTS_TXT=$CUSTOM_REPO/requirements.txt
|
REQUIREMENTS_TXT=$CUSTOM_REPO/requirements.txt
|
||||||
|
@ -83,7 +83,7 @@ run__update_code() {
|
||||||
ynh_exec_as $app $VENV/bin/pip3 install -Ur $CUSTOM_REPO/requirements.txt
|
ynh_exec_as $app $VENV/bin/pip3 install -Ur $CUSTOM_REPO/requirements.txt
|
||||||
fi
|
fi
|
||||||
ynh_script_progression --message="Updating odoo addons and restarting the service"
|
ynh_script_progression --message="Updating odoo addons and restarting the service"
|
||||||
sudo -u $app $VENV/bin/python $final_path/libreerp/odoo-bin shell -d $app -c /etc/$app/main.conf --logfile /proc/self/fd/1 <<ODOODOC
|
sudo -u $app $VENV/bin/python $install_dir/libreerp/odoo-bin shell -d $app -c /etc/$app/main.conf --logfile /proc/self/fd/1 <<ODOODOC
|
||||||
if hasattr(self.env['ir.module.module'], 'upgrade_changed_checksum_shell'):
|
if hasattr(self.env['ir.module.module'], 'upgrade_changed_checksum_shell'):
|
||||||
self.env['ir.module.module'].upgrade_changed_checksum_shell()
|
self.env['ir.module.module'].upgrade_changed_checksum_shell()
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue