Commit graph

4449 commits

Author SHA1 Message Date
Alexandre Aubin
52443174a0 Rename 0027_migrate_to_bookworm.py.disabled -> 0027_migrate_to_bookworm.py 2024-07-15 22:24:26 +02:00
Alexandre Aubin
f16011a138 Remove reference to rspamd, rspamd is to become an app 2024-07-15 22:23:59 +02:00
Alexandre Aubin
262a3c5cf2 Merge remote-tracking branch 'origin/dev' into bookworm 2024-07-15 16:54:21 +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
Kayou
4f7fa32f34
ssowatconf: change auth_header from None to false 2024-07-11 11:09:42 +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
7f7bafb339 Merge branch 'migrate-to-bookworm' into bookworm 2024-07-06 16:58:42 +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
5429885e0a Fix i18n strings? 2024-07-03 23:41:57 +02:00
Alexandre Aubin
edaffcf743 Adapt venv-rebuild migration for bookworm 2024-07-03 23:15:28 +02:00
Alexandre Aubin
3d05ff1d0e Cleanup old migrations 2024-07-03 22:07:06 +02:00
Alexandre Aubin
4b8506f71f Add migration for postgresql 13->15 after migrating to bookworm 2024-07-03 20:20:16 +02:00
Alexandre Aubin
1a85521f1f Didnt realize this line could be removed during previous merge 2024-07-03 19:09:04 +02:00
Alexandre Aubin
8366e4b7c4 Merge branch 'migrate-to-bookworm' into bookworm 2024-07-03 17:27:09 +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
9cf8a7b6a7 Test resources with influxdb instead of yarn that is installed by default now 2024-06-30 17:38:25 +02:00
Alexandre Aubin
b661356783 Merge remote-tracking branch 'origin/dev' into bookworm 2024-06-30 00:23:58 +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