diff --git a/pages/04.contribute/04.packaging_apps/11.helpers/packaging_apps_helpers.md b/pages/04.contribute/04.packaging_apps/11.helpers/packaging_apps_helpers.md index 6c1caaf2..f1deadac 100644 --- a/pages/04.contribute/04.packaging_apps/11.helpers/packaging_apps_helpers.md +++ b/pages/04.contribute/04.packaging_apps/11.helpers/packaging_apps_helpers.md @@ -7,7 +7,7 @@ routes: default: '/packaging_apps_helpers' --- -Doc auto-generated by [this script](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/doc/generate_helper_doc.py) on 09/17/2021 (YunoHost version 4.2.8.3) +Doc auto-generated by [this script](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/doc/generate_helper_doc.py) on 11/05/2021 (YunoHost version 4.3.2) ## APT @@ -29,7 +29,7 @@ Requires YunoHost version 2.2.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/apt#L57) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/apt#L53) [/details] ---------------- @@ -50,7 +50,7 @@ Requires YunoHost version 2.2.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/apt#L79) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/apt#L75) [/details] ---------------- @@ -64,7 +64,7 @@ Requires YunoHost version 2.2.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/apt#L112) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/apt#L107) [/details] ---------------- @@ -81,7 +81,7 @@ Requires YunoHost version 2.2.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/apt#L122) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/apt#L117) [/details] ---------------- @@ -98,7 +98,7 @@ Requires YunoHost version 2.2.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/apt#L133) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/apt#L128) [/details] ---------------- @@ -115,7 +115,7 @@ Requires YunoHost version 2.2.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/apt#L143) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/apt#L138) [/details] ---------------- @@ -132,7 +132,7 @@ Requires YunoHost version 2.7.2 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/apt#L153) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/apt#L148) [/details] ---------------- @@ -154,7 +154,7 @@ Requires YunoHost version 2.6.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/apt#L224) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/apt#L224) [/details] ---------------- @@ -165,14 +165,13 @@ Requires YunoHost version 2.6.4 or higher. **Arguments**: - `-p`, `--package=`: Packages to add as dependencies for the app. -- `-r`, `--replace`: Replace dependencies instead of adding to existing ones. **Details**:
Requires YunoHost version 3.8.1 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/apt#L294) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/apt#L355) [/details] ---------------- @@ -188,7 +187,7 @@ Requires YunoHost version 2.6.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/apt#L326) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/apt#L374) [/details] ---------------- @@ -208,7 +207,7 @@ Requires YunoHost version 3.8.1 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/apt#L340) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/apt#L405) [/details] ---------------- @@ -282,7 +281,7 @@ Requires YunoHost version 3.5.0 or higher for the argument `--not_mandatory` -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/backup#L65) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/backup#L65) [/details] ---------------- @@ -296,7 +295,7 @@ Requires YunoHost version 2.6.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/backup#L188) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/backup#L180) [/details] ---------------- @@ -341,7 +340,7 @@ Requires YunoHost version 3.5.0 or higher for the argument --not_mandatory -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/backup#L248) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/backup#L239) [/details] ---------------- @@ -360,7 +359,7 @@ Requires YunoHost version 2.6.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/backup#L326) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/backup#L311) [/details] ---------------- @@ -382,7 +381,7 @@ Requires YunoHost version 2.6.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/backup#L358) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/backup#L355) [/details] ---------------- @@ -401,7 +400,7 @@ Requires YunoHost version 3.3.1 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/backup#L391) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/backup#L386) [/details] ---------------- @@ -424,7 +423,7 @@ Requires YunoHost version 2.7.2 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/backup#L426) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/backup#L421) [/details] ---------------- @@ -447,11 +446,14 @@ Requires YunoHost version 2.7.2 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/backup#L479) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/backup#L469) [/details] ---------------- +## CONFIG + + ## FAIL2BAN #### ynh_add_fail2ban_config @@ -522,7 +524,7 @@ Requires YunoHost version 4.1.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/fail2ban#L65) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/fail2ban#L65) [/details] ---------------- @@ -536,7 +538,7 @@ Requires YunoHost version 3.5.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/fail2ban#L126) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/fail2ban#L124) [/details] ---------------- @@ -564,7 +566,7 @@ Requires YunoHost version 3.8.1 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/hardware#L13) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/hardware#L13) [/details] ---------------- @@ -587,7 +589,7 @@ Requires YunoHost version 3.8.1 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/hardware#L82) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/hardware#L75) [/details] ---------------- @@ -608,7 +610,7 @@ Requires YunoHost version 2.4.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/logging#L10) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/logging#L10) [/details] ---------------- @@ -625,7 +627,7 @@ Requires YunoHost version 3.2.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/logging#L30) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/logging#L30) [/details] ---------------- @@ -642,7 +644,7 @@ Requires YunoHost version 3.2.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/logging#L75) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/logging#L56) [/details] ---------------- @@ -659,142 +661,102 @@ Requires YunoHost version 3.2.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/logging#L92) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/logging#L73) [/details] ---------------- #### ynh_exec_err [details summary="Execute a command and print the result as an error" class="helper-card-subtitle text-muted"] -**Usage**: `ynh_exec_err "your_command [ | other_command ]"` +**Usage**: `ynh_exec_err your command and args` **Arguments**: - `command`: command to execute **Details**:
-When using pipes, double quotes are required - otherwise, this helper will run the first command, and the whole output will be sent through the next pipe. - -If the command to execute uses double quotes, they have to be escaped or they will be interpreted and removed. +Note that you should NOT quote the command but only prefix it with ynh_exec_err Requires YunoHost version 3.2.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/logging#L113) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/logging#L92) [/details] ---------------- #### ynh_exec_warn [details summary="Execute a command and print the result as a warning" class="helper-card-subtitle text-muted"] -**Usage**: `ynh_exec_warn "your_command [ | other_command ]"` +**Usage**: `ynh_exec_warn your command and args` **Arguments**: - `command`: command to execute **Details**:
-When using pipes, double quotes are required - otherwise, this helper will run the first command, and the whole output will be sent through the next pipe. - -If the command to execute uses double quotes, they have to be escaped or they will be interpreted and removed. +Note that you should NOT quote the command but only prefix it with ynh_exec_warn Requires YunoHost version 3.2.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/logging#L127) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/logging#L113) [/details] ---------------- #### ynh_exec_warn_less [details summary="Execute a command and force the result to be printed on stdout" class="helper-card-subtitle text-muted"] -**Usage**: `ynh_exec_warn_less "your_command [ | other_command ]"` +**Usage**: `ynh_exec_warn_less your command and args` **Arguments**: - `command`: command to execute **Details**:
-When using pipes, double quotes are required - otherwise, this helper will run the first command, and the whole output will be sent through the next pipe. - -If the command to execute uses double quotes, they have to be escaped or they will be interpreted and removed. +Note that you should NOT quote the command but only prefix it with ynh_exec_warn Requires YunoHost version 3.2.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/logging#L141) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/logging#L134) [/details] ---------------- #### ynh_exec_quiet [details summary="Execute a command and redirect stdout in /dev/null" class="helper-card-subtitle text-muted"] -**Usage**: `ynh_exec_quiet "your_command [ | other_command ]"` +**Usage**: `ynh_exec_quiet your command and args` **Arguments**: - `command`: command to execute **Details**:
-When using pipes, double quotes are required - otherwise, this helper will run the first command, and the whole output will be sent through the next pipe. - -If the command to execute uses double quotes, they have to be escaped or they will be interpreted and removed. +Note that you should NOT quote the command but only prefix it with ynh_exec_warn Requires YunoHost version 3.2.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/logging#L155) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/logging#L155) [/details] ---------------- #### ynh_exec_fully_quiet [details summary="Execute a command and redirect stdout and stderr in /dev/null" class="helper-card-subtitle text-muted"] -**Usage**: `ynh_exec_fully_quiet "your_command [ | other_command ]"` +**Usage**: `ynh_exec_quiet your command and args` **Arguments**: - `command`: command to execute **Details**:
-When using pipes, double quotes are required - otherwise, this helper will run the first command, and the whole output will be sent through the next pipe. - -If the command to execute uses double quotes, they have to be escaped or they will be interpreted and removed. +Note that you should NOT quote the command but only prefix it with ynh_exec_quiet Requires YunoHost version 3.2.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/logging#L169) -[/details] ----------------- - -#### ynh_print_OFF -[details summary="Remove any logs for all the following commands." class="helper-card-subtitle text-muted"] - -**Usage**: `ynh_print_OFF` - -**Details**:
-WARNING: You should be careful with this helper, and never forget to use ynh_print_ON as soon as possible to restore the logging. - -Requires YunoHost version 3.2.0 or higher. - - - -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/logging#L180) -[/details] ----------------- - -#### ynh_print_ON -[details summary="Restore the logging after ynh_print_OFF" class="helper-card-subtitle text-muted"] - -**Usage**: `ynh_print_ON` - -**Details**:
-Requires YunoHost version 3.2.0 or higher. - - - -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/logging#L189) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/logging#L176) [/details] ---------------- @@ -814,7 +776,7 @@ Requires YunoHost version 3.5.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/logging#L217) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/logging#L237) [/details] ---------------- @@ -829,46 +791,7 @@ Requires YunoHost version 3.6.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/logging#L302) -[/details] ----------------- - -#### ynh_debug -[details summary="Debugger for app packagers" class="helper-card-subtitle text-muted"] - -**Usage**: `ynh_debug [--message=message] [--trace=1/0]` - -**Arguments**: -- `-m`, `--message=`: The text to print -- `-t`, `--trace=`: Turn on or off the trace of the script. Usefull to trace nonly a small part of a script. - -**Details**:
-Requires YunoHost version 3.5.0 or higher. - - - -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/logging#L313) -[/details] ----------------- - -#### ynh_debug_exec -[details summary="Execute a command and print the result as debug" class="helper-card-subtitle text-muted"] - -**Usage**: `ynh_debug_exec "your_command [ | other_command ]"` - -**Arguments**: -- `command`: command to execute - -**Details**:
-When using pipes, double quotes are required - otherwise, this helper will run the first command, and the whole output will be sent through the next pipe. - -If the command to execute uses double quotes, they have to be escaped or they will be interpreted and removed. - -Requires YunoHost version 3.5.0 or higher. - - - -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/logging#L369) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/logging#L318) [/details] ---------------- @@ -897,7 +820,7 @@ Requires YunoHost version 3.2.0 or higher for the argument `--specific_user` -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/logrotate#L18) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/logrotate#L18) [/details] ---------------- @@ -911,7 +834,7 @@ Requires YunoHost version 2.6.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/logrotate#L106) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/logrotate#L105) [/details] ---------------- @@ -928,7 +851,7 @@ Requires YunoHost version 4.2 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/multimedia#L11) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/multimedia#L11) [/details] ---------------- @@ -948,7 +871,7 @@ Requires YunoHost version 4.2 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/multimedia#L65) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/multimedia#L64) [/details] ---------------- @@ -965,7 +888,7 @@ Requires YunoHost version 4.2 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/multimedia#L94) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/multimedia#L93) [/details] ---------------- @@ -998,7 +921,7 @@ Requires YunoHost version 2.2.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/mysql#L15) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/mysql#L15) [/details] ---------------- @@ -1016,7 +939,7 @@ Requires YunoHost version 2.2.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/mysql#L36) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/mysql#L36) [/details] ---------------- @@ -1034,7 +957,7 @@ Requires YunoHost version 2.2.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/mysql#L61) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/mysql#L60) [/details] ---------------- @@ -1055,7 +978,7 @@ Requires YunoHost version 2.2.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/mysql#L131) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/mysql#L128) [/details] ---------------- @@ -1074,7 +997,7 @@ Requires YunoHost version 2.2.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/mysql#L163) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/mysql#L160) [/details] ---------------- @@ -1096,7 +1019,7 @@ Requires YunoHost version 2.6.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/mysql#L203) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/mysql#L198) [/details] ---------------- @@ -1114,7 +1037,7 @@ Requires YunoHost version 2.6.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/mysql#L229) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/mysql#L224) [/details] ---------------- @@ -1138,7 +1061,7 @@ Requires YunoHost version 2.6.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/network#L12) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/network#L12) [/details] ---------------- @@ -1159,7 +1082,7 @@ Requires YunoHost version 3.8.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/network#L37) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/network#L36) [/details] ---------------- @@ -1180,7 +1103,7 @@ Requires YunoHost version 2.2.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/network#L104) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/network#L99) [/details] ---------------- @@ -1201,7 +1124,7 @@ Requires YunoHost version 2.2.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/network#L126) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/network#L119) [/details] ---------------- @@ -1229,7 +1152,7 @@ Requires YunoHost version 4.1.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/nginx#L19) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/nginx#L19) [/details] ---------------- @@ -1243,7 +1166,7 @@ Requires YunoHost version 2.7.2 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/nginx#L41) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/nginx#L39) [/details] ---------------- @@ -1297,7 +1220,7 @@ Requires YunoHost version 2.7.12 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/nodejs#L72) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/nodejs#L73) [/details] ---------------- @@ -1321,7 +1244,7 @@ Requires YunoHost version 2.7.12 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/nodejs#L112) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/nodejs#L113) [/details] ---------------- @@ -1339,7 +1262,7 @@ Requires YunoHost version 2.7.12 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/nodejs#L193) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/nodejs#L190) [/details] ---------------- @@ -1412,7 +1335,7 @@ Requires YunoHost version 3.7.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/permission#L66) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/permission#L66) [/details] ---------------- @@ -1431,7 +1354,7 @@ Requires YunoHost version 3.7.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/permission#L161) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/permission#L152) [/details] ---------------- @@ -1449,7 +1372,7 @@ Requires YunoHost version 3.7.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/permission#L178) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/permission#L169) [/details] ---------------- @@ -1472,7 +1395,7 @@ Requires YunoHost version 3.7.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/permission#L201) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/permission#L192) [/details] ---------------- @@ -1495,7 +1418,7 @@ Requires YunoHost version 3.7.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/permission#L276) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/permission#L260) [/details] ---------------- @@ -1516,7 +1439,7 @@ Requires YunoHost version 3.7.1 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/permission#L351) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/permission#L329) [/details] ---------------- @@ -1531,7 +1454,7 @@ Requires YunoHost version 4.1.2 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/permission#L384) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/permission#L359) [/details] ---------------- @@ -1542,7 +1465,7 @@ Requires YunoHost version 4.1.2 or higher. **Example**: `if ynh_legacy_permissions_exists then ynh_legacy_permissions_delete_all # You can recreate the required permissions here with ynh_permission_create fi Requires YunoHost version 4.1.2 or higher.` -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/permission#L405) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/permission#L379) [/details] ---------------- @@ -1600,7 +1523,7 @@ Requires YunoHost version 4.1.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/php#L59) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/php#L59) [/details] ---------------- @@ -1614,7 +1537,7 @@ Requires YunoHost version 2.7.2 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/php#L270) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/php#L248) [/details] ---------------- @@ -1633,7 +1556,7 @@ Requires YunoHost version 4.2 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/php#L572) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/php#L479) [/details] ---------------- @@ -1653,7 +1576,7 @@ Requires YunoHost version 4.2 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/php#L598) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/php#L505) [/details] ---------------- @@ -1686,7 +1609,7 @@ Requires YunoHost version 3.5.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/postgresql#L18) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/postgresql#L18) [/details] ---------------- @@ -1704,7 +1627,7 @@ Requires YunoHost version 3.5.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/postgresql#L39) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/postgresql#L39) [/details] ---------------- @@ -1722,7 +1645,7 @@ Requires YunoHost version 3.5.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/postgresql#L65) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/postgresql#L64) [/details] ---------------- @@ -1743,7 +1666,7 @@ Requires YunoHost version 3.5.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/postgresql#L137) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/postgresql#L135) [/details] ---------------- @@ -1761,7 +1684,7 @@ Requires YunoHost version 3.5.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/postgresql#L170) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/postgresql#L168) [/details] ---------------- @@ -1779,7 +1702,7 @@ Requires YunoHost version 3.5.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/postgresql#L193) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/postgresql#L190) [/details] ---------------- @@ -1801,7 +1724,7 @@ Requires YunoHost version 2.7.13 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/postgresql#L232) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/postgresql#L228) [/details] ---------------- @@ -1819,7 +1742,7 @@ Requires YunoHost version 2.7.13 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/postgresql#L263) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/postgresql#L259) [/details] ---------------- @@ -1836,7 +1759,7 @@ Requires YunoHost version 2.7.13 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/postgresql#L296) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/postgresql#L290) [/details] ---------------- @@ -1857,7 +1780,7 @@ Requires YunoHost version 2.2.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/setting#L10) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/setting#L10) [/details] ---------------- @@ -1876,7 +1799,7 @@ Requires YunoHost version 2.2.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/setting#L34) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/setting#L36) [/details] ---------------- @@ -1894,7 +1817,7 @@ Requires YunoHost version 2.2.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/setting#L58) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/setting#L62) [/details] ---------------- @@ -1914,7 +1837,7 @@ Requires YunoHost version 2.6.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/setting#L118) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/setting#L123) [/details] ---------------- @@ -1935,7 +1858,7 @@ Requires YunoHost version 2.6.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/setting#L140) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/setting#L145) [/details] ---------------- @@ -1959,7 +1882,7 @@ Requires YunoHost version 2.2.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/string#L12) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/string#L12) [/details] ---------------- @@ -1981,7 +1904,7 @@ Requires YunoHost version 2.6.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/string#L37) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/string#L37) [/details] ---------------- @@ -2003,7 +1926,7 @@ Requires YunoHost version 2.7.7 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/string#L66) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/string#L68) [/details] ---------------- @@ -2026,7 +1949,7 @@ Requires YunoHost version 2.2.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/string#L98) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/string#L100) [/details] ---------------- @@ -2052,7 +1975,7 @@ Requires YunoHost version 4.1.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/systemd#L15) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/systemd#L15) [/details] ---------------- @@ -2069,7 +1992,7 @@ Requires YunoHost version 2.7.2 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/systemd#L42) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/systemd#L42) [/details] ---------------- @@ -2091,7 +2014,7 @@ Requires YunoHost version 3.5.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/systemd#L72) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/systemd#L71) [/details] ---------------- @@ -2115,7 +2038,7 @@ Requires YunoHost version 2.2.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/user#L12) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/user#L12) [/details] ---------------- @@ -2137,7 +2060,7 @@ Requires YunoHost version 2.2.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/user#L33) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/user#L33) [/details] ---------------- @@ -2155,7 +2078,7 @@ Requires YunoHost version 2.4.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/user#L53) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/user#L53) [/details] ---------------- @@ -2174,7 +2097,7 @@ Requires YunoHost version 2.2.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/user#L64) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/user#L64) [/details] ---------------- @@ -2193,7 +2116,7 @@ Requires YunoHost version 3.5.0.2 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/user#L82) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/user#L82) [/details] ---------------- @@ -2222,7 +2145,7 @@ Requires YunoHost version 2.6.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/user#L111) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/user#L111) [/details] ---------------- @@ -2239,7 +2162,7 @@ Requires YunoHost version 2.6.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/user#L156) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/user#L153) [/details] ---------------- @@ -2253,7 +2176,7 @@ Requires YunoHost version 4.1.7 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/user#L184) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/user#L179) [/details] ---------------- @@ -2274,7 +2197,7 @@ Requires YunoHost version 2.6.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/utils#L58) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/utils#L58) [/details] ---------------- @@ -2323,7 +2246,7 @@ Requires YunoHost version 2.6.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/utils#L102) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/utils#L102) [/details] ---------------- @@ -2349,7 +2272,7 @@ Requires YunoHost version 2.6.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/utils#L279) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/utils#L263) [/details] ---------------- @@ -2411,7 +2334,70 @@ Requires YunoHost version 4.1.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/utils#L356) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/utils#L348) +[/details] +---------------- + +#### ynh_read_var_in_file +[details summary="Get a value from heterogeneous file (yaml, json, php, python...)" class="helper-card-subtitle text-muted"] + +**Usage**: `ynh_read_var_in_file --file=PATH --key=KEY` + +**Arguments**: +- `-f`, `--file=`: the path to the file +- `-k`, `--key=`: the key to get + +**Details**:
+This helpers match several var affectation use case in several languages +We don't use jq or equivalent to keep comments and blank space in files +This helpers work line by line, it is not able to work correctly +if you have several identical keys in your files + +Example of line this helpers can managed correctly +.yml + title: YunoHost documentation + email: 'yunohost@yunohost.org' +.json + "theme": "colib'ris", + "port": 8102 + "some_boolean": false, + "user": null +.ini + some_boolean = On + action = "Clear" + port = 20 +.php + $user= + user => 20 +.py + USER = 8102 + user = 'https://donate.local' + CUSTOM['user'] = 'YunoHost' + +Requires YunoHost version 4.3 or higher. + + + +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/utils#L499) +[/details] +---------------- + +#### ynh_write_var_in_file +[details summary="Set a value into heterogeneous file (yaml, json, php, python...)" class="helper-card-subtitle text-muted"] + +**Usage**: `ynh_write_var_in_file --file=PATH --key=KEY --value=VALUE` + +**Arguments**: +- `-f`, `--file=`: the path to the file +- `-k`, `--key=`: the key to set +- `-v`, `--value=`: the value to set + +**Details**:
+Requires YunoHost version 4.3 or higher. + + + +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/utils#L576) [/details] ---------------- @@ -2427,7 +2413,7 @@ Requires YunoHost version 2.7.12 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/utils#L502) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/utils#L688) [/details] ---------------- @@ -2444,7 +2430,7 @@ Requires YunoHost version 2.6.4 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/utils#L532) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/utils#L740) [/details] ---------------- @@ -2464,7 +2450,7 @@ Requires YunoHost version 3.5.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/utils#L608) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/utils#L802) [/details] ---------------- @@ -2489,7 +2475,7 @@ Requires YunoHost version 3.5.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/utils#L638) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/utils#L832) [/details] ---------------- @@ -2512,7 +2498,7 @@ Requires YunoHost version 3.5.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/utils#L668) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/utils#L861) [/details] ---------------- @@ -2535,7 +2521,7 @@ Requires YunoHost version 3.5.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/utils#L693) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/utils#L886) [/details] ---------------- @@ -2567,7 +2553,6 @@ Requires YunoHost version 3.8.0 or higher. -[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/1ade4287aaf7976b3c87cd5f889382681a29fcee/data/helpers.d/utils#L724) +[Dude, show me the code!](https://github.com/YunoHost/yunohost/blob/875677a8632375647654194068ace6153e91c6fa/data/helpers.d/utils#L916) [/details] ---------------- -