Commit graph

  • a2ac77fa91
    Merge pull request #1867 from yunohost-bot/weblate-yunohost-core Alexandre Aubin 2024-06-23 01:20:35 +02:00
  • 6ee40ac06a Translated using Weblate (Slovak) Jose Riha 2024-06-11 19:31:47 +00:00
  • f26565d6de Translated using Weblate (Basque) xabirequejo 2024-06-08 10:26:01 +00:00
  • 2e05b0894b
    Merge pull request #1876 from YunoHost/actions/black Alexandre Aubin 2024-06-23 01:20:11 +02:00
  • 18092db1c8 🎨 Format Python code with Black alexAubin 2024-06-22 23:15:07 +00:00
  • ecb82ec693 Oopsies Alexandre Aubin 2024-06-23 01:14:41 +02:00
  • 31ae5d1eaa Misc fixes for flake8/mypy Alexandre Aubin 2024-06-23 01:05:39 +02:00
  • be3df69326
    Merge pull request #1873 from YunoHost/ynh_app_setting_set_default Alexandre Aubin 2024-06-23 00:59:26 +02:00
  • 7caf7e8b3e
    Merge pull request #1874 from YunoHost/rework_fpm_settings_madness Alexandre Aubin 2024-06-23 00:59:00 +02:00
  • e558513609 helpers2.1: fix positional arg parsing in ynh_psql_create_user Alexandre Aubin 2024-06-22 22:52:31 +02:00
  • 114efd30f6 print error message when upgrading more than 1 version Gérard Collin 2024-06-22 15:06:32 +02:00
  • 3d728d90ce helpers2.1: rework the fpm usage/footprint madness Alexandre Aubin 2024-06-21 18:32:22 +02:00
  • 0bd69e5622 🎨 Format Python code with Black alexAubin 2024-06-21 14:27:31 +00:00
  • cb57a3ecd5 Support for Bookworm & avoid reinstall Gérard Collin 2024-06-21 18:44:58 +02:00
  • 1b5074d857 helpers: add a new ynh_app_setting_set_default to replace the unecessarily complex 'if [ ${foo:-} ]' trick Alexandre Aubin 2024-06-21 18:29:59 +02:00
  • e66126eeae 🎨 Format Python code with Black alexAubin 2024-06-21 14:27:31 +00:00
  • dd8db1883a helpers2.1: drop unused 'local source' mechanism from ynh_setup_source Alexandre Aubin 2024-06-21 14:57:19 +02:00
  • 06c8fbc881 logs: misc ad-hoc tweaks to limit the noise in log sharing Alexandre Aubin 2024-06-21 14:39:49 +02:00
  • a25033bba5 apps/logs: fix some information not being redacted because of the packaging v2 flows Alexandre Aubin 2024-06-21 14:20:56 +02:00
  • 2f933b5bf2 Update changelog for 11.2.15 debian/11.2.15 Alexandre Aubin 2024-06-20 21:38:11 +02:00
  • 90dfccf278
    Merge pull request #1871 from YunoHost/actions/black Alexandre Aubin 2024-06-20 19:08:21 +02:00
  • b1b3c6eff8 🎨 Format Python code with Black alexAubin 2024-06-20 17:07:42 +00:00
  • 2ee8d93f67
    Merge pull request #1855 from YunoHost/helpers-2.1 Alexandre Aubin 2024-06-20 19:07:21 +02:00
  • 6605df6eb2 helpers2.1: use the appropriate helper for apt provisioning/deprovisioning depending on the helpers_version in the manifest Alexandre Aubin 2024-06-20 19:06:54 +02:00
  • 41b958113a helpers2.1: unbound var @_@ Alexandre Aubin 2024-06-20 19:06:14 +02:00
  • e0a9bafde2 helpers.v2.1: Add ynh_in_ci_tests to check if the scripts are running in CI or not Félix Piédallu 2024-06-19 15:14:25 +02:00
  • eab36d069d helper2.1: refactor composer helper again: workdir is $install_dir unless $composer_workdir is defined. ynh_composer_install only downloads composer. ynh_composer_exec runs composer command as $app unless composer_user=root is defined prior to calling the helper Alexandre Aubin 2024-06-20 16:15:57 +02:00
  • b47aedc932 helpers: remove god forsaken clumsy node_update cron job >_> Alexandre Aubin 2024-06-20 14:02:56 +02:00
  • f22c6ec3e9 helpers2.1: ynh_systemd_action -> ynh_systemctl Alexandre Aubin 2024-06-20 13:47:05 +02:00
  • d9b9aa1884 helpers2.1: use positional args for file checksum helpers Alexandre Aubin 2024-06-20 13:44:09 +02:00
  • e12d79390f resources/db: ensure dbtype is valid Félix Piédallu 2024-06-20 11:15:19 +02:00
  • b8a1a3a660 helpers2.1: ynh_config_remove_systemd now uses positional Alexandre Aubin 2024-06-19 23:45:37 +02:00
  • 6b6580a919 helpers2.1: further simplify logging helpers by removing the --message (ynh_script_progression too, no more args except the message) Alexandre Aubin 2024-06-19 23:40:53 +02:00
  • 11e2b6d63c helpers2.1: ynh_systemd_action '--line_match' -> '--wait_until' Alexandre Aubin 2024-06-19 23:19:19 +02:00
  • 218bf107fb helpers2.1: rename everything again, i.e. ynh_{nodejs|ruby|composer|...}_install/remove (to have a proper ynh_{tech}_ prefix like we have for mysql/psql helpers) + same idea for ynh_config_add_{nginx|phpfpm|systemd|...} instead of ynh_add_foo_config Alexandre Aubin 2024-06-19 17:05:50 +02:00
  • ec354d443d
    helpers-2.1: Fix mysqlshow regex to list existing databases Salamandar 2024-06-19 14:53:55 +02:00
  • 8f8070983d helpers2.1: rework the 'apt' helper: effectivement call them ynh_install/remove_apt_dependencies (instead of 'app_dependencies'...), remove unused stuff, bloat and unecessary non-linear flows... Alexandre Aubin 2024-06-19 04:07:07 +02:00
  • bd43a4504e
    Update main.cf: fuck postfix syntax Alexandre Aubin 2024-06-18 14:12:11 +02:00
  • 156f9e54ba
    Merge pull request #1843 from chri2/postfix_unionmap Alexandre Aubin 2024-06-18 12:36:13 +02:00
  • 5a6a8e6c73 helpers2.1: fix unecessary change in ynh_read_manifest, key shouldnt need to be prefixed with . Alexandre Aubin 2024-06-16 14:12:11 +02:00
  • e13e9bc378 Merge remote-tracking branch 'origin/dev' into bookworm Alexandre Aubin 2024-06-13 14:27:27 +02:00
  • 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 Alexandre Aubin 2024-06-13 12:39:05 +02:00
  • 3584e6a5b1 helpers2.1: remove legacy ynh_add_app_dependencies Alexandre Aubin 2024-06-13 11:28:52 +02:00
  • 50a4d08add helpers2.1: fixes after tests on the battlefield Alexandre Aubin 2024-06-13 01:00:52 +02:00
  • d501131b34 helpers2.1: autorename phpversion to php_version for consistency with nodejs_version, ruby_version, ... Alexandre Aubin 2024-06-12 15:53:44 +02:00
  • 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/ Alexandre Aubin 2024-06-11 22:55:30 +02:00
  • 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 Alexandre Aubin 2024-06-11 19:27:33 +02:00
  • 66508d5fd6 helpers2.1: ynh_exec_warn_less -> ynh_hide_warnings Alexandre Aubin 2024-06-11 18:41:37 +02:00
  • 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 Alexandre Aubin 2024-06-11 18:20:22 +02:00
  • b4b420d694 helpers2.1: ynh_exec_as $app -> ynh_exec_as_app (with -E option in sudo) Alexandre Aubin 2024-06-11 16:20:28 +02:00
  • 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 Alexandre Aubin 2024-06-11 03:16:03 +02:00
  • 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 Alexandre Aubin 2024-06-11 03:10:24 +02:00
  • 8c376c2ae4 apps: remove /var/log/$app during app_remove if --purge is used Alexandre Aubin 2024-06-11 02:28:31 +02:00
  • 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 Alexandre Aubin 2024-06-11 02:13:28 +02:00
  • 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... Alexandre Aubin 2024-06-11 01:07:03 +02:00
  • 480366d5a1 helpers2.1: in fact, let's use positional args for ynh_safe_rm because having --target everywhere is boring as hell Alexandre Aubin 2024-06-10 22:48:04 +02:00
  • 50eea8fc14 helpers2.1: reintroduce the old ynh_restore as ynh_restore_everything because some apps are using it @_@ Alexandre Aubin 2024-06-10 22:47:29 +02:00
  • 4dc59049ef helpers2.1: ynh_get_debian_release -> $YNH_DEBIAN_VERSION Alexandre Aubin 2024-06-10 19:01:14 +02:00
  • d1e1fd5e35 helpers2.1: rename ynh_app_upgrading_from_version_prior_to X -> _before X Alexandre Aubin 2024-06-10 18:52:29 +02:00
  • 8c3ca4a0f4 helpers2.1: $YNH_APP_INSTANCE_NAME -> $app Alexandre Aubin 2024-06-10 18:43:37 +02:00
  • 0ceb77ec34 helpers2.1: ynh_setup_source: --full_replace now to be a boolean, no need to write --full_replace=1 Alexandre Aubin 2024-06-10 18:39:06 +02:00
  • a123149bef helpers2.1: remove boring edge case in ynh_exec_as checking if asking to run as root..? Alexandre Aubin 2024-06-10 18:36:25 +02:00
  • 8ad3a3bc6f helpers2.1: remove old internal ynh_render_template, should use ynh_add_config --jinja instead Alexandre Aubin 2024-06-10 18:31:58 +02:00
  • 2a6a8af0f7 helpers2.1: ynh_systemd_action: rename --service_name to --service to be consistent with other commands Alexandre Aubin 2024-06-10 18:26:19 +02:00
  • fa848ff1c4
    Merge pull request #1869 from YunoHost/fix_multiple_apt_extra Alexandre Aubin 2024-06-10 18:19:05 +02:00
  • 1b2d13f96a helpers2.1: simplify ynh_replace_string, just write ynh_replace --match=foo --replace=bar --file=/some/path Alexandre Aubin 2024-06-10 18:18:42 +02:00
  • 14ba98a232 helpers2.1: remove legacy code in setting handling Alexandre Aubin 2024-06-10 18:05:23 +02:00
  • 29d6dd685a helpers2.1: Remove weird old packaging v1 trick for apt dependencies related to ruby Alexandre Aubin 2024-06-10 18:01:17 +02:00
  • 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 Alexandre Aubin 2024-06-10 18:00:20 +02:00
  • 259c7ac4a7 resources.py apt: Fix when multiple extras are passed Félix Piédallu 2024-06-10 17:36:46 +02:00
  • 4d5ae9d32c helpers2.1: mysql/psql: rename ynh_SQL_connect_as to ynh_SQL_execute for semantics and consistency with ynh_SQL_execute_as_root Alexandre Aubin 2024-06-10 17:00:21 +02:00
  • 05a02221b9 helpers2.1: for mysql and psql helpers, use db_name, db_pwd, db_name as default values Alexandre Aubin 2024-06-10 16:52:55 +02:00
  • 576e35321f helpers2.1: replace $YNH_COMPOSER_VERSION with $composer_version to be consistent with other technologies: node_version, ruby_version, go_version etc... Alexandre Aubin 2024-06-10 16:35:15 +02:00
  • f2f8b3e319 helpers2.1: rework ynh_install_composer to wget the actual composer.phar instead of calling the unecessarily complex composer install script Alexandre Aubin 2024-06-10 16:30:28 +02:00
  • cbc68afea4 helpers2.1: remove old references to packaging v1 $final_path Alexandre Aubin 2024-06-10 15:03:16 +02:00
  • 6e2b36d957 helpers2.1: remove unused options --label/--show_tile/--protected in ynh_permission_update Alexandre Aubin 2024-06-10 15:00:05 +02:00
  • ef7da9e70f Remove legacy references to path_url (instead of path) from packaging v1 era Alexandre Aubin 2024-06-10 14:51:40 +02:00
  • 9b6ccb7b1f helpers2.1: remove a whole bunch of unused args in mongo helpers.. Alexandre Aubin 2024-06-10 14:38:56 +02:00
  • 0273ee34b1 helpers2.1: remove ugly legacy eval trick in ynh_exec_warn_less Alexandre Aubin 2024-06-10 14:11:25 +02:00
  • 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 Alexandre Aubin 2024-06-10 14:06:49 +02:00
  • 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 Alexandre Aubin 2024-06-10 13:36:00 +02:00
  • 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 Alexandre Aubin 2024-06-10 13:17:26 +02:00
  • bb4f9cc1da Merge remote-tracking branch 'origin/migrate-to-bookworm' into bookworm Alexandre Aubin 2024-06-10 12:39:52 +02:00
  • 307ed10c41 Merge remote-tracking branch 'origin/dev' into migrate-to-bookworm Alexandre Aubin 2024-06-10 12:38:54 +02:00
  • c9324772f2 Update changelog for 11.2.14.1 debian/11.2.14.1 Alexandre Aubin 2024-06-10 12:35:40 +02:00
  • d2d0af27cf make_changelog: mark as 'stable' by default because it's been ages since we had real testings Alexandre Aubin 2024-06-10 12:33:39 +02:00
  • 697a33574b
    Merge pull request #1868 from YunoHost/fix_goenv_again Alexandre Aubin 2024-06-10 12:15:15 +02:00
  • f0727ebdb4 helpers/v1/go: fix call. Félix Piédallu 2024-06-10 12:11:26 +02:00
  • caa26ee005 tests: remove old reliances on xmpp.main Alexandre Aubin 2024-06-10 00:40:13 +02:00
  • 2e59393943 ldap/permissions: add a migration to delete the legacy xmpp.main perm Alexandre Aubin 2024-06-10 00:33:46 +02:00
  • cff89050df Remaining metronome trick to cleanup Alexandre Aubin 2024-06-09 15:57:50 +02:00
  • 37c99082f2
    Update certificate.py: moar typo @_@ Alexandre Aubin 2024-06-09 12:08:18 +02:00
  • d2259928ce
    Update certificate.py: typo @_@ Alexandre Aubin 2024-06-09 12:06:23 +02:00
  • 1e527a8214
    Merge pull request #1831 from YunoHost/handle-metronome-as-an-app Alexandre Aubin 2024-06-09 10:55:41 +02:00
  • 8117f438d4 helpers2.1: vendor is a symlink to the folder in parent Alexandre Aubin 2024-06-08 17:36:35 +02:00
  • 5c461d6058 helpers2.1: import go changes from v1 to v2.1 Alexandre Aubin 2024-06-08 17:30:41 +02:00
  • eb8db04629 Merge remote-tracking branch 'origin/dev' into helpers-2.1 Alexandre Aubin 2024-06-08 17:22:06 +02:00
  • 727b0e093a helpers 2.1: rename ynh_secure_remove --file to ynh_safe_rm --target Alexandre Aubin 2024-06-08 16:56:23 +02:00
  • 40778817ac Merge remote-tracking branch 'origin/bookworm' into handle-metronome-as-an-app Alexandre Aubin 2024-06-08 16:35:53 +02:00
  • 46372a0f22 dns+certs: add a new cert_alternate_names hook + improve custom_dns_rules hook Alexandre Aubin 2024-06-08 16:35:44 +02:00