diff --git a/README.md b/README.md index 4c3e9fb..ec9deb9 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ It shall NOT be edited by hand. # LibreERP for YunoHost -[![Integration level](https://dash.yunohost.org/integration/libreerp.svg)](https://dash.yunohost.org/appci/app/libreerp) ![](https://ci-apps.yunohost.org/ci/badges/libreerp.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/libreerp.maintain.svg) +[![Integration level](https://dash.yunohost.org/integration/libreerp.svg)](https://dash.yunohost.org/appci/app/libreerp) ![Working status](https://ci-apps.yunohost.org/ci/badges/libreerp.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/libreerp.maintain.svg) [![Install LibreERP with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=libreerp) *[Lire ce readme en français.](./README_fr.md)* @@ -25,7 +25,6 @@ LibreERP Apps can be used as stand-alone applications, but they also integrate s **Shipped version:** 12.0~ynh6 **Demo:** https://www.odoo.com/trial - ## Disclaimers / important information **WARNING**: LibreERP is a complex app. **DO NOT USE THIS PACKAGE** to run your business unless you know what you are doing!!! If you don't, you should consider to ask for help from a professionnal! @@ -47,22 +46,23 @@ LibreERP is forked from Odoo Community Edition. The name is change due to Odoo t ## Documentation and resources -* Official app website: https://odoo.com -* Official user documentation: https://www.odoo.com/documentation/15.0/applications.html -* Official admin documentation: https://www.odoo.com/documentation/15.0/administration.html -* Upstream app code repository: https://github.com/odoo/odoo -* YunoHost documentation for this app: https://yunohost.org/app_libreerp -* Report a bug: https://github.com/YunoHost-Apps/libreerp_ynh/issues +* Official app website: +* Official user documentation: +* Official admin documentation: +* Upstream app code repository: +* YunoHost documentation for this app: +* Report a bug: ## Developer info Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/libreerp_ynh/tree/testing). To try the testing branch, please proceed like that. -``` + +``` bash sudo yunohost app install https://github.com/YunoHost-Apps/libreerp_ynh/tree/testing --debug or sudo yunohost app upgrade libreerp -u https://github.com/YunoHost-Apps/libreerp_ynh/tree/testing --debug ``` -**More info regarding app packaging:** https://yunohost.org/packaging_apps \ No newline at end of file +**More info regarding app packaging:** diff --git a/README_fr.md b/README_fr.md index d10ec20..4fd3338 100644 --- a/README_fr.md +++ b/README_fr.md @@ -1,10 +1,14 @@ + + # LibreERP pour YunoHost -[![Niveau d'intégration](https://dash.yunohost.org/integration/libreerp.svg)](https://dash.yunohost.org/appci/app/libreerp) ![](https://ci-apps.yunohost.org/ci/badges/libreerp.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/libreerp.maintain.svg) +[![Niveau d'intégration](https://dash.yunohost.org/integration/libreerp.svg)](https://dash.yunohost.org/appci/app/libreerp) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/libreerp.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/libreerp.maintain.svg) [![Installer LibreERP avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=libreerp) *[Read this readme in english.](./README.md)* -*[Lire ce readme en français.](./README_fr.md)* > *Ce package vous permet d'installer LibreERP rapidement et simplement sur un serveur YunoHost. Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.* @@ -21,7 +25,6 @@ LibreERP Apps can be used as stand-alone applications, but they also integrate s **Version incluse :** 12.0~ynh6 **Démo :** https://www.odoo.com/trial - ## Avertissements / informations importantes **WARNING**: LibreERP is a complex app. **DO NOT USE THIS PACKAGE** to run your business unless you know what you are doing!!! If you don't, you should consider to ask for help from a professionnal! @@ -43,22 +46,23 @@ LibreERP is forked from Odoo Community Edition. The name is change due to Odoo t ## Documentations et ressources -* Site officiel de l'app : https://odoo.com -* Documentation officielle utilisateur : https://www.odoo.com/documentation/15.0/applications.html -* Documentation officielle de l'admin : https://www.odoo.com/documentation/15.0/administration.html -* Dépôt de code officiel de l'app : https://github.com/odoo/odoo -* Documentation YunoHost pour cette app : https://yunohost.org/app_libreerp -* Signaler un bug : https://github.com/YunoHost-Apps/libreerp_ynh/issues +* Site officiel de l'app : +* Documentation officielle utilisateur : +* Documentation officielle de l'admin : +* Dépôt de code officiel de l'app : +* Documentation YunoHost pour cette app : +* Signaler un bug : ## Informations pour les développeurs Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/libreerp_ynh/tree/testing). Pour essayer la branche testing, procédez comme suit. -``` + +``` bash sudo yunohost app install https://github.com/YunoHost-Apps/libreerp_ynh/tree/testing --debug ou sudo yunohost app upgrade libreerp -u https://github.com/YunoHost-Apps/libreerp_ynh/tree/testing --debug ``` -**Plus d'infos sur le packaging d'applications :** https://yunohost.org/packaging_apps \ No newline at end of file +**Plus d'infos sur le packaging d'applications :** diff --git a/check_process b/check_process index ba1d0d3..c66d406 100644 --- a/check_process +++ b/check_process @@ -16,7 +16,7 @@ setup_public=1 upgrade=1 # 12.0-6 - upgrade=1 from_commit=2cfdbc229faa8700873e681a01f823c32475cca8 + # upgrade=1 from_commit=2cfdbc229faa8700873e681a01f823c32475cca8 backup_restore=1 multi_instance=1 port_already_use=0 diff --git a/scripts/install b/scripts/install index 5ea13b3..e37aba6 100644 --- a/scripts/install +++ b/scripts/install @@ -139,9 +139,13 @@ ynh_add_nginx_config #================================================= # ADD SWAP #================================================= -ynh_script_progression --message="Adding swap..." -ynh_add_swap --size=$swap_needed +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + : +else + ynh_script_progression --message="Adding swap..." + ynh_add_swap --size=$swap_needed +fi #================================================= # BUILD APP diff --git a/scripts/remove b/scripts/remove index 5cbf8c7..9eac726 100644 --- a/scripts/remove +++ b/scripts/remove @@ -91,9 +91,13 @@ ynh_secure_remove --file="/var/log/$app.log" #================================================= # REMOVE SWAP #================================================= -ynh_script_progression --message="Removing swap..." -ynh_del_swap +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + : +else + ynh_script_progression --message="Removing swap..." + ynh_del_swap +fi #================================================= # GENERIC FINALIZATION diff --git a/scripts/restore b/scripts/restore index aa44a01..2effee2 100644 --- a/scripts/restore +++ b/scripts/restore @@ -98,9 +98,13 @@ ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies #================================================= # ADD SWAP #================================================= -ynh_script_progression --message="Adding swap..." -ynh_add_swap --size=$swap_needed +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + : +else + ynh_script_progression --message="Adding swap..." + ynh_add_swap --size=$swap_needed +fi #================================================= # BUILD APP diff --git a/scripts/upgrade b/scripts/upgrade index 63a586d..bd9ae58 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -105,9 +105,13 @@ ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies #================================================= # ADD SWAP #================================================= -ynh_script_progression --message="Adding swap..." -ynh_add_swap --size=$swap_needed +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + : +else + ynh_script_progression --message="Adding swap..." + ynh_add_swap --size=$swap_needed +fi #================================================= # BUILD APP