Commit graph

463 commits

Author SHA1 Message Date
Alexandre Aubin
30ca5bbd4a
Merge pull request #520 from YunoHost/add_helper_ynh_handle_getopts_args
Add the internal helper ynh_handle_getopts_args
2018-09-20 20:05:23 +02:00
ljf (zamentur)
10770aebd9
[fix] Silent output/warning but display errors 2018-09-19 16:35:23 +02:00
Maniack Crudelis
9550bf3eb1 Add many print helpers (#523)
* Add many print helpers

* Typo fix
2018-09-07 16:50:17 +02:00
Bram
c3d8da7f07
Merge pull request #511 from Josue-T/patch-10
Add su directive as option for logroate
2018-09-06 00:14:06 +02:00
Maniack Crudelis
22cff38bbb
Revert Indentation typo
It's part of the syntax
2018-09-05 19:57:11 +02:00
Alexandre Aubin
26fe3d8c95
Indentation typo 2018-09-02 18:02:32 +02:00
Alexandre Aubin
fa2d80bce7
Remove sudo 2018-08-29 13:27:25 +02:00
Alexandre Aubin
62c8f577c9
Remove old sudo 2018-08-29 13:25:29 +02:00
Maniack Crudelis
7f7fb80b38
Add ynh_delete_file_checksum 2018-08-28 16:49:20 +02:00
Alexandre Aubin
e0533a1a6a
Really important contribution to the PR 🥷 2018-08-28 00:29:24 +02:00
Maniack Crudelis
0fd9e179f1
Add ynh_check_app_version_changed
- Add the new helper ynh_check_app_version_changed to check the version before an upgrade
- Add also the helpers ynh_read_manifest, ynh_app_upstream_version and ynh_app_package_version.
- These previous helper have been modified (from the experimental version) to support getopts
- ynh_check_app_version_changed has been modified to use ynh_app_upstream_version
2018-08-28 00:14:37 +02:00
Maniack Crudelis
7752bc0fb7
Update fail2ban helpers from experimental helpers. 2018-08-27 21:51:36 +02:00
Maniack Crudelis
45ad53eb43
Add the internal helper ynh_handle_getopts_args 2018-08-27 21:44:22 +02:00
Josue-T
cdd510642f Set equiv as base dependance (#515) 2018-08-25 19:45:55 +02:00
Alexandre Aubin
0eaee300c6
Merge branch 'stretch-unstable' into app-stdinfo 2018-08-23 21:25:29 +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
f7563b2cb4
Merge branch 'stretch-unstable' into app-stdinfo 2018-08-22 18:42:23 +02:00
Josue-T
36fd98e020
Fix switch user/group 2018-08-03 09:38:39 +02:00
Josue-T
e2567c82f1
Add su directive as option for logroate 2018-07-31 17:30:26 +02:00
Alexandre Aubin
344ae6bbf2
Fix nodejs removal in ynh_remove_nodejs 2018-07-01 18:37:34 +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
Laurent Peuch
5e77e6e108 [fix] local variables and various fix on psql helpers 2018-06-17 01:39:22 +02:00
ljf (zamentur)
e7a4b6df2c [enh] Add postgresql helpers (#238)
* [enh] Add postgresql helpers
* Updated from experimental helpers repo
* Update postgresql helpers, c.f. Experimental_helpers/#13
2018-05-21 01:28:08 +02:00
Alexandre Aubin
711645c750
Merge branch 'unstable' into ynh-render-template-with-jinja2 2018-05-21 01:00:57 +02:00
Jimmy Monin
561f1aecb0 Update to latest version from Experimental_helpers 2018-05-19 10:11:16 +02:00
Bram
deec04e6d5
Merge pull request #475 from YunoHost/remove_qq
[enh] We need a fucking log
2018-05-17 05:30:45 +02:00
Bram
923ce03d0b
Merge pull request #439 from YunoHost/compatibility_levels
[fix] Remove warning from equivs
2018-05-16 18:50:53 +02:00
Bram
28af17f33f
Merge pull request #462 from Josue-T/patch-8
[enh] Improve ynh_add_nginx_config
2018-05-16 06:49:26 +02:00
Maniack Crudelis
2bc5e82b9c
[enh] We need a fucking log
Die quiet ! Die !!!
2018-05-15 19:51:13 +02:00
Josué Tille
82b598b5ca Fix from comment PR #462 2018-05-12 21:31:12 +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
Josue-T
0f8cef9cf8
Helper - improve ynh_add_nginx_config
Add 2 new features :
- Permit to replace some others variables in the template
- Manage automatically the redirection (alias_transversal issue fix)
2018-05-10 00:05:46 +02:00
JimboJoe
a3c6cc2ca8
Typo fix 2018-05-08 18:21:52 +02:00
Jimmy Monin
24449a5004 Update ynh_system_user_create comment with explicit examples 2018-05-08 09:21:41 +02:00
Josue-T
51fdef0c53 Helper - Add no_extract_option 2018-05-05 10:41:11 +02:00
Jimmy Monin
5f23751479 Update ynh_system_user_create helper to allow creating users with login shell 2018-04-29 17:43:13 +02:00
Maniack Crudelis
c20fa217a7
fix bad line 2018-04-24 00:02:07 +02:00
Josue-T
ab2b7db0cf Trigger error if app dependency install fails (Redmine 1006) + allow for 'or' in dependencies (#381)
* Solve issue https://dev.yunohost.org/issues/1006
I purpose this change to improve the helper 'ynh_install_app_dependencies'.
Before this change if the dependences are not installable the install didn't fail. By these change the helper generate an error and the install stop.

* Get the error if apt fail
* Remove old change
* Add dependence choice
2018-04-13 14:31:36 +02:00
Maniack Crudelis
6c7fb0cef2 Fix n usage (#446)
* Fix n usage
* Fix ynh_remove_nodejs as well
2018-04-13 14:28:58 +02:00
Maniack Crudelis
91d0965569 Add nodejs helpers (#441)
* Add nodejs helpers
* Typo fix
* Add explanation for load_n_path
* Remove useless line
* Remove another old useless line
* Move to a dedicated file
* Move to a dedicated file
* Fix check n already installed
2018-03-30 23:05:04 +02:00
Josue-T
bdf923aafc Solve issue with ynh_restore_file (#384)
* Solve issue with ynh_restore_file

While we use the `ynh_restore_file` if the destination already exist the `mv` fonction don't work correctly. By this commit the old directory is renamed.

* Move to /home/yunohost.conf file if already exist in restoration

* Remove if the file is bigger than 500Mo

* Use a local variable

* Fix DEST_PATH

* Fix comment and typo

* More precise comment regarding the behavior if DEST_PATH exists
2018-03-15 18:58:11 +01:00
Maniack Crudelis
65dab2022c
Merge branch 'unstable' into backup_core_only 2018-03-15 17:27:40 +01:00
Alexandre Aubin
af22474a50 Add some [internal] flags in the comment to hide a few helpers from autodoc 2018-03-10 19:01:37 +01:00
Alexandre Aubin
935b972d6e Misc fixes in the helpers to clean the autodoc 2018-03-09 17:55:07 +01:00
Maniack Crudelis
8652435d8a
[fix] Remove warning from equivs 2018-03-08 18:53:21 +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
Laurent Peuch
a343e39dda
Merge pull request #425 from Josue-T/systemd_config
Add service name as arg (optionnal) in helper systemd
2018-02-09 00:40:24 +01:00
Laurent Peuch
62b3674f4c
Merge pull request #432 from YunoHost/backup_upgrade_verbose
[enh] --verbose for backup during upgrade
2018-02-08 03:17:41 +01:00