Commit graph

46 commits

Author SHA1 Message Date
Alexandre Aubin
16391d7374 perf: lazyloading settings_get + pass all the global settings as an env variable to the regenconf to prevent having to 'yunohost settings get' like ten times ... reduces the regenconf runtime from 35s to 23s on my machine 2023-11-28 21:12:03 +01:00
Florian
b54a71b0cf
Fix missleading example for ynh_setup_source
There shouldn't be any trailing / for folders for ynh_setup_source
2023-09-12 09:02:04 +03:00
Kayou
3dfab89c1f
check and re-download a prefetched file that doesn't match the checksum 2023-09-07 14:59:08 +02:00
Alexandre Aubin
daf51e94bd regeconf: fix security issue where apps' system conf would be owned by the app, which can enable priviledge escalation 2023-05-26 21:06:01 +02:00
Alexandre Aubin
d698c4c3de helpers: improve error message for corrupt source in ynh_setup_source, it's more relevant to cite the source url rather than the downloaded output path 2023-05-15 16:46:29 +02:00
Alexandre Aubin
e59a4f849a helpers: using YNH_APP_ID instead of YNH_APP_INSTANCE_NAME during ynh_setup_source download, for more consistency and because tests was actually failing since a while because of this 2023-05-13 19:18:40 +02:00
Alexandre Aubin
a7350a7eae appsv2/regenconf: prevent set -u to be enabled during regen-conf triggered from inside appsv2 scripts 2023-05-04 17:02:35 +02:00
Alexandre Aubin
8c25aa9b9f helpers: fix previous change about using YNH_APP_ACTION ... which is not defined in config panel context 2023-04-04 15:55:55 +02:00
Alexandre Aubin
14bf2ee48b appsv2: various fixes regarding sources toml parsing/caching 2023-04-02 20:28:29 +02:00
Alexandre Aubin
1b2fa91ff0
ynh_setup_source: fix buggy checksum mismatch handling, can't compute the sha256sum after we delete the file @_@ 2023-03-20 15:49:23 +01:00
Alexandre Aubin
eaf7a2904c helpers: fix ynh_setup_source, 'source_id' may contain slashes x_x 2023-03-11 14:57:48 +01:00
Alexandre Aubin
7491dd4c50 helpers: Fix documentation for ynh_setup_source 2023-03-09 20:57:33 +01:00
Alexandre Aubin
cb32423236
appsv2/sources: Reflect changes in ynh_setup_source doc 2023-03-09 15:18:29 +01:00
Alexandre Aubin
4102d626e5 appsv2/sources: change 'sources.toml' to a new 'sources' app resource instead 2023-03-06 19:57:12 +01:00
Alexandre Aubin
eb6d9df92f helpers: add support for a sources.toml to modernize and replace app.src format 2023-02-26 20:09:04 +01:00
ljf
ca0db0ec58
[fix] ynh_write_var_in_file should replace one occurencies 2023-02-06 15:44:50 +01:00
ljf (zamentur)
9f686a115f
[fix] Put a & into a config var 2023-02-06 14:28:06 +01:00
ljf (zamentur)
8241e26fc2
[fix] Write var in files with redundants keys 2023-02-06 13:51:32 +01:00
Alexandre Aubin
13d4e16e7d helpers/appsv2: replacement of __PHPVERSION__ should use the phpversion setting, not YNH_PHP_VERSION 2023-02-03 02:25:36 +01:00
Florent
b9dc371a1c
Fixes $app unbound when running ynh_secure_remove
Fixes this issue: https://github.com/YunoHost/issues/issues/2138
2023-02-02 16:33:01 +01:00
tituspijean
7dd2b41eef
Print size in error message if ynh_setup_source checksum fails
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2023-01-31 18:07:25 +01:00
tituspijean
90aa55599d
Output checksums if ynh_setup_source fails
during their verification.
2023-01-31 17:56:32 +01:00
Alexandre Aubin
7d9984c109 Fix a bunch of inconsistency or variable not properly replaced between final_path/install_dir 2022-12-26 15:37:28 +01:00
Alexandre Aubin
47b9b8b520 configpanels: fix inconsistent return format for boolean, sometimes 1/0, sometimes True/False -> force normalization of values when calling get() for a single setting from a config panel 2022-12-20 19:51:21 +01:00
Alexandre Aubin
55baa2aa4a
Merge pull request #1502 from YunoHost/11.1
11.1
2022-10-24 17:58:04 +02:00
Alexandre Aubin
2b3ec3ace8 helpers: fix issue parsing yunohost requirement from manifest 2022-10-09 17:02:41 +02:00
Alexandre Aubin
6171379cfb
Merge pull request #1509 from YunoHost/upgrade_replace
Able to replace sources
2022-10-06 22:50:44 +02:00
Alexandre Aubin
5b3f0440be --replace -> --full_replace 2022-10-06 19:38:50 +02:00
Dante
0252a6fd53 [fix] Config panel nested bind statements 2022-10-06 14:20:49 +02:00
yalh76
37c2f941de Able to replace sources 2022-10-01 17:15:21 +02:00
Alexandre Aubin
784e454633
Merge pull request #1505 from YunoHost/docker_extract_image
Implement docker-image-extract
2022-09-28 17:21:47 +02:00
Alexandre Aubin
09e3cab52c Move docker-extract helper inside a 'full' vendor folder with LICENSE and README linking to original repo 2022-09-28 17:19:50 +02:00
yalh76
8f7a996800 Merge branch 'docker_extract_image' of https://github.com/YunoHost/yunohost into docker_extract_image 2022-09-07 20:02:47 +02:00
yalh76
18e4b010f0 Improving 2022-09-07 20:02:40 +02:00
yalh76
59dbeac5be
Update helpers/utils
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2022-09-07 19:37:20 +02:00
yalh76
96d40556dd Simplification 2022-09-07 08:04:47 +02:00
yalh76
102c6225ce Implement docker-image-extract 2022-09-07 07:22:04 +02:00
Alexandre Aubin
4faeabefa2 manifestv2: moar test fixes 2022-09-01 21:51:48 +02:00
Alexandre Aubin
d7e87b34c7 Merge remote-tracking branch 'origin/dev' into manifestv2 2022-08-03 22:11:49 +02:00
yalh76
106e1fa801
ynh_add_config template 2022-05-09 19:50:58 +02:00
Alexandre Aubin
6316b94af4 helpers: missing ynh_requirement definition 2022-02-01 14:30:15 +01:00
Alexandre Aubin
0f9560ffe0
Merge branch 'bullseye' into manifestv2 2022-01-12 22:33:59 +01:00
Alexandre Aubin
26b837b085 Merge branch 'dev' into bullseye 2022-01-07 02:54:55 +01:00
Alexandre Aubin
364a3bc70a manifestv2: fix many things, have resource system somewhat working for install/remove 2021-12-31 19:02:19 +01:00
Alexandre Aubin
c8d4e4853b Merge branch 'bullseye' into manifestv2 2021-12-04 01:01:00 +01:00
Alexandre Aubin
5de9e4fe6a Yolorework the repo dir structure 2021-11-10 17:56:02 +01:00
Renamed from data/helpers.d/utils (Browse further)