mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
[enh] packaging_apps_helpers: hide deprecated helpers and update information about new helpers.
- hide deprecated helpers from YunoHost 2.2. - update information about new helpers from YunoHost 2.4: - Add example - Link the example app - Update link to the helpers repository
This commit is contained in:
parent
55a864367b
commit
7897c95750
2 changed files with 20 additions and 15 deletions
|
@ -1,16 +1,20 @@
|
|||
<a class="btn btn-lg btn-default" href="packaging_apps_en">Application packaging</a>
|
||||
|
||||
### Helpers
|
||||
It's recommended to use helpers.
|
||||
## Shell helpers
|
||||
|
||||
#### Shell
|
||||
From YunoHost 2.4, [shell helpers](https://dev.yunohost.org/projects/yunohost/repository/yunohost/revisions/unstable/show/data/helpers.d) are available.
|
||||
Since YunoHost 2.4 release, **new shell helpers** are available to ease packaging, in particular for common tasks like password generation, MySQL database creation…
|
||||
|
||||
Examples are available in the [example application](https://github.com/YunoHost/example_ynh/blob/master/scripts/install). We advise to use them.
|
||||
|
||||
You can find them on this [repository](https://github.com/YunoHost/yunohost/blob/unstable/data/helpers.d).
|
||||
|
||||
To use them, you need to add following lines in the shell scripts:
|
||||
```bash
|
||||
# Source app helpers
|
||||
. /usr/share/yunohost/helpers
|
||||
```
|
||||
|
||||
<!--
|
||||
<br />
|
||||
|
||||
#### Moulinette
|
||||
|
@ -79,3 +83,4 @@ sudo yunohost app ssowatconf
|
|||
<blockquote>
|
||||
This helper reloads the SSO configuration. You have to call it at the end of the script when you are packaging a web app.
|
||||
</blockquote>
|
||||
-->
|
||||
|
|
|
@ -1,16 +1,15 @@
|
|||
<a class="btn btn-lg btn-default" href="packaging_apps_fr">Packaging d’application</a>
|
||||
|
||||
## Commandes pratiques
|
||||
Il est conseillé d’utiliser les commandes pratiques.
|
||||
|
||||
#### Shell
|
||||
À partir de YunoHost 2.4, des [helpers en shell](https://dev.yunohost.org/projects/yunohost/repository/yunohost/revisions/unstable/show/data/helpers.d) sont disponible.
|
||||
## Commandes pratiques en Shell
|
||||
|
||||
Pour pouvoir les utiliser il faut ajouter les lignes suivantes :
|
||||
```bash
|
||||
# Source app helpers
|
||||
. /usr/share/yunohost/helpers
|
||||
```
|
||||
À partir de YunoHost 2.4, de **nouvelles commandes pratiques *(helpers)* en shell** sont disponible pour faciliter le *packaging*, particulièrement pour des tâches répétitives comme la génération de mot de passe, la création de base de donnés MySQL…
|
||||
|
||||
Des exemples sont disponibles dans l’[application d’exemple](https://github.com/YunoHost/example_ynh/blob/master/scripts/install). Il est conseillé d’utiliser les commandes pratiques.
|
||||
|
||||
Vous pourrez les retrouver dans ce [dépôt](https://github.com/YunoHost/yunohost/blob/unstable/data/helpers.d).
|
||||
|
||||
<!--
|
||||
<br />
|
||||
|
||||
#### Moulinette
|
||||
|
@ -88,3 +87,4 @@ sudo yunohost app ssowatconf
|
|||
<blockquote>
|
||||
Cette commande régénère la configuration du SSO. Vous devez l’appeler à la fin des scripts lorsque vous packagez une application Web.
|
||||
</blockquote>
|
||||
-->
|
||||
|
|
Loading…
Reference in a new issue