Commit graph

28 commits

Author SHA1 Message Date
Maniack Crudelis
bc08c5c872
Use getopts for ynh_setup_source helper 2018-12-29 18:17:08 +01: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
Maniack Crudelis
bf45cd7c4b New helpers ynh_backup_after_failed_upgrade and ynh_backup_before_upg… (#289)
* New helpers ynh_backup_after_failed_upgrade and ynh_backup_before_upgrade
Create a backup at the beginning of upgrade script.
Then, if the upgrade script failed, remove the app and restore it.
The backup is kept, to provide a way to restore if the upgrade is finally a bad thing.
* Implement @JimboJoe's comments
* Indentation
* --ignore-hooks -> --ignore-system
2017-07-28 18:53:43 +02:00
JimboJoe
fee4272eac Fix ynh_local_curl (#306)
POST arguments aren't given to the request if quotes are used.
2017-05-11 23:01:49 +02:00
JimboJoe
c8647fc21f [fix] ynh_setup_source: use YNH_CWD instead of YNH_EXECUTION_DIR (#305)
Following this discussion: https://github.com/YunoHost/yunohost/pull/282#issuecomment-299637999
2017-05-07 19:05:42 +02:00
Maniack Crudelis
0e44a42274 New helper ynh_setup_source (#282)
* New helper ynh_setup_source
THE trollest helper :D
An helper to handle download, checksum, copy, patches, extra files and even a way to install without internet connection.
Really usefull to simplify this part of the packaging.
* [fix] Source id and pkg _dir missing, strip-components deactivation
* [fix] Replace tab by 4 spaces
* [fix] False default value in ynh_setup_source helpers
* [fix] Empty var failed on set -u into ynh_setup_source
* [fix] Multiple patch on setup sources helper
* [fix] Doc, patch and extra_file in ynh_setup helpers
* [enh] Allow to use ynh_setup_source in another dir
* [fix] Doc ynh_get_plain_key
* [fix] Missing default value in ynh_setup_source
* Missing closing } after merge with unstable ?
2017-05-03 19:19:41 +02:00
Maniack Crudelis
558323f6f2 [enh] Fix curl helper without POST data
- Allow to use this helper without any POST data
- Keep curl more quiet
2017-04-26 19:51:51 +02:00
Maniack Crudelis
712e69d830 New helper ynh_local_curl (#288)
* New helper ynh_curl_abstract
Just an abstraction around curl command.
To prevent forgot arguments and simplify this difficult command.
* [enh] Switch args of ynh_curl_abstract
* [enh] Rename ynh_curl_abstract into ynh_local_curl
* Splitting the various key=value into several arguments
* Comment to clarify bash command
* Adding comment about $domain and $path_url
2017-04-06 15:33:56 +02:00
Julien Malik
5b7e16384e [enh] move /usr/share/yunohost/apps/helpers to /usr/share/yunohost/helpers since it became of more general use 2016-03-12 00:12:59 +01:00
Renamed from data/apps/helpers.d/utils (Browse further)