Commit graph

136 commits

Author SHA1 Message Date
Kayou
ddf3e32c1c
fix the v2 too 2024-07-25 15:57:58 +02:00
Alexandre Aubin
bb20020c5a helpers2.1: forgot to patch ynh_remove_fpm_config -> ynh_config_remove_phpfpm 2024-07-15 22:13:20 +02:00
Alexandre Aubin
9e8c7e704e
Merge pull request #1903 from YunoHost/repo_trusted
helpers/apt: Support apt repositories with [trusted=yes]
2024-07-15 16:16:22 +02:00
Alexandre Aubin
401ccf69c7 helpers2.1: forgot to keep ynh_spawn_app_shell /o\ 2024-07-10 21:09:31 +02:00
Alexandre Aubin
e5bc94b9cf Copypasta is the worst kind of pasta 2024-07-10 20:17:42 +02:00
Alexandre Aubin
8be726b993 helpers: fix dpkg-deb --build complaining that the perm is sometimes 777 instead of 755 (not sure why in the first place x_x) 2024-07-10 18:15:36 +02:00
b96c530d2b Support trusted=yes repositories... 2024-07-09 23:57:19 +02:00
bb25c6b15d Fix: support repositories without component 2024-07-09 23:46:51 +02:00
Alexandre Aubin
f6fbd69c39 helpers/apt: rely on simpler dpkg-deb --build rather than equivs to create .deb for app virtual dependencies 2024-07-07 17:28:03 +02:00
Alexandre Aubin
bc3e36abb3 friskies 2024-07-01 21:39:59 +02:00
Alexandre Aubin
1ed56952e6 What do we say about testing before releasing? Not today! 2024-07-01 20:25:10 +02:00
Alexandre Aubin
50034aabdd helpers2.1: use the MEDIA_GROUP global var for consistency 2024-07-01 18:49:36 +02:00
Alexandre Aubin
ef622ffe4d helpers2.1: switch to posisional args for ynh_multimedia_addaccess because that's what 99% of apps already do 2024-07-01 18:25:14 +02:00
Sebastian Gumprich
e75b4b3b3b add support for downloading tar-files
this is needed for invoiceninja, see https://github.com/YunoHost-Apps/invoiceninja5_ynh/pull/280
2024-06-30 20:18:31 +02:00
Alexandre Aubin
1c62960e25 helpers2.1: remove the ynh_clean_setup mechanism underused/useless.. 2024-06-30 20:10:21 +02:00
Alexandre Aubin
1e1409c7d7 helpers2.1: logging tweak in ynh_die 2024-06-30 19:43:18 +02:00
Alexandre Aubin
fcaa366e91 helpers2.1: zzzz 2024-06-30 19:28:18 +02:00
Alexandre Aubin
f2b5f0f22c helpers2.1: when using ynh_die, also return the error via YNH_STDRETURN such that it can be obtained from the python and displayed in the main error message, to increase the chance that people may read it and have something more useful than "An error happened in the script" 2024-06-30 18:53:54 +02:00
Alexandre Aubin
a48bfa67de helpers2.1: change source patches location + raise an error instead of a warning when a patch fails to apply on CI
Co-authored-by: Félix Piédallu <felix@piedallu.me>
2024-06-30 17:46:52 +02:00
Alexandre Aubin
3f973669fc helpers2.1: fix automigration of phpversion to php_version 2024-06-30 01:37:56 +02:00
Alexandre Aubin
a18d5f26f2 helpers2.1: zgrblg 2024-06-30 00:21:40 +02:00
Alexandre Aubin
eee84c5f66 helpers2.1: also run _ynh_apply_default_permissions in ynh_restore to be consistent (also because the user uid on the new system may be different than in the archive etc) 2024-06-29 21:32:53 +02:00
Alexandre Aubin
d47c87e57d helpers2.1: wrmbgl 2024-06-29 20:16:52 +02:00
Alexandre Aubin
3e1c9ebaf7 Fix getopts error handling ... 2024-06-29 19:21:08 +02:00
Alexandre Aubin
44bbc34967
Merge pull request #1716 from Salamandar/ynh_secure_remove
Fix ynh_safe_rm: check if target is not a broken symlink before erorring out.
2024-06-29 17:23:50 +02:00
Alexandre Aubin
7b2959a3eb helpers2.1: forgot to rename the apt call in mongodb helpers 2024-06-29 17:18:20 +02:00
Alexandre Aubin
1dfc47d1d7 helpers2.1: in logrotate, make sure to also chown $app the log dir 2024-06-28 20:21:56 +02:00
Alexandre Aubin
ef68485c5f Use the group defined in the manifest by default 2024-06-28 19:24:07 +02:00
Alexandre Aubin
656ff823a9 Also handle files in /etc/$app 2024-06-28 18:56:18 +02:00
Alexandre Aubin
ae3018cdd0 Infer the necessity to use www-data as group from the presence of alias or root in nginx.conf 2024-06-28 18:39:12 +02:00
Alexandre Aubin
8b8768fd77 Only set www-data as group for webapps 2024-06-28 18:09:49 +02:00
Alexandre Aubin
75d7042974
Update helpers/helpers.v2.1.d/utils: use regex matching to check if path is child from a parent path 2024-06-28 16:56:28 +02:00
Alexandre Aubin
3b26ccc2a5 Properly handle case where $parent is empty to simplify condition 2024-06-28 16:55:39 +02:00
Alexandre Aubin
3608c5678c Proper 'if' cases to distinguish between $install_dir vs regular files in $install_dir and $data_dir 2024-06-28 16:45:43 +02:00
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
997388dc79 helpers2.1: fix __PATH__/ handling 2024-06-25 14:16:04 +02:00
Alexandre Aubin
e3bebeac98 helpers2.1: typo in getopts 2024-06-24 22:13:16 +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
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