Commit graph

  • bc3e36abb3 friskies Alexandre Aubin 2024-07-01 21:39:59 +02:00
  • 92807afb16 helpers: yolo add tests for helpersv2.1 Alexandre Aubin 2024-07-01 20:55:45 +02:00
  • 2cfc1b4a36
    Merge c8a483ab83 into 1ed56952e6 Kayou 2024-07-01 20:50:12 +02:00
  • 1ed56952e6 What do we say about testing before releasing? Not today! Alexandre Aubin 2024-07-01 20:25:10 +02:00
  • 6b77e19bbd Update changelog for 11.2.20 debian/11.2.20 Alexandre Aubin 2024-07-01 18:49:47 +02:00
  • 50034aabdd helpers2.1: use the MEDIA_GROUP global var for consistency Alexandre Aubin 2024-07-01 18:49:36 +02:00
  • ef622ffe4d helpers2.1: switch to posisional args for ynh_multimedia_addaccess because that's what 99% of apps already do Alexandre Aubin 2024-07-01 18:24:58 +02:00
  • 40a3205add
    Merge pull request #1890 from YunoHost/actions/black Alexandre Aubin 2024-06-30 21:38:27 +02:00
  • 7b0383f865 🎨 Format Python code with Black alexAubin 2024-06-30 19:38:06 +00:00
  • 0783af306d
    Merge pull request #1886 from YunoHost/auto-disable Alexandre Aubin 2024-06-30 21:37:49 +02:00
  • 36b3b00166
    Merge pull request #1889 from rndmh3ro/add_tar_support Alexandre Aubin 2024-06-30 20:25:06 +02:00
  • e75b4b3b3b add support for downloading tar-files Sebastian Gumprich 2024-06-30 20:16:51 +02:00
  • 1c62960e25 helpers2.1: remove the ynh_clean_setup mechanism underused/useless.. Alexandre Aubin 2024-06-30 20:10:21 +02:00
  • 1e1409c7d7 helpers2.1: logging tweak in ynh_die Alexandre Aubin 2024-06-30 19:43:18 +02:00
  • fcaa366e91 helpers2.1: zzzz Alexandre Aubin 2024-06-30 19:28:18 +02:00
  • f2b5f0f22c helpers2.1: when using ynh_die, also return the error via YNH_STDRETURN such that it can be obtained from the python and displayed in the main error message, to increase the chance that people may read it and have something more useful than "An error happened in the script" Alexandre Aubin 2024-06-30 18:53:41 +02:00
  • 4b43d8d99d
    Update service.py: typo Alexandre Aubin 2024-06-30 18:52:19 +02:00
  • 636c9e563e
    Update diagnosis.py: more messages improvement Alexandre Aubin 2024-06-30 18:41:50 +02:00
  • c0bccc3ac9
    Update diagnosis.py: gotta "return" now if the key doesn't exist, otherwise the next code fails Alexandre Aubin 2024-06-30 18:40:23 +02:00
  • 9727765ecf
    Update diagnosis.py: improve warning to make it more explicit when called from another context Alexandre Aubin 2024-06-30 18:39:11 +02:00
  • 5ef0c84c0f
    Update tools.py: use _run_service_command to enable+start yunohost-firewall during postinstall and prevent a warning about lack of diagnosis ignore rule Alexandre Aubin 2024-06-30 18:34:38 +02:00
  • c965f13f50
    Merge branch 'dev' into auto-disable OniriCorpe 2024-06-30 18:29:06 +02:00
  • 20741c63aa change an irrelevant error to a warning OniriCorpe 2024-06-30 18:28:18 +02:00
  • a48bfa67de helpers2.1: change source patches location + raise an error instead of a warning when a patch fails to apply on CI Alexandre Aubin 2024-06-30 17:46:52 +02:00
  • b523089e48
    Merge pull request #1887 from YunoHost/fix_yarn_test Alexandre Aubin 2024-06-30 17:42:23 +02:00
  • 9cf8a7b6a7 Test resources with influxdb instead of yarn that is installed by default now Félix Piédallu 2024-06-30 17:38:25 +02:00
  • b64c92d46e
    Merge branch 'dev' into dev Gérard Collin 2024-06-30 10:35:46 +02:00
  • 3f973669fc helpers2.1: fix automigration of phpversion to php_version Alexandre Aubin 2024-06-30 01:37:56 +02:00
  • b661356783 Merge remote-tracking branch 'origin/dev' into bookworm Alexandre Aubin 2024-06-30 00:23:58 +02:00
  • a18d5f26f2 helpers2.1: zgrblg Alexandre Aubin 2024-06-30 00:21:40 +02:00
  • c2271ab731 Update changelog for 11.2.19 debian/11.2.19 Alexandre Aubin 2024-06-29 23:57:21 +02:00
  • eee84c5f66 helpers2.1: also run _ynh_apply_default_permissions in ynh_restore to be consistent (also because the user uid on the new system may be different than in the archive etc) Alexandre Aubin 2024-06-29 21:32:53 +02:00
  • 6ed167bfaf automatically ignore the service in diagnosis if it has been deactivated with the ynh cli OniriCorpe 2024-06-29 20:57:21 +02:00
  • c410b70b31 Revert "automatically ignore the service in diagnosis if it has been deactivated with the ynh cli" do-not-enable-a-service-disabled-by-the-user OniriCorpe 2024-06-29 21:00:53 +02:00
  • 66f8e31260 automatically ignore the service in diagnosis if it has been deactivated with the ynh cli OniriCorpe 2024-06-29 20:59:41 +02:00
  • eaf00103dd Revert "automatically ignore the service in diagnosis if it has been deactivated with the ynh cli" OniriCorpe 2024-06-29 20:57:59 +02:00
  • ff78f3ada7 automatically ignore the service in diagnosis if it has been deactivated with the ynh cli OniriCorpe 2024-06-29 20:57:21 +02:00
  • fcbb971792
    Merge pull request #1885 from YunoHost/actions/black Alexandre Aubin 2024-06-29 20:33:05 +02:00
  • dbf579b7b4 🎨 Format Python code with Black alexAubin 2024-06-29 18:31:51 +00:00
  • e5b575901a apps: be more robust when an app upgrade succeeds but for some reason is marked with 'broke the system' ... ending up in inconsistent state between the app settings vs the app scritpts (for example in v1->v2 transitions but not only) Alexandre Aubin 2024-06-29 20:31:28 +02:00
  • d47c87e57d helpers2.1: wrmbgl Alexandre Aubin 2024-06-29 20:08:14 +02:00
  • 28603da4f1
    Merge pull request #1884 from YunoHost/actions/black Alexandre Aubin 2024-06-29 20:05:21 +02:00
  • c2d69f7f84 🎨 Format Python code with Black alexAubin 2024-06-29 18:05:02 +00:00
  • a349fc0334 apps: tweaks to be more robust and prevent the stupid flood of 'sh: 0: getcwd() failed: No such file or directory' when running an app upgrade/remove from /var/www/$app, sometimes making it look like the upgrade failed when it didnt Alexandre Aubin 2024-06-29 20:04:19 +02:00
  • 3e1c9ebaf7 Fix getopts error handling ... Alexandre Aubin 2024-06-29 19:21:08 +02:00
  • 1ab3a79d39 Update changelog for 11.2.18 debian/11.2.18 Alexandre Aubin 2024-06-29 18:06:40 +02:00
  • 44bbc34967
    Merge pull request #1716 from Salamandar/ynh_secure_remove Alexandre Aubin 2024-06-29 17:23:50 +02:00
  • 7b2959a3eb helpers2.1: forgot to rename the apt call in mongodb helpers Alexandre Aubin 2024-06-29 17:18:20 +02:00
  • 1dfc47d1d7 helpers2.1: in logrotate, make sure to also chown $app the log dir Alexandre Aubin 2024-06-28 20:21:56 +02:00
  • 9cd7c86641
    Merge pull request #1883 from YunoHost/fix_default_permissions Alexandre Aubin 2024-06-28 20:20:08 +02:00
  • ef68485c5f Use the group defined in the manifest by default Alexandre Aubin 2024-06-28 19:24:07 +02:00
  • 656ff823a9 Also handle files in /etc/$app Alexandre Aubin 2024-06-28 18:56:18 +02:00
  • ae3018cdd0 Infer the necessity to use www-data as group from the presence of alias or root in nginx.conf Alexandre Aubin 2024-06-28 18:39:12 +02:00
  • 8b8768fd77 Only set www-data as group for webapps Alexandre Aubin 2024-06-28 18:09:35 +02:00
  • 75d7042974
    Update helpers/helpers.v2.1.d/utils: use regex matching to check if path is child from a parent path Alexandre Aubin 2024-06-28 16:56:28 +02:00
  • 3b26ccc2a5 Properly handle case where $parent is empty to simplify condition Alexandre Aubin 2024-06-28 16:55:39 +02:00
  • 3608c5678c Proper 'if' cases to distinguish between $install_dir vs regular files in $install_dir and $data_dir Alexandre Aubin 2024-06-28 16:45:43 +02:00
  • d9d404a5b2 ynh_setup_source: apply default perms *after* extracting files to hopefully remove the need to manually chown/chmod Alexandre Aubin 2024-06-28 16:06:40 +02:00
  • 8846381d47 Rework _ynh_apply_default_permissions, only check if target is a child of install_dir. Félix Piédallu 2024-06-28 14:43:46 +02:00
  • 650481a58a ynh_safe_rm: Check if target is a symlink Félix Piédallu 2023-09-28 11:23:59 +02:00
  • eb97b3632a helpers: ynh_remove_systemd_config: Also remove the systemd service from YunoHost. Félix Piédallu 2024-02-21 16:19:00 +01:00
  • 7d2500f7f3 helpers.v2.1: Add ynh_in_ci_tests to check if the scripts are running in CI or not fpu_helpers Félix Piédallu 2024-06-19 15:14:25 +02:00
  • f2696fddab helpers.v2.1/utils: ynh_setup_source : replace --full_replace with --merge_with_existing, making cleanup before installation the default behaviour. Félix Piédallu 2024-06-19 15:06:09 +02:00
  • e510f0da88 helpers.v2.1/php: Download composer in /opt/yunohost/composer instead of in workdir. Félix Piédallu 2024-06-19 15:00:25 +02:00
  • b5977e9e34
    revert fix regex Kayou 2024-06-28 09:39:15 +02:00
  • c8a483ab83
    dot aren't valid in key name for both python and php more-test-on-config-read Kayou 2024-06-28 09:36:26 +02:00
  • 127a4c14fc
    Merge branch 'dev' into dev Gérard Collin 2024-06-26 21:05:09 +02:00
  • 070b0f1ef4
    more tests with dot Kayou 2024-06-25 17:16:48 +02:00
  • 1079132177
    more test on config read Kayou 2024-06-25 16:57:40 +02:00
  • 09ae704683
    fix regex in ynh_write_var_in_file/ynh_read_var_in_file Kayou 2024-06-25 15:47:49 +02:00
  • 87eedc2a36 Update changelog for 11.2.17.1 debian/11.2.17.1 Alexandre Aubin 2024-06-25 14:20:42 +02:00
  • feb9a095b3 helpers doc: fix detail block, cant use the HTML <details> because grav doesnt interpret markdown in it Alexandre Aubin 2024-06-25 14:17:49 +02:00
  • 997388dc79 helpers2.1: fix __PATH__/ handling Alexandre Aubin 2024-06-25 14:15:51 +02:00
  • 9982a77582
    Merge pull request #1878 from YunoHost/actions/black Alexandre Aubin 2024-06-25 00:21:50 +02:00
  • 2a7fefaecb helpers/doc: De-hide some helpers v1 in documentation now that the structure is less bloated sort of ? Alexandre Aubin 2024-06-25 00:21:24 +02:00
  • 7347b08e49 ci: Fix helpers 2.1 doc location Alexandre Aubin 2024-06-25 00:18:38 +02:00
  • 6851d740f7 🎨 Format Python code with Black alexAubin 2024-06-24 20:38:46 +00:00
  • 2d26935079 Update changelog for 11.2.17 debian/11.2.17 Alexandre Aubin 2024-06-24 22:38:18 +02:00
  • 094cd9ddd6 helpers: rework helper doc now that we have multiple versions of helpers in parallel + improve structure (group helper file in categories) Alexandre Aubin 2024-06-24 22:34:28 +02:00
  • 29ae71acad
    Merge pull request #1877 from YunoHost/actions/black Alexandre Aubin 2024-06-24 22:28:31 +02:00
  • c9b76fde35 🎨 Format Python code with Black alexAubin 2024-06-24 20:13:47 +00:00
  • e3bebeac98 helpers2.1: typo in getopts Alexandre Aubin 2024-06-24 22:13:16 +02:00
  • ed426f05ba apps/helpers2.1: fix app env in resource upgrade context ending up in incorrect helper version being used Alexandre Aubin 2024-06-24 22:13:01 +02:00
  • 2af4c157d9 helpers/mongo: less noisy output when checking the avx flag is here in /proc/cpuinfo Alexandre Aubin 2024-06-24 21:35:35 +02:00
  • 0aad13cd2f helpers2.1: oopsies in apt helper Alexandre Aubin 2024-06-24 19:11:28 +02:00
  • 2895d4d99b helpers: Misc cleaning / reorganizing to prepare new doc Alexandre Aubin 2024-06-24 06:10:34 +02:00
  • 7ac436762f Bookworm support for helpers v2.1 as well Gérard Collin 2024-06-24 11:49:10 +02:00
  • 1f2c687149
    Merge branch 'YunoHost:dev' into dev Gérard Collin 2024-06-24 11:40:32 +02:00
  • 1fb80e5d24 helpers2.1: drop ynh_apps helper because only a single app is using it ... Alexandre Aubin 2024-06-24 06:09:58 +02:00
  • 30467f8bc3 helpers2.1: fix bad syntax in ynh_app_upstream_version Alexandre Aubin 2024-06-23 20:04:17 +02:00
  • d8c3ff4c8a helpers2.1: forgot to propagate the 'goenv latest' fix from helpers v1 Alexandre Aubin 2024-06-23 16:35:58 +02:00
  • 0e4495f11e Update changelog for 11.2.16 debian/11.2.16 Alexandre Aubin 2024-06-23 15:32:47 +02:00
  • 2b1f74268f helpers2.1: var rename / cosmetic etc for nodejs/ruby/go version and install directories Alexandre Aubin 2024-06-23 14:57:35 +02:00
  • 5f6df6a859 helpers2.1: for some reason sudo -E doesn't preserve PATH even though it's exported, so we gotta explicitly use --preserve-env=PATH Alexandre Aubin 2024-06-23 14:49:11 +02:00
  • b3409729a6 helpers2.1: when using ynh_systemctl to reload/start/restart a service with a wait_until and it timesout, handle it as a filure rather than keep going Alexandre Aubin 2024-06-23 14:36:55 +02:00
  • 9298738d06 helpers2.1: display 100 lines instead of 20 in CI context when service fails to start Alexandre Aubin 2024-06-23 14:30:57 +02:00
  • 262453f132 helpers2.1: change default timeout of ynh_systemctl to 60s instead of 300s Alexandre Aubin 2024-06-23 14:27:37 +02:00
  • d4857834f3 helpers2.1: sudo -u$app -> sudo -u $app Alexandre Aubin 2024-06-23 14:13:17 +02:00
  • 3942ea12ae helpers2.1: fix ynh_config_add_logrotate when no arg is passed Alexandre Aubin 2024-06-23 14:08:05 +02:00
  • 55bb6255ad
    Merge fe6eabab40 into a2ac77fa91 Chris Vogel 2024-06-23 01:40:18 +02:00