Josué Tille
73fc554840
Remove optional flag wait-dpkg-free
2024-04-05 20:41:41 +02:00
Josué Tille
f326cb9799
Add option to avoid to wait for dpkg free if not needed
2024-04-05 17:57:18 +02:00
Josué Tille
69e6a7aaa5
Protect more path on ynh secure remove
2024-04-04 12:13:50 +02:00
Alexandre Aubin
2a4d5bfbc6
helpers/configpanel: fix assumption claquée au sol that $install_dir and $final_path always exist
2024-03-20 23:44:13 +01:00
Alexandre Aubin
cbe13831a0
Merge pull request #1789 from YunoHost/fix_config_panel_return_value
...
Use single quote to return value to config panel
2024-03-19 18:06:47 +01:00
Alexandre Aubin
11cabc0fe7
Merge remote-tracking branch 'origin/dev' into bookworm
2024-03-14 09:13:37 +01:00
Josué Tille
e6c4f2e077
Use signe quote to return value to config panel
...
Following the specification of yaml (https://yaml.org/spec/1.2.2/#single-quoted-style ), when we use single quote we only need to escapte signle quote. By this we avoid to need to excape mulitple other chars wich could be complicated.
2024-02-29 23:01:30 +01:00
tituspijean
349d219a57
Fix logs directories access
2024-02-29 18:27:12 +01:00
yunohost-bot
99d23f6235
Upgrade n to v
2024-02-29 05:13:12 +00:00
OniriCorpe
61df4add8c
fix logs folders perms
2024-02-13 02:36:08 +01:00
Alexandre Aubin
d9daf111e6
helpers: fix pattern to wait for when fail2ban is starting/reloading
2024-01-30 19:18:06 +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
1ce606d469
multimedia: fix again edgecase where setfacl crashes because of broken symlinks..
2024-01-14 17:50:09 +01:00
Alexandre Aubin
05f7c3a3b7
helpers/php: quote vars to avoid stupid issues with name in path which may happen in backup restore context...
2024-01-14 16:28:51 +01:00
Alexandre Aubin
5975dd4310
Merge remote-tracking branch 'origin/dev' into bookworm
2024-01-14 16:25:02 +01:00
Alexandre Aubin
7f13ea7d65
Merge pull request #1756 from YunoHost/enh_app_shell
...
Enhance app shells
2024-01-12 23:07:22 +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
tituspijean
1c083845e7
Automatically enable Python environment in app shells
...
assuming it is in `$install_dir/venv`
2023-12-28 17:47:46 +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
Alexandre Aubin
308ed0e174
Refactor ynh_use_logrotate madness
2023-12-21 15:14:56 +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
8c475d0a7b
Further simplify ynh_change_url_nginx_config
2023-12-05 19:01:17 +01:00
axolotle
dad366da61
Merge branch 'dev' into bookworm
2023-12-01 18:46:39 +01:00
Josué Tille
570184ac1e
Fix change url
2023-11-29 14:55:26 +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
Alexandre Aubin
267968074b
helpers/fail2ban: grep logpath is likely to match comments in the file that contain the word logpath...
2023-11-28 13:14:29 +01:00
OniriCorpe
4bfe2c96f5
fix the fail2ban helper when using using --use_template arg ( #1743 )
...
* fix the helper when using using --use_template arg
* fix app name replacment 😞
* replace any '__VAR__' by their real variable using ynh_replace_vars
* fix some SC2086
* extract logpath from /etc/fail2ban/jail.d/$app.conf
Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
* fix comment
* Update helpers/fail2ban
---------
Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
2023-11-27 14:07:39 +01:00
Alexandre Aubin
c216a3f246
Merge remote-tracking branch 'origin/dev' into bookworm
2023-11-24 22:35:25 +01:00
OniriCorpe
9a7731aa4e
fail2ban: make sure the logfile exists ( #1737 )
...
* make sure the logfile exists before reloading fail2ban
* update docs
* enhancement: fix file perms and make sure the folder exists
* fix folder path
---------
Co-authored-by: OniriCorpe <OniriCorpe@users.noreply.github.com>
2023-11-21 03:26:27 +01:00
OniriCorpe
300c999a5a
logrotate: fix generated config file perms ( #1736 )
...
* fix generated logrotate config file perms
* apply perms to the right file (I'm so tired lmao)
* fix indent
* update docs
* revert: wrong branch 😭
---------
Co-authored-by: OniriCorpe <OniriCorpe@users.noreply.github.com>
2023-11-20 19:01:33 +01:00
axolotle
a924379774
Merge remote-tracking branch 'origin/dev' into bookworm
2023-10-31 03:11:49 +01:00
axolotle
bfba939927
Merge remote-tracking branch 'origin/dev' into bookworm
2023-10-31 02:57:26 +01:00
Alexandre Aubin
8cfc929f25
Merge pull request #1706 from YunoHost/enh-bind-heritage-config-panel
...
[enh] bind heritage in config panel
2023-10-30 19:12:56 +01:00
Alexandre Aubin
d35eceb17b
Merge pull request #1723 from Salamandar/logging_late
...
Add ynh_exec_and_print_stderr_only_if_error that only prints stderr when command fails
2023-10-30 14:04:49 +01:00
Alexandre Aubin
bfb7dda42e
Rename helper into "ynh_exec_and_print_stderr_only_if_error"
2023-10-30 14:03:26 +01:00
Thomas
5547208be4
Update docker-image-extract
2023-10-27 14:15:09 +02:00
yunohost-bot
6a8693fa44
Upgrade n to v
2023-10-15 05:10:23 +00:00
Félix Piédallu
6385b402f7
Add ynh_exec_stderr_on_error that only prints stderr when command fails
2023-10-03 17:27:09 +02:00
orhtej2
58a539bf7d
Allow phpX.Y
as sole dependency that'll trigger usage of $phpversion=X.Y
2023-10-02 23:19:01 +02:00
Alexandre Aubin
883bb2b498
Merge remote-tracking branch 'origin/dev' into bookworm
2023-09-27 17:56:48 +02: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
ljf
6f3b194944
[fix] Avoid char conflict with bind properties
2023-09-02 22:47:02 +02:00
Alexandre Aubin
65d2571072
helpers: add new --group option for ynh_add_fpm_config to customize the Group parameter
2023-08-31 17:23:21 +02:00