diff --git a/packaging_apps_helpers.md b/packaging_apps_helpers.md index eb087f80..72602ba2 100644 --- a/packaging_apps_helpers.md +++ b/packaging_apps_helpers.md @@ -2,85 +2,264 @@ ## Shell helpers -Since YunoHost 2.4 release, **new shell helpers** are available to ease packaging, in particular for common tasks like password generation, MySQL database creation… +Since YunoHost 2.4 release, **new shell helpers** are available to ease common packaging 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. +Usage 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 +source /usr/share/yunohost/helpers ``` - +> This commands rebuilds the SSO configuration. It is called automatically at the end of any script, but you may want to call it by hand before.