1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/libreerp_ynh.git synced 2024-09-03 19:36:13 +02:00

Merge pull request #29 from YunoHost-Apps/swap

Manage swap
This commit is contained in:
yalh76 2022-06-05 01:13:21 +02:00 committed by GitHub
commit 867a368ad7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 50 additions and 30 deletions

View file

@ -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: <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>
## 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
**More info regarding app packaging:** <https://yunohost.org/packaging_apps>

View file

@ -1,10 +1,14 @@
<!--
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/README-generator
It shall NOT be edited by hand.
-->
# 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 : <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>
## 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
**Plus d'infos sur le packaging d'applications :** <https://yunohost.org/packaging_apps>

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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