Commit graph

58 commits

Author SHA1 Message Date
Alexandre Aubin
11cabc0fe7 Merge remote-tracking branch 'origin/dev' into bookworm 2024-03-14 09:13:37 +01:00
Alexandre Aubin
cc97efa033 helpers: remove pre-4.2 behavior for default file/folders permissions 2024-01-30 17:06:33 +01:00
Alexandre Aubin
c2af17667b helpers: fix previous commit, ynh_replace_string already messes with set +x/-x so hmpf 2024-01-14 18:32:53 +01:00
Alexandre Aubin
9819560518 helpers: disable super verbose logging during ynh_replace_vars poluting logs, it's kinda stable now... 2024-01-14 18:30:14 +01:00
Alexandre Aubin
5975dd4310 Merge remote-tracking branch 'origin/dev' into bookworm 2024-01-14 16:25:02 +01:00
c8f0f131fd app.py, helpers: Reword YNH_APP_UPGRADE_TYPE
* remove UPGRADE_FULL
* rename DOWNGRADE_FORCED -> DOWNGRADE
* rename UPGRADE_FORCED -> UPGRADE_SAME
* keep the helper ynh_check_app_version_changed behaviour for reverse compatibility.
2024-01-11 10:15:28 +01:00
OniriCorpe
b2c3c70742
add --after= in the usage section
of ynh_read_var_in_file and ynh_write_var_in_file
2024-01-01 00:56:50 +01:00
Alexandre Aubin
0a01423408 Merge remote-tracking branch 'origin/dev' into bookworm 2023-12-28 02:57:12 +01:00
Alexandre Aubin
0ed6769fcf helpers/utils: replace the damn ynh_die with a warning when patch fails to apply ... 2023-12-28 02:45:27 +01:00
ljf (zamentur)
770fdb6861 [fix] First source patches failure doesn't stop app script 2023-12-15 11:06:57 +01:00
Alexandre Aubin
d1022b1a6c Merge remote-tracking branch 'origin/dev' into bookworm 2023-12-12 15:12:13 +01:00
Alexandre Aubin
8e3e788842 ynh_setup_source: properly handle --keep for directories when the dir already exists in the new setup 2023-12-10 12:07:39 +01:00
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