Commit graph

11 commits

Author SHA1 Message Date
Alexandre Aubin
0c319cbeba helpers2.1: further simplify ynh_backup/restore: use a single positional arg. --is_big behavior is replaced by checking if the path is $data_dir (or a child) or /var/log/$app. --not_mandatory for restore is implied using the same check, or should be replaced by || true on the package side for the few cases where it's related to other stuff than the data dir or log dir 2024-06-11 02:31:51 +02:00
Alexandre Aubin
480366d5a1 helpers2.1: in fact, let's use positional args for ynh_safe_rm because having --target everywhere is boring as hell 2024-06-11 02:31:21 +02:00
Alexandre Aubin
50eea8fc14 helpers2.1: reintroduce the old ynh_restore as ynh_restore_everything because some apps are using it @_@ 2024-06-10 22:47:29 +02:00
Alexandre Aubin
67477473e8 helpers2.1: remove legacy/unecessary/underused helpers: ynh_print_log, ynh_print_err, ynh_exec_err, ynh_exec_quiet, ynh_exec_fully_quiet, ynh_print_OFF, ynh_print_ON 2024-06-10 14:06:49 +02:00
Alexandre Aubin
701828bf45 helpers2.1: simplify backup/restore helper syntax: ynh_restore_file -> ynh_restore to be symetric with ynh_backup. Remove unused --dest_dir arg, rename --src/origin_path to --target 2024-06-10 13:17:26 +02:00
Alexandre Aubin
727b0e093a helpers 2.1: rename ynh_secure_remove --file to ynh_safe_rm --target 2024-06-08 16:56:23 +02:00
Alexandre Aubin
6b577bdd23 helpers 2.1: remove packaging v1 ynh_backup_before_upgrade and ynh_restore_upgradebackup, handled by core in packaging v2 2024-05-27 22:39:43 +02:00
Alexandre Aubin
aa6634fd22 helpers 2.1: rework argument parsing comment to improve readability, consistency 2024-05-27 21:07:39 +02:00
Alexandre Aubin
6e13a4db1b helpers 2.1: remove unecessary --app=$app in internals ynh_app_setting_get/set calls 2024-05-27 18:48:26 +02:00
Alexandre Aubin
b914ad9093 helpers 2.1: drop support for 'legacy args' (positionals) in helpers 2024-05-27 18:48:21 +02:00
Alexandre Aubin
204800e878 helpers: copy v1 helpers to new v2.1 2024-05-27 18:48:07 +02:00