Commit graph

4117 commits

Author SHA1 Message Date
Alexandre Aubin
9e1b0561e3 bullseye->bookworm: readd tweak about libluajit2 + be more robust about full-upgrade that may fail if python3.9-venv aint installed 2024-07-26 20:10:28 +02:00
Alexandre Aubin
b2492ffc3d hmpf fix log list again 2024-07-23 19:05:34 +02:00
Alexandre Aubin
6e5c555e37 flake8 etc 2024-07-17 17:56:32 +02:00
Kayou
ebcf3c79ff
Fix "log list" : use root_dir for iglob / make sure we use absolute paths (#1913)
* use root_dir for iglob, fix parent_symlink path and check if it exists

* fix log path

* do not try to read a yaml of a symlink to /dev/null

* use hidden files, needs python 3.11 (bookworm)

* don't worry, I'm an expert!

* Update log.py: log_file -> log_md_fullpath (otherwise it feel like log_file refers to the .log)

* Update log.py: remove debug statement

* Update log.py: revert unecessary if change

---------

Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
2024-07-17 16:45:43 +02:00
Alexandre Aubin
f11f11973b bullseye->bookworm: trigger the 'new' migration from inside the bullseye->bookworm migration 2024-07-17 16:36:46 +02:00
Alexandre Aubin
67d6baa151 bullseye->bookworm: forgot to remove the unhold for apps packages >_> 2024-07-17 16:17:46 +02:00
Alexandre Aubin
97bb6bde09 bullseye->bookworm: automatically add non-free-firmware if non-free is enabled 2024-07-17 15:31:25 +02:00
Alexandre Aubin
a8fd6afeee bullseye->bookworm: try the yunohost upgrade without unholding the app-ynh-deps virtual packages, then after unholding if it didnt work for some reason 2024-07-17 15:24:04 +02:00
Alexandre Aubin
a5868733d7 bullseye->bookworm: uncessary comments / FIXME 2024-07-17 15:18:46 +02:00
Alexandre Aubin
079cdc2624 bullseye->bookworm: explicitly remove python3.9 and python3.9-venv which seems to confuse aptitude... 2024-07-17 15:06:05 +02:00
Alexandre Aubin
4232fc7c4b bullseye->bookworm: explicitly install yunohost-portal 2024-07-17 15:04:52 +02:00
Kay0u
73e0d6c271
remove pkg_resources from pip freeze 2024-07-16 23:26:35 +02:00
Alexandre Aubin
64c8d9e853 bullseye->bookworm migration: tweak message to reflect the fact that metronome and rspamd will be applications starting with bookworm 2024-07-15 22:29:30 +02:00
alexAubin
a0bc7926c4 🎨 Format Python code with Black 2024-07-12 13:24:32 +00:00
Alexandre Aubin
588742f31b log: optimize log list perf by creating a 'cache' symlink pointing to the log's parent 2024-07-11 17:35:37 +02:00
alexAubin
fbe42f1867 🎨 Format Python code with Black 2024-07-11 08:55:48 +00:00
Alexandre Aubin
ab8e0e6619
Update system.py: forgot to add the corresponding stdin arg in some previous commit x_x 2024-07-10 23:37:41 +02:00
Alexandre Aubin
9c22d36c6f backups: yunohost should not ask confirmation that 'YunoHost is already installed' when restoring only apps 2024-07-10 18:46:18 +02:00
Alexandre Aubin
b266e398ff Fix previous commit @_@ 2024-07-10 18:45:56 +02:00
Alexandre Aubin
c8a18129df backups: one should be able to restore a backup archive by providing a path to the archive without moving it to /home/yunohost.backup/archives/ 2024-07-10 18:30:12 +02:00
49961145ca Disable migration to bookworm until it is ready 2024-07-08 23:18:36 +02:00
b289de3eca Merge branch 'dev' into migrate-to-bookworm 2024-07-08 22:47:09 +02:00
Alexandre Aubin
1bb81e8f69 log: small hack when dumping log right after script failure, prevent a weird edge case where it'll dump the log of the resource provisioning instead of the script, guessing it's because it doesn't find 'ynh_exit_properly' near the end of the log ? 2024-07-07 16:38:46 +02:00
Alexandre Aubin
0f34d7e10f bullseye->bookworm: more tweaks for the 'assume yes' in aptitude call, can't use raw bash redirects, gotta use stdin= from subprocess ... and we want only a limited number of 'yes' and not an infinite yes like the -y option does resuling in conflict resolution loops 2024-07-06 16:55:47 +02:00
Alexandre Aubin
2763e04012 bullseye->bookworm: dirty hack to explicitly remove rspamd because it's causing too many issues in dependency resolution idk 2024-07-06 00:32:20 +02:00
90d4cd99b9 Add missing from time import sleep ; also restart nginx at the end of the migration 2024-07-04 21:26:38 +02:00
f344cb037b Fix missing import of moulinette.Moulinette 2024-07-04 21:02:32 +02:00
Alexandre Aubin
c694ea2cbc bullseye->bookworm: force-regen the nsswitch configuration because for some reason it gets reset? 2024-07-04 19:27:51 +02:00
Alexandre Aubin
772e772b24 bullseye->bookorm: delay the yunohost-api restart such that the migration doesnt appear as failed from the webamin 2024-07-04 19:13:43 +02:00
Alexandre Aubin
c6aec680b9 Backport i18n string + code for bookworm migration 2024-07-04 00:17:32 +02:00
OniriCorpe
5fcb1c6188 fix a dumb typo; i'd like commit amend but it was already merged thanks to our serial merger 2024-07-04 00:11:55 +02:00
OniriCorpe
ab742e55bb translate _diagnosis_ignore function 2024-07-04 00:04:17 +02:00
Alexandre Aubin
9a5aff9715 Merge remote-tracking branch 'origin/dev' into migrate-to-bookworm 2024-07-03 17:24:15 +02:00
OniriCorpe
41ca422210 use of the intermediate functions with a more eloquent name for clarity 2024-07-02 21:47:54 +02:00
OniriCorpe
e55c914974 real working fix 2024-07-02 21:44:24 +02:00
OniriCorpe
131760e30c trying to fix #1886 2024-07-01 22:04:28 +02:00
alexAubin
7b0383f865 🎨 Format Python code with Black 2024-06-30 19:38:06 +00:00
Alexandre Aubin
0783af306d
Merge pull request #1886 from YunoHost/auto-disable
automatically ignore the service in diagnosis if it has been deactivated with the ynh cli
2024-06-30 21:37:49 +02:00
Alexandre Aubin
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" 2024-06-30 18:53:54 +02:00
Alexandre Aubin
4b43d8d99d
Update service.py: typo 2024-06-30 18:52:19 +02:00
Alexandre Aubin
636c9e563e
Update diagnosis.py: more messages improvement 2024-06-30 18:41:50 +02:00
Alexandre Aubin
c0bccc3ac9
Update diagnosis.py: gotta "return" now if the key doesn't exist, otherwise the next code fails 2024-06-30 18:40:23 +02:00
Alexandre Aubin
9727765ecf
Update diagnosis.py: improve warning to make it more explicit when called from another context 2024-06-30 18:39:11 +02:00
Alexandre Aubin
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 2024-06-30 18:34:38 +02:00
OniriCorpe
20741c63aa change an irrelevant error to a warning 2024-06-30 18:28:18 +02:00
OniriCorpe
6ed167bfaf automatically ignore the service in diagnosis if it has been deactivated with the ynh cli 2024-06-29 21:01:38 +02:00
OniriCorpe
eaf00103dd Revert "automatically ignore the service in diagnosis if it has been deactivated with the ynh cli"
This reverts commit ff78f3ada7.
2024-06-29 20:57:59 +02:00
OniriCorpe
ff78f3ada7 automatically ignore the service in diagnosis if it has been deactivated with the ynh cli 2024-06-29 20:57:21 +02:00
alexAubin
dbf579b7b4 🎨 Format Python code with Black 2024-06-29 18:31:51 +00:00
Alexandre Aubin
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) 2024-06-29 20:31:28 +02:00