Alexandre Aubin
86f22d1b46
Fix warning when there's no patches folder
2021-04-05 18:39:08 +02:00
Alexandre Aubin
42f8c9dcc1
Fix ynh_requirement parsing
2021-04-05 18:35:42 +02:00
Alexandre Aubin
4607d57512
Merge pull request #1188 from YunoHost/sane-default-permission-for-files
...
Sane default permissions for files added using ynh_add_config and ynh_setup_source
2021-04-05 18:09:58 +02:00
Alexandre Aubin
4acfbdeade
Fix oopsies, fix and add test for ynh_setup_source with patch
2021-04-01 18:26:18 +02:00
Alexandre Aubin
45b55d1050
Add --keep to ynh_setup_source to keep files that may be overwritten during upgrade ( #1200 )
2021-03-31 17:41:20 +02:00
Alexandre Aubin
514112a538
Misc permission tweak, set everything as owned by root by default
2021-03-25 16:03:18 +01:00
Alexandre Aubin
e27ac6ff2c
Rely on YNH_APP_BASEDIR to check the sources/ dir
2021-03-24 20:28:42 +01:00
Alexandre Aubin
d98ec6ce35
Download ynh_setup_source stuff to /var/cache/yunohost/download
2021-03-24 20:28:42 +01:00
Alexandre Aubin
f84b6535f3
Merge pull request #1167 from Salamandar/fix_helper_doc
...
helper doc : Fix all doc (mostly)
2021-03-17 15:41:26 +01:00
Alexandre Aubin
ac26925b91
Sane default permissions for files added using ynh_add_config and ynh_setup_source
2021-03-13 00:18:17 +01:00
Alexandre Aubin
ce04570bfd
helpers: Simplify manifest path / parsing
2021-03-12 23:18:25 +01:00
Alexandre Aubin
db93b82b23
ynh_setup_source: add a check that we could actually parse SOURCE_URL
2021-03-08 18:41:54 +01:00
72da2ad8e3
helper doc fixes : utils
2021-03-03 11:17:59 +01:00
yalh76
c86d432783
Fixing ___APP__
2021-02-28 18:56:30 +01:00
yalh76
fcea5a6af0
Make grep lazy
2021-02-28 13:38:10 +01:00
yalh76
c6d14219cc
Force destination to be replaced
2021-02-27 20:39:55 +01:00
Alexandre Aubin
33f291be96
Fix ynh_replace_vars again, mystical bash is mystic...
2021-02-25 16:36:28 +01:00
Alexandre Aubin
53576a43e1
Merge pull request #1160 from YunoHost/use-jq-in-helpers
...
Use jq / output-as json to get info from yunohost commands instead of scraping with grep
2021-02-25 04:20:24 +01:00
Alexandre Aubin
d0088053fb
Merge pull request #1171 from YunoHost/fix-replace-string-escape
...
Gotta escape \ during ynh_replace_vars
2021-02-23 14:24:51 +01:00
Alexandre Aubin
acfea3d76d
Define YNH_APP_BASEDIR to be able to properly point to conf folder depending on the app script we're running
2021-02-23 02:17:04 +01:00
Alexandre Aubin
59da04e92b
Gotta escape \ during ynh_replace_vars
2021-02-22 23:46:12 +01:00
Alexandre Aubin
06185a2392
Use jq / output-as json to get info from yunohost commands instead of scraping with grep
2021-02-02 03:45:13 +01:00
Alexandre Aubin
c023b177fe
Normalize conf template handling for nginx, php-fpm, systemd and fail2ban using ynh_add_config
2021-01-23 04:33:28 +01:00
Alexandre Aubin
b98dd8585b
Merge pull request #1116 from YunoHost/enh-python3
...
Python2 -> Python3
2021-01-19 23:06:57 +01:00
Kayou
5c7e503316
Typo
2021-01-19 11:20:07 +01:00
Kay0u
090cd0b13a
copy the behavior of the old ynh_check_app_version_changed helper
2021-01-13 11:34:41 +01:00
Kay0u
2ace0741c4
set ynh_check_app_version_changed as deprecated
2021-01-12 13:53:38 +01:00
Alexandre Aubin
c43a51ba30
Merge branch 'dev' into enh-python3
2021-01-10 18:31:19 +01:00
Alexandre Aubin
a665c702d0
Annnd of course we have references to python2 in bash stuff and other misc scripts
2021-01-10 02:07:24 +01:00
Alexandre Aubin
30dde208dc
Fix ynh_replace_vars in case var is define but empty
2021-01-09 23:57:09 +01:00
Alexandre Aubin
8f1b05f3cf
[fix] Prevent info from being redacted (because of foobar_key=) by the logging system
2021-01-09 18:08:23 +01:00
Kayou
7a0aa851a6
Keep helpers consistent
2020-11-26 11:00:24 +01:00
Alexandre Aubin
144f98ad44
Gotta define a default value to avoid unbound variable
2020-11-10 17:09:23 +01:00
Alexandre Aubin
ea685c46d4
Merge pull request #1055 from YunoHost/add-config-helper
...
Add ynh_add_config helper
2020-09-24 21:25:34 +02:00
Alexandre Aubin
ebe6c8a5f2
Apply suggestions from code review (comment indentation)
...
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
2020-09-20 21:15:59 +02:00
Alexandre Aubin
3b94b23516
Update data/helpers.d/utils
...
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
2020-09-20 20:37:45 +02:00
Alexandre Aubin
1e79e50d68
Add ynh_add_config helper
2020-09-20 20:01:55 +02:00
Augustin Trancart
ffcd0e33ac
Fix ynh_app_upstream_version : restore ability to read manifest
...
The documentation was saying A, the code was doing B, and calling
functions were expecting both A and B (see
ynh_check_app_version_changed). So this commit aims at making
everyone agree, by matching usage.
2020-09-19 15:29:38 +02:00
Josue-T
7c6748e928
Merge branch '4.1' into abort_if_up_to_date_manifest
2020-08-18 21:07:30 +02:00
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
Josué Tille
95b7885890
Merge remote-tracking branch 'upstream/stretch-unstable' into abort_if_up_to_date_manifest
2020-05-02 11:22:22 +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