Commit graph

57 commits

Author SHA1 Message Date
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
Alexandre Aubin
e55cbb401f [fix] [microdecision] Remove --verbose and --ignore-system in backup/restore during app upgrades 2018-06-18 18:28:02 +02:00
Alexandre Aubin
711645c750
Merge branch 'unstable' into ynh-render-template-with-jinja2 2018-05-21 01:00:57 +02:00
Maniack Crudelis
1b2d5ca4bd
Merge branch 'unstable' into NO_BACKUP_UPGRADE 2018-05-12 07:59:53 +02:00
Alexandre Aubin
844b35589e Add ynh_render_template helper to render templates with jinja2 2018-05-10 01:14:53 +02:00
JimboJoe
a3c6cc2ca8
Typo fix 2018-05-08 18:21:52 +02:00
Josue-T
51fdef0c53 Helper - Add no_extract_option 2018-05-05 10:41:11 +02:00
Maniack Crudelis
c20fa217a7
fix bad line 2018-04-24 00:02:07 +02:00
Maniack Crudelis
65dab2022c
Merge branch 'unstable' into backup_core_only 2018-03-15 17:27:40 +01:00
Maniack Crudelis
79c7ba7615
Indentation fix... 2018-02-22 11:52:55 +01:00
Maniack Crudelis
b3c600ac1d
Merge branch 'unstable' into NO_BACKUP_UPGRADE 2018-02-22 11:51:27 +01:00
Maniack Crudelis
8e92bb8328
[enh] --verbose for backup during upgrade 2018-02-04 19:26:49 +01:00
Maniack Crudelis
ebdc67e02f
[enh] Allow to disable the backup during the upgrade 2018-02-04 19:21:24 +01:00
Maniack Crudelis
8a51b46d47
[Fix] Fix ynh_restore_upgradebackup 2018-01-22 19:06:37 +01:00
Maniack Crudelis
421994a3ef
[enh] Tranfert backup_core_only to BACKUP_CORE_ONLY 2017-12-22 19:01:09 +01:00
Maniack Crudelis
3a3ec7d9b5 [fix/enh] Use local variables 2017-12-17 20:26:52 +01:00
Maniack Crudelis
17ba10ad92 [fix] Fix helper for old apps without backup script (#388) 2017-11-28 19:58:51 +01:00
Maniack Crudelis
8f173543bb Fix syntax error: unexpected end of file (#338) 2017-08-02 18:44:16 +02:00
Alexandre Aubin
3a777ccbc7 [microdecision] Renaming ynh_backup_after_failed_upgrade to ynh_restore_upgradebackup 2017-07-28 14:22:04 -04:00