Commit graph

139 commits

Author SHA1 Message Date
ljf (zamentur)
924df9733e
[enh] Use named args in helpers calls
Co-authored-by: Kayou <pierre@kayou.io>
2021-09-08 16:49:42 +02:00
ljf (zamentur)
62875c30da
[enh] Use --message
Co-authored-by: Kayou <pierre@kayou.io>
2021-09-08 15:43:59 +02:00
ljf
060d5b6dc5 [fix] ynh_write_var_in_file and after option 2021-09-06 04:20:35 +02:00
ljf
4a3d6e53c6 [fix] ynh_read_var_in_file with ini file 2021-09-06 00:58:46 +02:00
Alexandre Aubin
552db2e21d config helpers: misc style + check if file exists 2021-09-06 00:01:14 +02:00
ljf
1207b54de6 [fix] ynh_read_var_in_file with endline 2021-09-05 16:08:23 +02:00
Alexandre Aubin
3163179464 config helpers: get_var / set_var -> read/write_var_in_file 2021-09-03 17:13:31 +02:00
ljf
b28cf8cbce [enh] Prepare config panel for domain 2021-09-03 14:26:34 +02:00
ljf
60564d55c8 (enh] Config panel helpers wording 2021-09-02 17:14:27 +02:00
Salamandar
9c21fde52b
Set YNH_APP_BASEDIR as an absolute path
Ping @alexAubin :)
2021-05-18 22:03:06 +02:00
Alexandre Aubin
27c4b33065
Merge pull request #1190 from YunoHost/remove-src_filename
Remove src filename
2021-04-17 01:57:41 +02:00
ljf (zamentur)
f23982b460
[fix] Remove zip from /etc/yunohost/apps/*/scripts 2021-04-15 19:33:12 +02:00
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
Kay0u
2b947830aa
remove src_filename 2021-03-16 16:27:51 +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