Commit graph

10154 commits

Author SHA1 Message Date
Alexandre Aubin
d9d404a5b2 ynh_setup_source: apply default perms *after* extracting files to hopefully remove the need to manually chown/chmod 2024-06-28 16:06:40 +02:00
8846381d47 Rework _ynh_apply_default_permissions, only check if target is a child of install_dir. 2024-06-28 16:03:17 +02:00
650481a58a ynh_safe_rm: Check if target is a symlink
When calling ynh_safe_rm to a broken symlink, the function was erroring out.
(test -e was following the symlink and returning false)
We need to also check if it is a symlink before exiting.
2024-06-28 15:01:59 +02:00
Alexandre Aubin
87eedc2a36 Update changelog for 11.2.17.1 2024-06-25 14:20:42 +02:00
Alexandre Aubin
feb9a095b3 helpers doc: fix detail block, cant use the HTML <details> because grav doesnt interpret markdown in it 2024-06-25 14:17:49 +02:00
Alexandre Aubin
997388dc79 helpers2.1: fix __PATH__/ handling 2024-06-25 14:16:04 +02:00
Alexandre Aubin
9982a77582
Merge pull request #1878 from YunoHost/actions/black
Format Python code with Black
2024-06-25 00:21:50 +02:00
Alexandre Aubin
2a7fefaecb helpers/doc: De-hide some helpers v1 in documentation now that the structure is less bloated sort of ? 2024-06-25 00:21:24 +02:00
Alexandre Aubin
7347b08e49 ci: Fix helpers 2.1 doc location 2024-06-25 00:18:38 +02:00
alexAubin
6851d740f7 🎨 Format Python code with Black 2024-06-24 20:38:46 +00:00
Alexandre Aubin
2d26935079 Update changelog for 11.2.17 2024-06-24 22:38:18 +02:00
Alexandre Aubin
094cd9ddd6 helpers: rework helper doc now that we have multiple versions of helpers in parallel + improve structure (group helper file in categories) 2024-06-24 22:34:36 +02:00
Alexandre Aubin
29ae71acad
Merge pull request #1877 from YunoHost/actions/black
Format Python code with Black
2024-06-24 22:28:31 +02:00
alexAubin
c9b76fde35 🎨 Format Python code with Black 2024-06-24 20:13:47 +00:00
Alexandre Aubin
e3bebeac98 helpers2.1: typo in getopts 2024-06-24 22:13:16 +02:00
Alexandre Aubin
ed426f05ba apps/helpers2.1: fix app env in resource upgrade context ending up in incorrect helper version being used 2024-06-24 22:13:01 +02:00
Alexandre Aubin
2af4c157d9 helpers/mongo: less noisy output when checking the avx flag is here in /proc/cpuinfo 2024-06-24 21:35:35 +02:00
Alexandre Aubin
0aad13cd2f helpers2.1: oopsies in apt helper 2024-06-24 19:11:28 +02:00
Alexandre Aubin
2895d4d99b helpers: Misc cleaning / reorganizing to prepare new doc 2024-06-24 17:42:37 +02:00
Alexandre Aubin
1fb80e5d24 helpers2.1: drop ynh_apps helper because only a single app is using it ... 2024-06-24 06:09:58 +02:00
Alexandre Aubin
30467f8bc3 helpers2.1: fix bad syntax in ynh_app_upstream_version 2024-06-23 20:04:17 +02:00
Alexandre Aubin
d8c3ff4c8a helpers2.1: forgot to propagate the 'goenv latest' fix from helpers v1 2024-06-23 16:35:58 +02:00
Alexandre Aubin
0e4495f11e Update changelog for 11.2.16 2024-06-23 15:32:47 +02:00
Alexandre Aubin
2b1f74268f helpers2.1: var rename / cosmetic etc for nodejs/ruby/go version and install directories 2024-06-23 15:21:25 +02:00
Alexandre Aubin
5f6df6a859 helpers2.1: for some reason sudo -E doesn't preserve PATH even though it's exported, so we gotta explicitly use --preserve-env=PATH 2024-06-23 14:49:11 +02:00
Alexandre Aubin
b3409729a6 helpers2.1: when using ynh_systemctl to reload/start/restart a service with a wait_until and it timesout, handle it as a filure rather than keep going 2024-06-23 14:36:55 +02:00
Alexandre Aubin
9298738d06 helpers2.1: display 100 lines instead of 20 in CI context when service fails to start 2024-06-23 14:30:57 +02:00
Alexandre Aubin
262453f132 helpers2.1: change default timeout of ynh_systemctl to 60s instead of 300s 2024-06-23 14:27:37 +02:00
Alexandre Aubin
d4857834f3 helpers2.1: sudo -u$app -> sudo -u $app 2024-06-23 14:13:17 +02:00
Alexandre Aubin
3942ea12ae helpers2.1: fix ynh_config_add_logrotate when no arg is passed 2024-06-23 14:08:31 +02:00
Alexandre Aubin
a2ac77fa91
Merge pull request #1867 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2024-06-23 01:20:35 +02:00
Jose Riha
6ee40ac06a Translated using Weblate (Slovak)
Currently translated at 31.2% (245 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2024-06-23 01:20:14 +02:00
xabirequejo
f26565d6de Translated using Weblate (Basque)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2024-06-23 01:20:14 +02:00
Alexandre Aubin
2e05b0894b
Merge pull request #1876 from YunoHost/actions/black
Format Python code with Black
2024-06-23 01:20:11 +02:00
alexAubin
18092db1c8 🎨 Format Python code with Black 2024-06-22 23:15:07 +00:00
Alexandre Aubin
ecb82ec693 Oopsies 2024-06-23 01:14:41 +02:00
Alexandre Aubin
31ae5d1eaa Misc fixes for flake8/mypy 2024-06-23 01:05:39 +02:00
Alexandre Aubin
be3df69326
Merge pull request #1873 from YunoHost/ynh_app_setting_set_default
helpers: add a new ynh_app_setting_set_default to replace the unecessarily complex 'if [ -z ${foo:-} ]' trick
2024-06-23 00:59:26 +02:00
Alexandre Aubin
7caf7e8b3e
Merge pull request #1874 from YunoHost/rework_fpm_settings_madness
helpers2.1: rework the fpm usage/footprint madness
2024-06-23 00:59:00 +02:00
Alexandre Aubin
e558513609 helpers2.1: fix positional arg parsing in ynh_psql_create_user 2024-06-22 22:52:31 +02:00
Alexandre Aubin
3d728d90ce helpers2.1: rework the fpm usage/footprint madness 2024-06-22 01:59:18 +02:00
alexAubin
0bd69e5622 🎨 Format Python code with Black 2024-06-21 22:47:02 +02:00
Alexandre Aubin
1b5074d857 helpers: add a new ynh_app_setting_set_default to replace the unecessarily complex 'if [ ${foo:-} ]' trick 2024-06-21 18:30:05 +02:00
Alexandre Aubin
dd8db1883a helpers2.1: drop unused 'local source' mechanism from ynh_setup_source 2024-06-21 16:26:14 +02:00
Alexandre Aubin
06c8fbc881 logs: misc ad-hoc tweaks to limit the noise in log sharing 2024-06-21 16:26:07 +02:00
Alexandre Aubin
a25033bba5 apps/logs: fix some information not being redacted because of the packaging v2 flows 2024-06-21 14:20:56 +02:00
Alexandre Aubin
2f933b5bf2 Update changelog for 11.2.15 2024-06-20 21:38:11 +02:00
Alexandre Aubin
90dfccf278
Merge pull request #1871 from YunoHost/actions/black
Format Python code with Black
2024-06-20 19:08:21 +02:00
alexAubin
b1b3c6eff8 🎨 Format Python code with Black 2024-06-20 17:07:42 +00:00
Alexandre Aubin
2ee8d93f67
Merge pull request #1855 from YunoHost/helpers-2.1
Helpers 2.1
2024-06-20 19:07:21 +02:00