Alexandre Aubin
55036fad2c
Calling ynh_print_err in case of error didn't work, and we probably want a ynh_die here
2020-06-04 01:18:52 +02:00
Alexandre Aubin
3d66eaec01
Retry wget on non-critical failures to try to avoid tmp dns issues
2020-06-04 00:48:18 +02:00
Alexandre Aubin
d29bf04e7c
Add a timeout to wget in helpers
2020-05-03 17:37:33 +02:00
Alexandre Aubin
acba1c4bc8
Comment about why not using ynh_die
2020-05-02 02:13:09 +02:00
Alexandre Aubin
e9f359e5f0
Call exit 1 directly instead of ynh_die to avoid a full arg parse just to exit..
2020-04-30 05:14:29 +02:00
Maniack Crudelis
03379007b4
Update YunoHost version requirements
2020-04-21 14:48:52 +02:00
Maniack Crudelis
6fb1e62a4c
Clean getopts arguments
2020-04-20 21:00:45 +02:00
Maniack Crudelis
3b653994c7
Standardize helper comments
2020-04-20 20:58:17 +02:00
Maniack Crudelis
e64eb3478e
Unfold AND OR
2020-04-20 15:24:07 +02:00
Maniack Crudelis
3442ab5b80
Add internal flags
2020-04-20 15:21:11 +02:00
Maniack Crudelis
b0398ae6dc
Use long arguments instead of short ones
2020-04-20 15:20:31 +02:00
Maniack Crudelis
57061b8e1d
Unfold if-then when more than one line
2020-04-19 20:31:06 +02:00
Maniack Crudelis
80964a1312
Standardize tabulations
2020-04-19 20:03:55 +02:00
Maniack Crudelis
1dd4a73e17
Replace declare -Ar by local A for args_array
2020-04-19 19:10:39 +02:00
Alexandre Aubin
ff4f644cd0
Fix possible security issue with these cookie files
2020-03-28 21:21:23 +01:00
Jimmy Monin
e6481b156f
Persist cookies between multiple ynh_local_curl calls for the same app
2020-02-29 22:07:45 +01:00
Alexandre Aubin
4e0dbe3134
Improve ynh_secure_remove to detect empty args instead of miserably saying 'Avoid deleting .'
2019-11-16 15:46:23 +01:00
Alexandre Aubin
717ec04f54
Move debug log dump from ynh_exit_properly to the core after failed app operation
2019-11-04 20:20:12 +01:00
Alexandre Aubin
7e99541064
Fix legit variable getting caught as an info to be redacted by the core
2019-07-18 18:16:46 +02:00
Alexandre Aubin
46310dbb6c
Misc fixes in helpers comments to fix/improve autogenerated doc
2019-07-11 22:51:41 +02:00
Alexandre Aubin
6cdffe77a7
Merge pull request #687 from YunoHost/crash_debugger
...
Dump ynh log if an app script fails
2019-05-22 17:42:58 +02:00
Alexandre Aubin
6376b05b60
Add a small tempo to avoid the next message being mixed up with other DEBUG messages
2019-05-18 19:29:18 +02:00
Alexandre Aubin
899d3d4f10
Improve ynh_exit_properly detection for case where failure happens right at the beginning
2019-05-18 18:46:46 +02:00
Alexandre Aubin
95d2c8f799
Inject a new environment variable YNH_INTERFACE to test inside helpers if we're using Yunohost from the CLI or API
2019-05-18 18:31:02 +02:00
Maniack Crudelis
ee33e60ab3
Set min version to 3.5.0 for helpers
2019-05-18 11:47:50 +02:00
Maniack Crudelis
a4f3248545
Restore usage of ynh_print_err
2019-05-08 01:04:57 +02:00
Maniack Crudelis
fa0e37f8da
Print the log only in CLI
2019-05-08 00:56:18 +02:00
Alexandre Aubin
6019a38919
Merge 'system' in 'utils'
2019-04-25 20:49:58 +02:00
Alexandre Aubin
267c4119a8
Rename 'filesystem' to 'backup' (backup-related stuff) and migrate some stuff to/from 'utils'
2019-04-25 20:41:38 +02:00
Alexandre Aubin
fdcf934638
Merge pull request #712 from YunoHost/use_printers
...
Use printers in helpers
2019-04-25 13:47:18 +02:00
Maniack Crudelis
30c776702f
Use printers in helpers
2019-04-13 18:21:15 +02:00
Maniack Crudelis
55f8ffb2c9
[enh] Double brackets not needed
2019-04-09 19:13:14 +02:00
Maniack Crudelis
e9aed65b0c
[Fix] src_id doesn't exist
2019-04-09 19:12:05 +02:00
Josue-T
214d1ce8fc
Add support in restore script of ynh_setup_source
...
Actually the path to the app.src file in the helper ynh_setup_source work only in install and upgrade script.
Add the support for restore script.
2019-04-07 11:27:38 +02:00
Maniack Crudelis
873bf4ae37
Add min version for all helpers
2019-02-25 18:44:21 +01:00
Kayou
b6c5b1fce9
Don't normilize path_url
2019-02-11 16:45:40 +01:00
Kayou
a0dfae269f
Update utils
2019-02-09 23:13:48 +01:00
Kayou
6ba12bb9ae
Fix ynh_local_curl
2019-02-09 23:04:21 +01:00
Alexandre Aubin
8ba8b24ee3
Merge branch 'stretch-unstable' into use_getops
2019-02-05 17:52:12 +01:00
Maniack Crudelis
63d62b4f7a
[enh] Allow to dig deeper into an archive with ynh_setup_source
2019-01-28 00:42:56 +01:00
Maniack Crudelis
e14d897c13
Merge branch 'stretch-unstable' into use_getops
2019-01-27 23:11:50 +01:00
Maniack Crudelis
cd993ff065
Print backup and restore logs into the upgrade log
...
Without --debug in upgrade command line, no more log will be printed in stdout.
Still the log will be added to the log file, and so will help to debug a backup in that case.
2019-01-24 18:32:52 +01:00
Maniack Crudelis
976f160afb
Fix getopts and its legacy mode
2019-01-04 17:11:49 +01:00
Maniack Crudelis
4bac17a162
Merge branch 'stretch-unstable' into use_getops
2018-12-29 19:07:25 +01:00
Maniack Crudelis
80c0b7bdf2
Use getopts helpers in utils
2018-12-29 18:52:12 +01:00
Maniack Crudelis
bc08c5c872
Use getopts for ynh_setup_source helper
2018-12-29 18:17:08 +01:00
Alexandre Aubin
3d81f032e9
Fixes following tests (some sshd_config options do not exists or are deprecated)
2018-11-28 17:50:20 +00:00
Josue-T
428a29936f
Fix http2 with curl ( #547 )
2018-10-19 16:08:28 +02:00
ljf (zamentur)
10770aebd9
[fix] Silent output/warning but display errors
2018-09-19 16:35:23 +02:00
Alexandre Aubin
477cf18a68
Merge pull request #463 from YunoHost/ynh-render-template-with-jinja2
...
[enh] Add ynh_render_template helper to render templates with jinja2
2018-08-23 21:22:53 +02:00