Open alexAubin opened 1 month ago
About app settings. What is the use of
if [[ $key =~ (unprotected|protected|skipped)_ ]]; then
I can't find any settings with this name.
this is legacy stuff from the old permission system, it was cleaned up in bookworm
I'm working on a PR to backport most of the bookworm changes + other cleanups in a helpers 2.1 version
Fix the ynh_secure_remove clusterfuck about symlinks https://github.com/YunoHost/yunohost/pull/1716
- Remove the need to pass --app=$app to ynh_app_settings_set/get (or is it already optional?)
I think it is already optional: https://github.com/YunoHost/yunohost/blob/06dc3da3f4095d32b2846461e848be197f74da38/helpers/helpers.v1.d/setting#L19
__NAMETOREPLACE__
etc ... (some already done in bookworm maybe)ynh_app_settings_get
toynh_settings_get
?ynh_settings_set_default
or something to simplify the mess during upgrade withif [[ -z "${foobar:-}" ]] ...
--full_replace=1
inynh_setup_source
should be--full_replace
(cf trailing=
in theargs_array
...)0/1
byfalse/true
in getopts ? -Get rid of the boring "legacy args" mechanism in getopts (= positionals ? ... just enforce keyword args)--service_name
vs--service
,--path
vs--origin_path
etc