Alexandre Aubin
|
800f93d12e
|
helpers2.1: further simplify mysql/postgresql helper: no keyword arg, remove ynh_foo_setup_db and ynh_foo_remove_db (the other helpers are enough), replace ynh_foosql_connect_as/ynh_foosql_execute* with a single ynh_foosql_db_shell that reads stdin
|
2024-06-13 12:39:05 +02:00 |
|
Alexandre Aubin
|
3584e6a5b1
|
helpers2.1: remove legacy ynh_add_app_dependencies
|
2024-06-13 11:28:59 +02:00 |
|
Alexandre Aubin
|
50a4d08add
|
helpers2.1: fixes after tests on the battlefield
|
2024-06-13 01:00:52 +02:00 |
|
Alexandre Aubin
|
d501131b34
|
helpers2.1: autorename phpversion to php_version for consistency with nodejs_version, ruby_version, ...
|
2024-06-12 22:05:55 +02:00 |
|
Alexandre Aubin
|
66f667e48a
|
helpers2.1: in ynh_setup_source, remove the underused sources/extra_files/sourceid/ mechanism (basically the only apps with these files manually cp stuff) + move the sources/patches/ mechanism to just patches/
|
2024-06-11 22:55:30 +02:00 |
|
Alexandre Aubin
|
47b2a5695f
|
helpers2.1: replace ynh_check_app_version_changed with a much simpler ynh_app_upstream_version_changed that can directly be used with 'if ynh_app_upstream_version_changed' instead of the current mess
|
2024-06-11 19:27:33 +02:00 |
|
Alexandre Aubin
|
66508d5fd6
|
helpers2.1: ynh_exec_warn_less -> ynh_hide_warnings
|
2024-06-11 18:41:37 +02:00 |
|
Alexandre Aubin
|
a8cd94d3db
|
helpers2.1: rework the nodejs/ruby/go mess: export the appropriate extended PATH to be able to call npm/node/ruby/gem/go directly (no ynh_foo anymore). No more ynh_use_foo either, it's just automatically called at the end of ynh_install_foo. Also rework the ynh_foo_load_PATH variable to PATH_with_foo, such that we shall write Enviroment="PATH=__PATH_WITH_FOO__" in the systemd conf to be more explicit
|
2024-06-11 18:20:22 +02:00 |
|
Alexandre Aubin
|
b4b420d694
|
helpers2.1: ynh_exec_as $app -> ynh_exec_as_app (with -E option in sudo)
|
2024-06-11 16:20:28 +02:00 |
|
Alexandre Aubin
|
fca26ead78
|
helpers2.1: fix unecessary warnings + print_info in ruby, to also hopefully stop people from slapping an ynh_exec_warn_less in front of ynh_install_ruby
|
2024-06-11 03:16:03 +02:00 |
|
Alexandre Aubin
|
eb8ce2088b
|
helpers2.1: go: add --quiet to goenv install + redirect stderr to stdout such that people don't slap an ynh_exec_warn_less in front of ynh_install_go x_x
|
2024-06-11 03:10:24 +02:00 |
|
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
|
c5815fb1ef
|
helpers2.1: simplify the logrotate mess: rename to ynh_add/remove_logrotate_config, use positional args, --specific_user is useless, we just need to make sure the parent dir has no +w on group...
|
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
|
4dc59049ef
|
helpers2.1: ynh_get_debian_release -> $YNH_DEBIAN_VERSION
|
2024-06-10 19:01:14 +02:00 |
|
Alexandre Aubin
|
d1e1fd5e35
|
helpers2.1: rename ynh_app_upgrading_from_version_prior_to X -> _before X
|
2024-06-10 18:52:29 +02:00 |
|
Alexandre Aubin
|
8c3ca4a0f4
|
helpers2.1: $YNH_APP_INSTANCE_NAME -> $app
|
2024-06-10 18:43:37 +02:00 |
|
Alexandre Aubin
|
0ceb77ec34
|
helpers2.1: ynh_setup_source: --full_replace now to be a boolean, no need to write --full_replace=1
|
2024-06-10 18:39:06 +02:00 |
|
Alexandre Aubin
|
a123149bef
|
helpers2.1: remove boring edge case in ynh_exec_as checking if asking to run as root..?
|
2024-06-10 18:36:25 +02:00 |
|
Alexandre Aubin
|
8ad3a3bc6f
|
helpers2.1: remove old internal ynh_render_template, should use ynh_add_config --jinja instead
|
2024-06-10 18:31:58 +02:00 |
|
Alexandre Aubin
|
2a6a8af0f7
|
helpers2.1: ynh_systemd_action: rename --service_name to --service to be consistent with other commands
|
2024-06-10 18:26:19 +02:00 |
|
Alexandre Aubin
|
1b2d13f96a
|
helpers2.1: simplify ynh_replace_string, just write ynh_replace --match=foo --replace=bar --file=/some/path
|
2024-06-10 18:18:42 +02:00 |
|
Alexandre Aubin
|
14ba98a232
|
helpers2.1: remove legacy code in setting handling
|
2024-06-10 18:05:23 +02:00 |
|
Alexandre Aubin
|
29d6dd685a
|
helpers2.1: Remove weird old packaging v1 trick for apt dependencies related to ruby
|
2024-06-10 18:01:17 +02:00 |
|
Alexandre Aubin
|
51d1011c47
|
helpers2.1: Remove the --foo_version arg for go, mongodb, nodejs, php, ruby helpers. Just use the global $foo_version which should be defined as global
|
2024-06-10 18:00:20 +02:00 |
|
Alexandre Aubin
|
4d5ae9d32c
|
helpers2.1: mysql/psql: rename ynh_SQL_connect_as to ynh_SQL_execute for semantics and consistency with ynh_SQL_execute_as_root
|
2024-06-10 17:00:21 +02:00 |
|
Alexandre Aubin
|
05a02221b9
|
helpers2.1: for mysql and psql helpers, use db_name, db_pwd, db_name as default values
|
2024-06-10 16:52:55 +02:00 |
|
Alexandre Aubin
|
576e35321f
|
helpers2.1: replace $YNH_COMPOSER_VERSION with $composer_version to be consistent with other technologies: node_version, ruby_version, go_version etc...
|
2024-06-10 16:35:15 +02:00 |
|
Alexandre Aubin
|
f2f8b3e319
|
helpers2.1: rework ynh_install_composer to wget the actual composer.phar instead of calling the unecessarily complex composer install script
|
2024-06-10 16:30:28 +02:00 |
|
Alexandre Aubin
|
cbc68afea4
|
helpers2.1: remove old references to packaging v1 $final_path
|
2024-06-10 15:03:16 +02:00 |
|
Alexandre Aubin
|
6e2b36d957
|
helpers2.1: remove unused options --label/--show_tile/--protected in ynh_permission_update
|
2024-06-10 15:00:05 +02:00 |
|
Alexandre Aubin
|
ef7da9e70f
|
Remove legacy references to path_url (instead of path) from packaging v1 era
|
2024-06-10 14:51:40 +02:00 |
|
Alexandre Aubin
|
9b6ccb7b1f
|
helpers2.1: remove a whole bunch of unused args in mongo helpers..
|
2024-06-10 14:38:56 +02:00 |
|
Alexandre Aubin
|
0273ee34b1
|
helpers2.1: remove ugly legacy eval trick in ynh_exec_warn_less
|
2024-06-10 14:11:25 +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
|
0eda746af5
|
helpers2.1: simplify ynh_add_fail2ban_config: remove unecessary/unused max_retry and ports options, remove --use_template: just generate the conf on-the-fly if --failregex/--logpath are provided, or use the f2b_stuff templates otherwise
|
2024-06-10 13:36:00 +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
|
8117f438d4
|
helpers2.1: vendor is a symlink to the folder in parent
|
2024-06-08 17:36:35 +02:00 |
|
Alexandre Aubin
|
5c461d6058
|
helpers2.1: import go changes from v1 to v2.1
|
2024-06-08 17:30:41 +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
|
3a1c8287b4
|
helpers 2.1: merge new --jinja option for templating
|
2024-06-04 15:08:26 +02:00 |
|
Alexandre Aubin
|
80f07a9974
|
helpers 2.1: ynh_if_upgrading_from_... -> ynh_app_upgrading_from_...
|
2024-05-28 00:09:00 +02:00 |
|
Alexandre Aubin
|
346f42643b
|
helpers 2.1: move ynh_add_config, ynh_replace_vars, ynh_read_var_in_file, ynh_write_var_in_file and ynh_render_template to a separate 'templating' file
|
2024-05-27 23:48:22 +02:00 |
|
Alexandre Aubin
|
7c1b07ee0f
|
helpers 2.1: Simplify ynh_app_upstream_version and ynh_read_manifest
|
2024-05-27 23:45:03 +02:00 |
|
Alexandre Aubin
|
88684c7937
|
helpers 2.1: remove legacy ynh_legacy_permissions_exists and ynh_legacy_permissions_delete_all
|
2024-05-27 23:43:35 +02:00 |
|
Alexandre Aubin
|
84a7b23e8a
|
helpers 2.1: replace ynh_compare_current_package_version with simpler ynh_if_upgrading_from_version_prior_to and ynh_if_upgrading_from_version_prior_or_equal_to
|
2024-05-27 23:42:53 +02:00 |
|
Alexandre Aubin
|
70f5154130
|
helpers 2.1: remove ynh_get_debian_release, apps should just use $YNH_DEBIAN_VERSION
|
2024-05-27 23:40:44 +02:00 |
|
Alexandre Aubin
|
3a500d8457
|
helpers 2.1: remove ynh_require_ram and unused --ignore_swap and --only_swap options in ynh_get_ram
|
2024-05-27 23:38:22 +02:00 |
|
Alexandre Aubin
|
a240fb2316
|
helpers 2.1: use positional args for ynh_normalize_url_path
|
2024-05-27 22:50:00 +02:00 |
|