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
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
yalh76
9389f4669c
simplification
2020-04-16 14:42:59 +02:00
Josué Tille
ceeb34f68e
Use 'dpkg --compare-versions'
2020-04-15 15:52:22 +02:00
Josué Tille
d947724b70
Fix typo
2020-04-15 12:11:51 +02:00
Josué Tille
5315807ea7
Cleanup comment
2020-04-14 14:04:26 +02:00
Josué Tille
17e8bdedf6
Rename heper
2020-04-14 14:03:04 +02:00
Josué Tille
fec5d3d084
Rename variable
2020-04-14 14:01:28 +02:00
Josué Tille
3d51e235e8
Add comments
2020-04-14 14:01:22 +02:00
Maniack Crudelis
3484f73506
Clean and syntax
2020-04-14 12:35:35 +02:00
Josué Tille
4c5edb533a
Merge branch 'stretch-unstable' into abort_if_up_to_date_manifest
2020-04-13 17:43:47 +02:00