Commit graph

157 commits

Author SHA1 Message Date
Alexandre Aubin
0b4aa81f8c Merge branch 'migrate_to_bullseye' into bullseye 2021-10-13 15:12:56 +02:00
Alexandre Aubin
10a0496209
Merge branch 'dev' into lint-helpers 2021-10-12 16:45:57 +02:00
Alexandre Aubin
f769c40f96
Double quotes to prevent bash apocalypse 2021-10-07 10:37:05 +02:00
Alexandre Aubin
1d2e4e78f2 Safer, clearer ynh_secure_remove 2021-10-06 18:57:56 +02:00
Alexandre Aubin
fd1cc5e6ce Fix stuff reported by shellcheck 2021-10-06 18:56:17 +02:00
Alexandre Aubin
6048d1b0b3 Typo ogod 2021-10-06 16:24:33 +02:00
Alexandre Aubin
93cc413f4a helpers: lint/reformat with shfmt -bn -i 4 -w $FILE 2021-10-06 16:01:53 +02:00
Alexandre Aubin
ae08698253 Merge branch 'migrate_to_bullseye' into bullseye 2021-09-21 16:04:32 +02:00
Alexandre Aubin
e7844ef09e
Simplify YNH_APP_BASEDIR definition
Co-authored-by: Kayou <pierre@kayou.io>
2021-09-19 20:46:32 +02:00
Alexandre Aubin
991eea447c
[fix] YNH_APP_BASEDIR may not exist, set -eu etc 2021-09-17 22:23:08 +02:00
Kay0u
c20ac160cc
do not use ynh_print_warn here 2021-09-17 18:49:33 +02:00
Kay0u
efdd287bff
define a default YNH_APP_BASEDIR 2021-09-17 18:47:47 +02:00
Kay0u
ddd522ac54
add YNH_APP_BASEDIR in the env var 2021-09-17 18:24:50 +02:00
Alexandre Aubin
88da178cb7 Fix tests: unbound variable during backup/restore 2021-09-16 20:56:06 +02:00
Alexandre Aubin
2181bc1bab log: Improve filtering of boring/irrelevant lines 2021-09-16 20:34:24 +02:00
Alexandre Aubin
47db3e798e config helpers: Disable bash xtrace during ynh_read/write_var_from_file to avoid an horrendous amount of debug logs 2021-09-16 18:52:21 +02:00
Kay0u
eb5cb1311e
fix YNH_APP_BASEDIR during actions 2021-09-14 18:55:27 +02:00
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
Alexandre Aubin
1051dbb3cc Misc legacy cleanup 2021-05-28 02:17:40 +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