Compare commits

...

2511 commits

Author SHA1 Message Date
Alexandre Aubin
a5049a8a13 Update changelog for 11.2.30 2024-08-31 19:30:00 +02:00
Alexandre Aubin
6e84e3532a
Merge pull request #1943 from YunoHost/fix_ynh_restore_everything
Fix ynh_restore_everything
2024-08-31 18:59:47 +02:00
Josué Tille
917cf251fb
Fix ynh_restore_everything 2024-08-31 18:51:16 +02:00
selfhoster1312
8a5f2808a1 Apply shfmt everywhere 2024-08-31 12:22:40 +02:00
68f35831e7 Add maintenante/shfmt.sh for shell script formatting
Thanks @selfhoster1312 <3
2024-08-31 12:22:40 +02:00
b91e9dd8f4 helpersv2.1: Tabs to spaces 2024-08-31 11:01:20 +02:00
38b39ebaea helpersv1: Tabs to spaces 2024-08-31 11:01:20 +02:00
ef17082768 Fix tabs in hooks script 2024-08-31 11:01:20 +02:00
e3ddb1dc4d Fix tabs and indentations in metronome 2024-08-31 11:01:20 +02:00
Alexandre Aubin
5b37936d11
Merge pull request #1940 from selfhoster1312/fix-syntax
Disambiguate subshell (it's not arithmetics!)
2024-08-30 19:10:58 +02:00
selfhoster1312
e82d20aa7b Disambiguate subshell (it's not arithmetics!) 2024-08-30 19:10:35 +02:00
selfhoster1312
aff885e6b7 helpers v2.1: ynh_add_swap and ynh_smart_mktemp 2024-08-30 15:43:50 +02:00
Alexandre Aubin
7a04462ccd
Merge pull request #1939 from selfhoster1312/rename-helper
docs: ynh_install_app_dependencies -> ynh_apt_install_dependencies
2024-08-29 17:47:29 +02:00
selfhoster1312
606e246ec4 docs: ynh_install_app_dependencies -> ynh_apt_install_dependencies 2024-08-29 17:41:41 +02:00
Alexandre Aubin
e3e8b903c7
Merge pull request #1938 from YunoHost/check-patches-dir
2.1 helpers: check if patches dir exists before getting realpath
2024-08-29 00:27:13 +02:00
OniriCorpe
488f563b45 2.1 helpers: check if the patches directory exists before trying to get its realpath 2024-08-28 23:03:57 +02:00
Alexandre Aubin
3d4804be68 Update changelog for 11.2.29 2024-08-27 14:48:10 +02:00
Alexandre Aubin
d4f774ad72 quality: fix typing issue 2024-08-27 14:45:37 +02:00
Alexandre Aubin
d8ab3e68a9
Merge pull request #1933 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2024-08-27 14:45:28 +02:00
xabirequejo
71b50549f5 Translated using Weblate (Basque)
Currently translated at 100.0% (811 of 811 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2024-08-27 13:12:44 +02:00
craftrac
a40874c305 Translated using Weblate (Greek)
Currently translated at 1.1% (9 of 811 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/el/
2024-08-27 13:12:44 +02:00
cjdw
9223d30a83 Translated using Weblate (Indonesian)
Currently translated at 100.0% (811 of 811 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/id/
2024-08-27 13:12:44 +02:00
José M
5ad9962757 Translated using Weblate (Galician)
Currently translated at 100.0% (811 of 811 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2024-08-27 13:12:44 +02:00
ppr
4dfcc13a3f Translated using Weblate (French)
Currently translated at 99.6% (808 of 811 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-08-27 13:12:44 +02:00
xabirequejo
e11b61f49e Translated using Weblate (Basque)
Currently translated at 100.0% (811 of 811 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2024-08-27 13:12:44 +02:00
cjdw
243a34d2d5 Translated using Weblate (Indonesian)
Currently translated at 100.0% (811 of 811 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/id/
2024-08-27 13:12:44 +02:00
José M
ca2572d00b Translated using Weblate (Galician)
Currently translated at 100.0% (811 of 811 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2024-08-27 13:12:44 +02:00
Alexandre Aubin
518c3bbbe2
Merge pull request #1935 from YunoHost/actions/black
Format Python code with Black
2024-08-27 13:12:40 +02:00
alexAubin
9517b26c63 🎨 Format Python code with Black 2024-08-27 11:11:57 +00:00
Alexandre Aubin
a6785d34bc apps/config panels: move the computation of the actual 'bind' value to core to avoid having an epic python snippets in the bash code.. 2024-08-27 13:11:32 +02:00
Alexandre Aubin
7c79060467 perf: hmmm try to fix race condition in previous cache system ? 2024-08-26 20:52:21 +02:00
Alexandre Aubin
007c13ce42
Merge pull request #1934 from YunoHost/actions/black
Format Python code with Black
2024-08-26 20:21:24 +02:00
alexAubin
2102242a61 🎨 Format Python code with Black 2024-08-26 18:20:38 +00:00
Alexandre Aubin
c409888a4b quality: use _assert_is_installed for consistency instead of if not _is_intalled(app): raise 2024-08-26 20:20:10 +02:00
Alexandre Aubin
c14ebc8be4 perf: add cache for _get_app_settings() 2024-08-26 20:20:02 +02:00
Alexandre Aubin
9b0553580b apps: generalize replacing __INSTALL_DIR__ and __APP__ in config panel 'bind' statement to any setting 2024-08-26 20:16:48 +02:00
Alexandre Aubin
bc2ed45e9d Update changelog for 11.2.28 2024-08-25 13:22:38 +02:00
Alexandre Aubin
a76cd05e87 apps: in apt resource, fix empty string in packages_from_raw_bash breaking dpkg-build 2024-08-25 13:17:12 +02:00
yunohost-bot
eb14e404d6 [CI] Reformat / remove stale translated strings 2024-08-19 01:58:58 +02:00
zamentur
aae24614c4 🎨 Format Python code with Black 2024-08-19 01:58:36 +02:00
Emmanuel Averty
51787a2f8b trigger hooks when adding or removing user into group 2024-08-19 00:56:59 +02:00
Alexandre Aubin
c5953b5420 ci: try to fix the full test not working because i removed the pytest install @_@ 2024-08-18 22:44:27 +02:00
Alexandre Aubin
4afff118e4
Merge pull request #1930 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2024-08-18 13:20:48 +02:00
ppr
6113fde48a Translated using Weblate (French)
Currently translated at 99.5% (807 of 811 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-08-18 10:54:48 +02:00
xabirequejo
b734e2ea89 Translated using Weblate (Basque)
Currently translated at 100.0% (811 of 811 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2024-08-18 10:54:48 +02:00
Alexandre Aubin
0a44d7cea4
Merge pull request #1929 from YunoHost/ci-autofix-translated-strings-dev
[CI] Reformat / remove stale translated strings
2024-08-16 16:19:17 +02:00
yunohost-bot
5d3280c0fd [CI] Reformat / remove stale translated strings 2024-08-16 14:18:35 +00:00
Alexandre Aubin
8dc521a528
Merge pull request #1927 from YunoHost/actions/black
Format Python code with Black
2024-08-16 16:10:13 +02:00
alexAubin
2e70143da2 🎨 Format Python code with Black 2024-08-16 14:09:58 +00:00
Alexandre Aubin
3095496fe9
Merge pull request #1928 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2024-08-16 16:09:39 +02:00
xabirequejo
586d1c7f63 Translated using Weblate (Basque)
Currently translated at 100.0% (809 of 809 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2024-08-16 16:07:14 +02:00
tituspijean
d63c61e0df
Add diagnoser about rfkill blocking Wi-Fi card (#1841) 2024-08-16 16:07:10 +02:00
Alexandre Aubin
4248b27b26
Merge pull request #1926 from YunoHost/ci-autofix-translated-strings-dev
[CI] Reformat / remove stale translated strings
2024-08-16 01:21:58 +02:00
yunohost-bot
0f662d069c [CI] Reformat / remove stale translated strings 2024-08-15 23:10:02 +00:00
Alexandre Aubin
7ca710685e
Merge pull request #1253 from YunoHost/backup_mx
[enh] Be able to use postfix as a backup ("secondary") MX hosts
2024-08-16 00:55:21 +02:00
Alexandre Aubin
31d10079c7
Merge pull request #1384 from YunoHost/enh-conserver-group-permission-in-sftp
[enh] Tweak umask for SFTP
2024-08-16 00:45:35 +02:00
ljf (zamentur)
980777ebf1 [enh] Conserver group permission 2024-08-16 00:31:59 +02:00
ljf
436826abf9 [enh] Be able to use postfix as a backup mx hosts 2024-08-15 23:44:07 +02:00
Alexandre Aubin
477fa63f46
Merge pull request #1923 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2024-08-15 22:22:53 +02:00
xabirequejo
9a6f7dac3b Translated using Weblate (Basque)
Currently translated at 100.0% (805 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2024-08-15 21:36:33 +02:00
cjdw
498006cab6 Translated using Weblate (Indonesian)
Currently translated at 100.0% (805 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/id/
2024-08-15 21:36:33 +02:00
cjdw
2f186b6f7f Translated using Weblate (Indonesian)
Currently translated at 100.0% (805 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/id/
2024-08-15 21:36:33 +02:00
cjdw
5708776df6 Translated using Weblate (Indonesian)
Currently translated at 100.0% (805 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/id/
2024-08-15 21:36:33 +02:00
Ivan Davydov
abdbb7efcd Translated using Weblate (Russian)
Currently translated at 40.9% (330 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ru/
2024-08-15 21:36:33 +02:00
xabirequejo
658ef88e47 Translated using Weblate (Basque)
Currently translated at 100.0% (805 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2024-08-15 21:36:33 +02:00
Tagadda
4d5cc62540 🎨 Format Python code with Black 2024-08-15 21:36:29 +02:00
Tagada
f88e4cacdf
Merge pull request #1647 from YunoHost/enh_well-known
[enh] exclude .well-known subpaths from conflict checks
2024-08-15 20:50:17 +02:00
Tagada
36b9188aec
Update src/app.py
Co-authored-by: tituspijean <titus+yunohost@pijean.ovh>
2024-08-15 20:41:09 +02:00
Alexandre Aubin
c104dc6449
Merge pull request #1924 from YunoHost/actions/black
Format Python code with Black
2024-08-08 20:38:16 +02:00
alexAubin
938e400865 🎨 Format Python code with Black 2024-08-08 18:36:00 +00:00
Alexandre Aubin
de9980f31e Zblerg 2024-08-08 20:35:36 +02:00
Alexandre Aubin
f02d4a4376 ci: more optimization, lets not install pytest etc because it should already be in the image 2024-08-08 19:47:53 +02:00
Alexandre Aubin
92f4a605b8 ci: do not run on black PR 2024-08-08 19:41:29 +02:00
Alexandre Aubin
df320a44cf ci: ignore boring warning 'Could not identify correctly the dns zone for domain sub.domain.tld' 2024-08-08 19:37:50 +02:00
Alexandre Aubin
6733526bee ci: try skipping diagnosis during upgrade to speed things up a bit? 2024-08-08 19:37:50 +02:00
Alexandre Aubin
d0df3caed4 ci: propagate misc tweaks for CI speedup made on bookworm 2024-08-08 19:37:50 +02:00
Alexandre Aubin
9083a5cc3d ci: ughr ok, dunno what i was thinking, partially revert the previous commit, go to sleep Aleks ffs 2024-08-08 05:39:52 +02:00
Alexandre Aubin
764fe6a7ba ci: smol optimization to avoid installing unecessary pip dependencies? 2024-08-08 05:26:00 +02:00
Alexandre Aubin
200f0272d5 ci: propagate new CI image names 2024-08-08 01:53:58 +02:00
Alexandre Aubin
9915559c40 Update changelog for 11.2.27 2024-08-03 18:42:08 +02:00
Alexandre Aubin
760256f85d
Merge pull request #1922 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2024-08-03 18:41:19 +02:00
Ali Çırçır
684c3d9b2c Translated using Weblate (Turkish)
Currently translated at 3.8% (31 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/tr/
2024-08-03 18:37:48 +02:00
cjdw
90c4034908 Translated using Weblate (Indonesian)
Currently translated at 100.0% (805 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/id/
2024-08-03 18:37:48 +02:00
Alexandre Aubin
3deffdbd57 apt resource: fix handling of empty 'packages' list breaking dpkg-deb call 2024-08-03 18:37:40 +02:00
Alexandre Aubin
9f6f5f92fb Update changelog for 11.2.26 2024-08-01 18:06:23 +02:00
Alexandre Aubin
e88ba3428c Minor cosmetic / prevent double slashes 2024-08-01 18:05:02 +02:00
Alexandre Aubin
fe524dd866 Fix yunomprompt not being enable after ISO install 2024-07-31 15:50:45 +02:00
Alexandre Aubin
65ea34d7cb bullseye->bookworm: boring tweak to remove chattr +i from /etc/resolv.conf otherwise resolvconf will later explode and complain about it 2024-07-30 23:53:39 +02:00
Alexandre Aubin
d766f7cdda bullseye->bookworm: have a specific step dedicated to upgrade python3.9 to 3.11 because apt(itude) is derping about it sometimes... 2024-07-30 23:51:01 +02:00
Alexandre Aubin
423e79bd57
Update 0027_migrate_to_bookworm.py.disabled: encourage apt to remove luajit if it's installed because for some reason it's causing issues 2024-07-30 23:14:32 +02:00
Alexandre Aubin
44529b6d92 Update changelog for 11.2.25 2024-07-30 17:13:06 +02:00
Alexandre Aubin
f4727d3cb6 bullseye->bookworm: more stuff to try to prevent aptitude derping about python dependencies 2024-07-30 16:51:22 +02:00
Alexandre Aubin
8705dfcf5c debian: add rule that moulinette and ssowat must be < 12 to prevent situation in bullseye->bookworm transition where moulinette gets upgrade but yunohost doesnt and everything explodes 2024-07-30 16:21:08 +02:00
Alexandre Aubin
ad98a10fa8 bullseye->bookworm: make sure the non-free / non-free-firmware stuff is idempotent 2024-07-30 16:00:09 +02:00
Alexandre Aubin
d376677db6 diagnosis: be more robust when diagnosis DMARC records not containing '=' 2024-07-30 15:50:45 +02:00
Alexandre Aubin
8b56983171 bullseye->bookworm: explicitly validate that we're on yunohost 12.x at the end of the migration 2024-07-27 15:09:48 +02:00
Alexandre Aubin
2d3dddc51a bullseye->bookworm: explicitly import _strptime at the beginning to try to prevent "No module named '_strptime'" during migration 2024-07-27 15:06:48 +02:00
Alexandre Aubin
c861ef2ae6 Update changelog for 11.2.24 2024-07-26 21:09:15 +02:00
Alexandre Aubin
53427e8c14
Merge pull request #1920 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2024-07-26 20:18:42 +02:00
cjdw
e5d74d420d Translated using Weblate (Indonesian)
Currently translated at 100.0% (805 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/id/
2024-07-26 20:10:39 +02:00
cjdw
cd30a2acc0 Translated using Weblate (Indonesian)
Currently translated at 100.0% (805 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/id/
2024-07-26 20:10:39 +02:00
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
843771ea05
Merge pull request #1921 from YunoHost/fix-install-from-equivs
Fix install from equivs
2024-07-25 16:06:40 +02:00
Kayou
ddf3e32c1c
fix the v2 too 2024-07-25 15:57:58 +02:00
Kayou
6d21e9fced
a better way to avoid the double commas 2024-07-25 15:56:56 +02:00
Kayou
d881d1a505
avoid double commas in control file, crash if there is an issue in the control file 2024-07-25 15:42:39 +02:00
Alexandre Aubin
ebaecfcbd6 ci: we don't care about mypy in tests/ folder 2024-07-23 19:26:28 +02:00
Alexandre Aubin
eeee096f3a Update changelog for 11.2.23 2024-07-23 19:08:45 +02:00
Alexandre Aubin
fc168c54a1
Merge pull request #1915 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2024-07-23 19:06:13 +02:00
cjdw
b010219814 Translated using Weblate (Indonesian)
Currently translated at 77.6% (625 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/id/
2024-07-23 19:05:44 +02:00
José M
67c5edc40e Translated using Weblate (Galician)
Currently translated at 100.0% (805 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2024-07-23 19:05:44 +02:00
cjdw
437189d8c1 Translated using Weblate (Indonesian)
Currently translated at 75.1% (605 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/id/
2024-07-23 19:05:44 +02:00
Alexandre Aubin
b2492ffc3d hmpf fix log list again 2024-07-23 19:05:34 +02:00
Alexandre Aubin
34861f906d
Merge pull request #1916 from YunoHost/fix_slapd_listen_ipv6
[Fix] Make slapd listen also on ipv6
2024-07-22 19:02:13 +02:00
Alexandre Aubin
a7edbc0cc7
Update helpers: go home aleks u drunk 2024-07-22 16:08:40 +02:00
Alexandre Aubin
b1d1f9f907
Merge pull request #1918 from milouse/fix-remove-senderscore
fix: Remove SenderScore from the dnsbl_list.yml file
2024-07-22 15:15:11 +02:00
Étienne Deparis
c90a691448 fix: Remove SenderScore from the dnsbl_list.yml file
Since march 1st this service is behind a fair-use paywall, which
generates lot of alert email confusing people whether their IP/domain is
actually blocked, when actually it’s just the service failing.

See: https://knowledge.validity.com/s/articles/Accessing-Validity-reputation-data-through-DNS?language=en_US
     https://forum.yunohost.org/t/senderscore-blacklist-blocklist-because-of-excessive-number-of-queries/30395
2024-07-22 12:54:45 +02:00
Josué Tille
f6c270e1d2
[Fix] Make slapd listen also on ipv6 2024-07-21 10:30:14 +02:00
Alexandre Aubin
3d53cf0467 helpers: force sourcing getopts before the other helpers to prevent stupid issues (in particular when renaming phpversion to php_version in helpers2.1) 2024-07-20 22:48:50 +02:00
Alexandre Aubin
7ee1734265
Merge pull request #1914 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2024-07-20 17:34:40 +02:00
Jose Riha
179daf68df Translated using Weblate (Slovak)
Currently translated at 30.5% (246 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2024-07-20 11:54:47 +02:00
cjdw
57b4e240e1 Translated using Weblate (Indonesian)
Currently translated at 69.6% (561 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/id/
2024-07-20 11:54:47 +02:00
Alexandre Aubin
bfbc7035dd Update changelog for 11.2.22 2024-07-19 16:55:46 +02:00
Alexandre Aubin
239819b6da
Merge pull request #1910 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2024-07-19 16:54:26 +02:00
cjdw
357896cd55 Translated using Weblate (Indonesian)
Currently translated at 69.0% (556 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/id/
2024-07-18 20:54:48 +02:00
ppr
ded4892b9e Translated using Weblate (French)
Currently translated at 100.0% (805 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-07-18 20:54:47 +02:00
xabirequejo
9721685001 Translated using Weblate (Basque)
Currently translated at 99.8% (804 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2024-07-17 17:56:40 +02:00
Anonymous
8395b066bc Translated using Weblate (French)
Currently translated at 99.8% (804 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-07-17 17:56:40 +02:00
cjdw
ac4ff0fc2d Translated using Weblate (Indonesian)
Currently translated at 62.7% (505 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/id/
2024-07-17 17:56:40 +02:00
xabirequejo
04101862ac Translated using Weblate (Basque)
Currently translated at 99.8% (804 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2024-07-17 17:56:40 +02:00
cjdw
0242ecd0e7 Translated using Weblate (Indonesian)
Currently translated at 60.3% (486 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/id/
2024-07-17 17:56:40 +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
ca59886303 bullseye->bookworm: fix typo in message 2024-07-17 15:28:01 +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
Alexandre Aubin
845a14bfe1
Merge pull request #1912 from YunoHost/fix-venv-pre-bookworm
remove pkg_resources from pip freeze
2024-07-17 00:56:26 +02:00
Kay0u
73e0d6c271
remove pkg_resources from pip freeze 2024-07-16 23:26:35 +02:00
Alexandre Aubin
14312a9ec4 Update changelog for 11.2.21.2 2024-07-15 23:07:42 +02:00
Alexandre Aubin
8a65053a59 helpers/apt: zzzz did this break everything? 2024-07-15 23:06:05 +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
Alexandre Aubin
22201863a1 Update changelog for 11.2.21.1 2024-07-15 22:14:32 +02:00
Alexandre Aubin
bb20020c5a helpers2.1: forgot to patch ynh_remove_fpm_config -> ynh_config_remove_phpfpm 2024-07-15 22:13:20 +02:00
Alexandre Aubin
771a4b3446 Update changelog for 11.2.21 2024-07-15 16:31:44 +02:00
Alexandre Aubin
beeddc7819
Merge pull request #1909 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2024-07-15 16:16:50 +02:00
cjdw
0907411efc Translated using Weblate (Indonesian)
Currently translated at 53.0% (427 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/id/
2024-07-15 16:16:26 +02:00
José M
d71d8fe7b3 Translated using Weblate (Galician)
Currently translated at 100.0% (805 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2024-07-15 16:16:26 +02:00
Alexandre Aubin
9e8c7e704e
Merge pull request #1903 from YunoHost/repo_trusted
helpers/apt: Support apt repositories with [trusted=yes]
2024-07-15 16:16:22 +02:00
Alexandre Aubin
85c5c04b15
Merge pull request #1908 from YunoHost/actions/black
Format Python code with Black
2024-07-12 18:21:43 +02:00
alexAubin
a0bc7926c4 🎨 Format Python code with Black 2024-07-12 13:24:32 +00:00
Alexandre Aubin
27ccd2918e
Merge pull request #1907 from YunoHost/optimize-log-list-perf
log: optimize log list perf by creating a 'cache' symlink pointing to the log's parent
2024-07-12 15:24:13 +02: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
Alexandre Aubin
4112deda0c
Merge pull request #1906 from YunoHost/ci-autofix-translated-strings-dev
[CI] Reformat / remove stale translated strings
2024-07-11 17:14:16 +02:00
yunohost-bot
1e70577d23 [CI] Reformat / remove stale translated strings 2024-07-11 15:13:17 +00:00
OniriCorpe
623bd151d6 Translated using Weblate (French)
Currently translated at 100.0% (805 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-07-11 17:00:40 +02:00
Anonymous
d87fe9fb4c Translated using Weblate (Japanese)
Currently translated at 65.3% (526 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ja/
2024-07-11 17:00:40 +02:00
Anonymous
bf8271e383 Translated using Weblate (Ukrainian)
Currently translated at 90.1% (726 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2024-07-11 17:00:40 +02:00
Anonymous
818fd78a3d Translated using Weblate (Basque)
Currently translated at 97.1% (782 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2024-07-11 17:00:40 +02:00
Anonymous
eb012de188 Translated using Weblate (Spanish)
Currently translated at 97.1% (782 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/es/
2024-07-11 17:00:40 +02:00
Anonymous
725b41d2a3 Translated using Weblate (Catalan)
Currently translated at 95.9% (772 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ca/
2024-07-11 17:00:40 +02:00
OniriCorpe
85239f74f6 Translated using Weblate (French)
Currently translated at 100.0% (805 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-07-11 17:00:40 +02:00
OniriCorpe
0b438eab02 Translated using Weblate (French)
Currently translated at 99.5% (801 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-07-11 17:00:40 +02:00
cjdw
3c992c894a Translated using Weblate (Indonesian)
Currently translated at 50.8% (409 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/id/
2024-07-11 17:00:40 +02:00
cjdw
a97c82d1c2 Translated using Weblate (Indonesian)
Currently translated at 48.5% (391 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/id/
2024-07-11 17:00:40 +02:00
ppr
566213ecd5 Translated using Weblate (French)
Currently translated at 98.2% (791 of 805 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-07-11 17:00:40 +02:00
Zwiebel
5fb54936ba Translated using Weblate (German)
Currently translated at 97.0% (767 of 790 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2024-07-11 17:00:40 +02:00
José M
0b5c5a5f4d Translated using Weblate (Galician)
Currently translated at 100.0% (790 of 790 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2024-07-11 17:00:40 +02:00
Alexandre Aubin
e8c171fd83 ci: add migration 0027 to expected strings 2024-07-11 15:53:34 +02:00
Alexandre Aubin
0bffcbae76
Merge pull request #1901 from YunoHost/actions/black
Format Python code with Black
2024-07-11 11:02:18 +02:00
alexAubin
fbe42f1867 🎨 Format Python code with Black 2024-07-11 08:55:48 +00:00
Alexandre Aubin
7121ed6836
Merge pull request #1904 from YunoHost/bookwork-migration-text-fix-some-typos
Bookworn migration text: fix some typos
2024-07-11 10:55:27 +02:00
OniriCorpe
e339006c69 revert migration description 2024-07-11 03:45:58 +02:00
OniriCorpe
a66890ddd8 Bookworn migration text: fix some typos 2024-07-11 01:21:28 +02:00
Kayou
e54e99bfb7
fix migration message 2024-07-11 00:18:06 +02: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
401ccf69c7 helpers2.1: forgot to keep ynh_spawn_app_shell /o\ 2024-07-10 21:09:31 +02:00
Alexandre Aubin
e5bc94b9cf Copypasta is the worst kind of pasta 2024-07-10 20:17:42 +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
Alexandre Aubin
8be726b993 helpers: fix dpkg-deb --build complaining that the perm is sometimes 777 instead of 755 (not sure why in the first place x_x) 2024-07-10 18:15:36 +02:00
b96c530d2b Support trusted=yes repositories... 2024-07-09 23:57:19 +02:00
bb25c6b15d Fix: support repositories without component 2024-07-09 23:46:51 +02:00
Alexandre Aubin
a735a6d296
Merge pull request #1759 from YunoHost/migrate-to-bookworm
Draft: Bullseye->Bookworm migration
2024-07-08 23:21:33 +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
26fba087d6 Add aptitude to deps for the migration to bookworm 2024-07-08 22:37:40 +02:00
Alexandre Aubin
f6fbd69c39 helpers/apt: rely on simpler dpkg-deb --build rather than equivs to create .deb for app virtual dependencies 2024-07-07 17:28:03 +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
b5e6f02d7d
Merge pull request #1898 from YunoHost/ci-autofix-translated-strings-dev
[CI] Reformat / remove stale translated strings
2024-07-04 00:32:14 +02:00
yunohost-bot
30286bc811 [CI] Reformat / remove stale translated strings 2024-07-03 22:31:10 +00:00
Alexandre Aubin
62f7e022ff
Merge pull request #1897 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2024-07-04 00:22:39 +02:00
OniriCorpe
ffde5cbf87 Translated using Weblate (French)
Currently translated at 100.0% (790 of 790 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-07-04 00:21:03 +02:00
Alexandre Aubin
c6aec680b9 Backport i18n string + code for bookworm migration 2024-07-04 00:17:32 +02:00
OniriCorpe
395dc6b843 Merge branch 'dev' of https://github.com/YunoHost/yunohost into dev 2024-07-04 00:16:44 +02:00
OniriCorpe
fe8fcaefef typo (menacing parenthesis) 2024-07-04 00:16:42 +02:00
Alexandre Aubin
d6aa310c21
Merge pull request #1896 from YunoHost/fix-dumb-typo
fix a dumb typo
2024-07-04 00:14:09 +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
Alexandre Aubin
22d8c0c70a
Merge pull request #1895 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2024-07-04 00:08:30 +02:00
Ivan Davydov
8de0a4cdcb Translated using Weblate (Russian)
Currently translated at 37.1% (291 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ru/
2024-07-04 00:06:49 +02:00
Alexandre Aubin
6f73a82a2d
Merge pull request #1894 from YunoHost/translate-_diagnosis_ignore-function
translate _diagnosis_ignore function
2024-07-04 00:06:45 +02:00
OniriCorpe
ab742e55bb translate _diagnosis_ignore function 2024-07-04 00:04:17 +02:00
Alexandre Aubin
5d15c00d92 Update changelog for 11.2.20.2 2024-07-03 21:52:39 +02:00
Alexandre Aubin
9a5aff9715 Merge remote-tracking branch 'origin/dev' into migrate-to-bookworm 2024-07-03 17:24:15 +02:00
Alexandre Aubin
3e20cdd59e
Merge pull request #1893 from YunoHost/fix-#1886
trying to fix #1886
2024-07-02 22:24:29 +02:00
OniriCorpe
2edb6ad625
Merge branch 'dev' into fix-#1886 2024-07-02 21:52:10 +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
Alexandre Aubin
7c7e763a74 Update changelog for 11.2.20.1 2024-07-01 23:39:34 +02:00
Alexandre Aubin
0f85ddbcff friskies³ 2024-07-01 22:24:36 +02:00
OniriCorpe
131760e30c trying to fix #1886 2024-07-01 22:04:28 +02:00
Alexandre Aubin
7e55a791b6
Merge pull request #1892 from YunoHost/better-help-message-for-diagnosis-unignore
cli: better help message for 'diagnosis unignore'
2024-07-01 22:00:18 +02:00
Alexandre Aubin
2640dd3171 friskies² 2024-07-01 21:59:45 +02:00
OniriCorpe
4e3f30ef82 better help message for 'diagnosis unignore' 2024-07-01 21:51:43 +02:00
Alexandre Aubin
bc3e36abb3 friskies 2024-07-01 21:39:59 +02:00
Alexandre Aubin
92807afb16 helpers: yolo add tests for helpersv2.1 2024-07-01 20:55:45 +02:00
Alexandre Aubin
1ed56952e6 What do we say about testing before releasing? Not today! 2024-07-01 20:25:10 +02:00
Alexandre Aubin
6b77e19bbd Update changelog for 11.2.20 2024-07-01 18:49:47 +02:00
Alexandre Aubin
50034aabdd helpers2.1: use the MEDIA_GROUP global var for consistency 2024-07-01 18:49:36 +02:00
Alexandre Aubin
ef622ffe4d helpers2.1: switch to posisional args for ynh_multimedia_addaccess because that's what 99% of apps already do 2024-07-01 18:25:14 +02:00
Alexandre Aubin
40a3205add
Merge pull request #1890 from YunoHost/actions/black
Format Python code with Black
2024-06-30 21:38:27 +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
36b3b00166
Merge pull request #1889 from rndmh3ro/add_tar_support
add support for downloading tar-files
2024-06-30 20:25:06 +02:00
Sebastian Gumprich
e75b4b3b3b add support for downloading tar-files
this is needed for invoiceninja, see https://github.com/YunoHost-Apps/invoiceninja5_ynh/pull/280
2024-06-30 20:18:31 +02:00
Alexandre Aubin
1c62960e25 helpers2.1: remove the ynh_clean_setup mechanism underused/useless.. 2024-06-30 20:10:21 +02:00
Alexandre Aubin
1e1409c7d7 helpers2.1: logging tweak in ynh_die 2024-06-30 19:43:18 +02:00
Alexandre Aubin
fcaa366e91 helpers2.1: zzzz 2024-06-30 19:28:18 +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
c965f13f50
Merge branch 'dev' into auto-disable 2024-06-30 18:29:06 +02:00
OniriCorpe
20741c63aa change an irrelevant error to a warning 2024-06-30 18:28:18 +02:00
Alexandre Aubin
a48bfa67de helpers2.1: change source patches location + raise an error instead of a warning when a patch fails to apply on CI
Co-authored-by: Félix Piédallu <felix@piedallu.me>
2024-06-30 17:46:52 +02:00
Alexandre Aubin
3f973669fc helpers2.1: fix automigration of phpversion to php_version 2024-06-30 01:37:56 +02:00
Alexandre Aubin
a18d5f26f2 helpers2.1: zgrblg 2024-06-30 00:21:40 +02:00
Alexandre Aubin
c2271ab731 Update changelog for 11.2.19 2024-06-29 23:57:26 +02:00
Alexandre Aubin
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) 2024-06-29 21:32:53 +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
Alexandre Aubin
fcbb971792
Merge pull request #1885 from YunoHost/actions/black
Format Python code with Black
2024-06-29 20:33:05 +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
Alexandre Aubin
d47c87e57d helpers2.1: wrmbgl 2024-06-29 20:16:52 +02:00
Alexandre Aubin
28603da4f1
Merge pull request #1884 from YunoHost/actions/black
Format Python code with Black
2024-06-29 20:05:21 +02:00
alexAubin
c2d69f7f84 🎨 Format Python code with Black 2024-06-29 18:05:02 +00:00
Alexandre Aubin
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 2024-06-29 20:04:27 +02:00
Alexandre Aubin
3e1c9ebaf7 Fix getopts error handling ... 2024-06-29 19:21:08 +02:00
Alexandre Aubin
1ab3a79d39 Update changelog for 11.2.18 2024-06-29 18:06:40 +02:00
Alexandre Aubin
44bbc34967
Merge pull request #1716 from Salamandar/ynh_secure_remove
Fix ynh_safe_rm: check if target is not a broken symlink before erorring out.
2024-06-29 17:23:50 +02:00
Alexandre Aubin
7b2959a3eb helpers2.1: forgot to rename the apt call in mongodb helpers 2024-06-29 17:18:20 +02:00
Alexandre Aubin
1dfc47d1d7 helpers2.1: in logrotate, make sure to also chown $app the log dir 2024-06-28 20:21:56 +02:00
Alexandre Aubin
9cd7c86641
Merge pull request #1883 from YunoHost/fix_default_permissions
[helpers v2.1] Rework _ynh_apply_default_permissions
2024-06-28 20:20:08 +02:00
Alexandre Aubin
ef68485c5f Use the group defined in the manifest by default 2024-06-28 19:24:07 +02:00
Alexandre Aubin
656ff823a9 Also handle files in /etc/$app 2024-06-28 18:56:18 +02:00
Alexandre Aubin
ae3018cdd0 Infer the necessity to use www-data as group from the presence of alias or root in nginx.conf 2024-06-28 18:39:12 +02:00
Alexandre Aubin
8b8768fd77 Only set www-data as group for webapps 2024-06-28 18:09:49 +02:00
Alexandre Aubin
75d7042974
Update helpers/helpers.v2.1.d/utils: use regex matching to check if path is child from a parent path 2024-06-28 16:56:28 +02:00
Alexandre Aubin
3b26ccc2a5 Properly handle case where $parent is empty to simplify condition 2024-06-28 16:55:39 +02:00
Alexandre Aubin
3608c5678c Proper 'if' cases to distinguish between $install_dir vs regular files in $install_dir and $data_dir 2024-06-28 16:45:43 +02:00
Alexandre Aubin
d9d404a5b2 ynh_setup_source: apply default perms *after* extracting files to hopefully remove the need to manually chown/chmod 2024-06-28 16:06:40 +02:00
8846381d47 Rework _ynh_apply_default_permissions, only check if target is a child of install_dir. 2024-06-28 16:03:17 +02:00
650481a58a ynh_safe_rm: Check if target is a symlink
When calling ynh_safe_rm to a broken symlink, the function was erroring out.
(test -e was following the symlink and returning false)
We need to also check if it is a symlink before exiting.
2024-06-28 15:01:59 +02:00
Alexandre Aubin
87eedc2a36 Update changelog for 11.2.17.1 2024-06-25 14:20:42 +02:00
Alexandre Aubin
feb9a095b3 helpers doc: fix detail block, cant use the HTML <details> because grav doesnt interpret markdown in it 2024-06-25 14:17:49 +02:00
Alexandre Aubin
997388dc79 helpers2.1: fix __PATH__/ handling 2024-06-25 14:16:04 +02:00
Alexandre Aubin
9982a77582
Merge pull request #1878 from YunoHost/actions/black
Format Python code with Black
2024-06-25 00:21:50 +02:00
Alexandre Aubin
2a7fefaecb helpers/doc: De-hide some helpers v1 in documentation now that the structure is less bloated sort of ? 2024-06-25 00:21:24 +02:00
Alexandre Aubin
7347b08e49 ci: Fix helpers 2.1 doc location 2024-06-25 00:18:38 +02:00
alexAubin
6851d740f7 🎨 Format Python code with Black 2024-06-24 20:38:46 +00:00
Alexandre Aubin
2d26935079 Update changelog for 11.2.17 2024-06-24 22:38:18 +02:00
Alexandre Aubin
094cd9ddd6 helpers: rework helper doc now that we have multiple versions of helpers in parallel + improve structure (group helper file in categories) 2024-06-24 22:34:36 +02:00
Alexandre Aubin
29ae71acad
Merge pull request #1877 from YunoHost/actions/black
Format Python code with Black
2024-06-24 22:28:31 +02:00
alexAubin
c9b76fde35 🎨 Format Python code with Black 2024-06-24 20:13:47 +00:00
Alexandre Aubin
e3bebeac98 helpers2.1: typo in getopts 2024-06-24 22:13:16 +02:00
Alexandre Aubin
ed426f05ba apps/helpers2.1: fix app env in resource upgrade context ending up in incorrect helper version being used 2024-06-24 22:13:01 +02:00
Alexandre Aubin
2af4c157d9 helpers/mongo: less noisy output when checking the avx flag is here in /proc/cpuinfo 2024-06-24 21:35:35 +02:00
Alexandre Aubin
0aad13cd2f helpers2.1: oopsies in apt helper 2024-06-24 19:11:28 +02:00
Alexandre Aubin
2895d4d99b helpers: Misc cleaning / reorganizing to prepare new doc 2024-06-24 17:42:37 +02:00
Alexandre Aubin
1fb80e5d24 helpers2.1: drop ynh_apps helper because only a single app is using it ... 2024-06-24 06:09:58 +02:00
Alexandre Aubin
30467f8bc3 helpers2.1: fix bad syntax in ynh_app_upstream_version 2024-06-23 20:04:17 +02:00
Alexandre Aubin
d8c3ff4c8a helpers2.1: forgot to propagate the 'goenv latest' fix from helpers v1 2024-06-23 16:35:58 +02:00
Alexandre Aubin
0e4495f11e Update changelog for 11.2.16 2024-06-23 15:32:47 +02:00
Alexandre Aubin
2b1f74268f helpers2.1: var rename / cosmetic etc for nodejs/ruby/go version and install directories 2024-06-23 15:21:25 +02:00
Alexandre Aubin
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 2024-06-23 14:49:11 +02:00
Alexandre Aubin
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 2024-06-23 14:36:55 +02:00
Alexandre Aubin
9298738d06 helpers2.1: display 100 lines instead of 20 in CI context when service fails to start 2024-06-23 14:30:57 +02:00
Alexandre Aubin
262453f132 helpers2.1: change default timeout of ynh_systemctl to 60s instead of 300s 2024-06-23 14:27:37 +02:00
Alexandre Aubin
d4857834f3 helpers2.1: sudo -u$app -> sudo -u $app 2024-06-23 14:13:17 +02:00
Alexandre Aubin
3942ea12ae helpers2.1: fix ynh_config_add_logrotate when no arg is passed 2024-06-23 14:08:31 +02:00
Alexandre Aubin
a2ac77fa91
Merge pull request #1867 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2024-06-23 01:20:35 +02:00
Jose Riha
6ee40ac06a Translated using Weblate (Slovak)
Currently translated at 31.2% (245 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2024-06-23 01:20:14 +02:00
xabirequejo
f26565d6de Translated using Weblate (Basque)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2024-06-23 01:20:14 +02:00
Alexandre Aubin
2e05b0894b
Merge pull request #1876 from YunoHost/actions/black
Format Python code with Black
2024-06-23 01:20:11 +02:00
alexAubin
18092db1c8 🎨 Format Python code with Black 2024-06-22 23:15:07 +00:00
Alexandre Aubin
ecb82ec693 Oopsies 2024-06-23 01:14:41 +02:00
Alexandre Aubin
31ae5d1eaa Misc fixes for flake8/mypy 2024-06-23 01:05:39 +02:00
Alexandre Aubin
be3df69326
Merge pull request #1873 from YunoHost/ynh_app_setting_set_default
helpers: add a new ynh_app_setting_set_default to replace the unecessarily complex 'if [ -z ${foo:-} ]' trick
2024-06-23 00:59:26 +02:00
Alexandre Aubin
7caf7e8b3e
Merge pull request #1874 from YunoHost/rework_fpm_settings_madness
helpers2.1: rework the fpm usage/footprint madness
2024-06-23 00:59:00 +02:00
Alexandre Aubin
e558513609 helpers2.1: fix positional arg parsing in ynh_psql_create_user 2024-06-22 22:52:31 +02:00
Alexandre Aubin
3d728d90ce helpers2.1: rework the fpm usage/footprint madness 2024-06-22 01:59:18 +02:00
alexAubin
0bd69e5622 🎨 Format Python code with Black 2024-06-21 22:47:02 +02:00
Alexandre Aubin
1b5074d857 helpers: add a new ynh_app_setting_set_default to replace the unecessarily complex 'if [ ${foo:-} ]' trick 2024-06-21 18:30:05 +02:00
Alexandre Aubin
dd8db1883a helpers2.1: drop unused 'local source' mechanism from ynh_setup_source 2024-06-21 16:26:14 +02:00
Alexandre Aubin
06c8fbc881 logs: misc ad-hoc tweaks to limit the noise in log sharing 2024-06-21 16:26:07 +02:00
Alexandre Aubin
a25033bba5 apps/logs: fix some information not being redacted because of the packaging v2 flows 2024-06-21 14:20:56 +02:00
Alexandre Aubin
2f933b5bf2 Update changelog for 11.2.15 2024-06-20 21:38:11 +02:00
Alexandre Aubin
90dfccf278
Merge pull request #1871 from YunoHost/actions/black
Format Python code with Black
2024-06-20 19:08:21 +02:00
alexAubin
b1b3c6eff8 🎨 Format Python code with Black 2024-06-20 17:07:42 +00:00
Alexandre Aubin
2ee8d93f67
Merge pull request #1855 from YunoHost/helpers-2.1
Helpers 2.1
2024-06-20 19:07:21 +02:00
Alexandre Aubin
6605df6eb2 helpers2.1: use the appropriate helper for apt provisioning/deprovisioning depending on the helpers_version in the manifest 2024-06-20 19:06:54 +02:00
Alexandre Aubin
41b958113a helpers2.1: unbound var @_@ 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 2024-06-20 16:37:22 +02:00
Alexandre Aubin
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 2024-06-20 16:15:57 +02:00
Alexandre Aubin
b47aedc932 helpers: remove god forsaken clumsy node_update cron job >_> 2024-06-20 14:02:56 +02:00
Alexandre Aubin
f22c6ec3e9 helpers2.1: ynh_systemd_action -> ynh_systemctl 2024-06-20 13:47:05 +02:00
Alexandre Aubin
d9b9aa1884 helpers2.1: use positional args for file checksum helpers 2024-06-20 13:44:09 +02:00
e12d79390f resources/db: ensure dbtype is valid 2024-06-20 11:15:19 +02:00
Alexandre Aubin
b8a1a3a660 helpers2.1: ynh_config_remove_systemd now uses positional 2024-06-19 23:45:37 +02:00
Alexandre Aubin
6b6580a919 helpers2.1: further simplify logging helpers by removing the --message (ynh_script_progression too, no more args except the message) 2024-06-19 23:40:53 +02:00
Alexandre Aubin
11e2b6d63c helpers2.1: ynh_systemd_action '--line_match' -> '--wait_until' 2024-06-19 23:19:19 +02:00
Alexandre Aubin
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 2024-06-19 17:06:22 +02:00
Salamandar
ec354d443d
helpers-2.1: Fix mysqlshow regex to list existing databases
Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
2024-06-19 14:53:55 +02:00
Alexandre Aubin
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... 2024-06-19 04:07:07 +02:00
Alexandre Aubin
bd43a4504e
Update main.cf: fuck postfix syntax 2024-06-18 14:12:11 +02:00
Alexandre Aubin
156f9e54ba
Merge pull request #1843 from chri2/postfix_unionmap
Update main.cf to allow aliases for sender addresses of apps
2024-06-18 12:36:13 +02:00
Alexandre Aubin
5a6a8e6c73 helpers2.1: fix unecessary change in ynh_read_manifest, key shouldnt need to be prefixed with . 2024-06-16 14:12:11 +02:00
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
8c376c2ae4 apps: remove /var/log/$app during app_remove if --purge is used 2024-06-11 02:31:51 +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
fa848ff1c4
Merge pull request #1869 from YunoHost/fix_multiple_apt_extra
resources.py apt: Fix when multiple extras are passed
2024-06-10 18:19:05 +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
259c7ac4a7 resources.py apt: Fix when multiple extras are passed
A wrong indentation leads to code executed at every for loop iteration. If multiple apt.extras resources, this fails
at the first iteration.
2024-06-10 17:36:46 +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
307ed10c41 Merge remote-tracking branch 'origin/dev' into migrate-to-bookworm 2024-06-10 12:38:54 +02:00
Alexandre Aubin
c9324772f2 Update changelog for 11.2.14.1 2024-06-10 12:35:47 +02:00
Alexandre Aubin
d2d0af27cf make_changelog: mark as 'stable' by default because it's been ages since we had real testings 2024-06-10 12:33:39 +02:00
Alexandre Aubin
697a33574b
Merge pull request #1868 from YunoHost/fix_goenv_again
helpers/v1/go: fix call.
2024-06-10 12:15:15 +02:00
f0727ebdb4 helpers/v1/go: fix call.
goenv latest doesn’t call the plugin anymore, so i’m calling directly the plugin goenv-latest.
2024-06-10 12:11: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
eb8db04629 Merge remote-tracking branch 'origin/dev' into helpers-2.1 2024-06-08 17:22:06 +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
c6bda180b4
Merge pull request #1865 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2024-06-08 15:45:18 +02:00
OniriCorpe
b439a0f7b5 Translated using Weblate (French)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-06-07 12:08:17 +02:00
clecle226
9a09680b6e Translated using Weblate (French)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-06-07 12:08:17 +02:00
Alexandre Aubin
984300422e
Merge pull request #1866 from chri2/ynh_read_manifest
helpers: Fix typo in ynh_read_manifest documentation
2024-06-07 12:08:13 +02:00
Chris Vogel
2bd76986a8
correction in help for ynh_read_manifest
in line 955 the parameter is named differently than in the functions help
2024-06-07 11:53:40 +02:00
dd394e94dc Update changelog for 11.2.14 2024-06-05 15:54:37 +02:00
5676a72750 helpers/go: fix missing git fetch 2024-06-05 15:25:28 +02:00
Alexandre Aubin
c836d88b9a Update changelog for 11.2.13 2024-06-04 16:48:24 +02:00
Alexandre Aubin
3a1c8287b4 helpers 2.1: merge new --jinja option for templating 2024-06-04 15:08:26 +02:00
Alexandre Aubin
c6a7d3a591 Merge remote-tracking branch 'origin/dev' into helpers-2.1 2024-06-04 15:03:00 +02:00
Alexandre Aubin
fef411e1ca
Merge pull request #1851 from YunoHost/add-jinja-support-to-ynh-add-config
helpers: Add a --jinja option to ynh_add_config
2024-06-04 15:02:12 +02:00
Alexandre Aubin
75b267dc42 helpers: moar fixes for helper versioning, use -L to follow symlink 2024-06-04 14:59:17 +02:00
Alexandre Aubin
c4c0210dc1
Fix helpers loader: helpers are available in v1 or v2 2024-06-03 17:42:17 +02:00
Alexandre Aubin
b67d4621fc apps: fix YNH_HELPERS_VERSION again because packaging_format is actually a float hence 1.0/2.0 instead of 1 or 2 x_x 2024-06-03 13:38:43 +02:00
Alexandre Aubin
fb32842c89
Merge pull request #1864 from YunoHost/actions/black
Format Python code with Black
2024-06-03 13:22:37 +02:00
alexAubin
88d221c52e 🎨 Format Python code with Black 2024-06-03 11:10:39 +00:00
Alexandre Aubin
f5dc382888 apps: for YNH_HELPERS_VERSION to be a string for the bash env, otherwise Popen explodes 2024-06-03 13:10:14 +02:00
Alexandre Aubin
893e1230ef
Merge pull request #1863 from YunoHost/fix_go_helper
helpers: goenv is broken when checking out latest master commit.
2024-06-03 12:34:23 +02:00
Alexandre Aubin
23038ea62b
Merge branch 'dev' into fix_go_helper 2024-06-03 12:25:53 +02:00
Alexandre Aubin
cca2962b11 helpers: YNH_APP_INSTANCE_NAME -> app for consistency 2024-06-03 12:18:28 +02:00
841f6500b5 helpers/go: add double quotes to trigger syntax errors when bugs occur instead of silently behaving incorrectly. 2024-06-03 12:02:17 +02:00
e6b676df5b helpers: goenv is broken when checking out latest master commit.
Instead, checkout the latest commit. Same for xxenv-latest.
2024-06-03 11:59:04 +02:00
Salamandar
d77b646971
Merge pull request #1860 from YunoHost/n-autoupdater
Fix vendor autoupdater and keep only one vendor directory
2024-06-02 20:46:16 +02:00
5e6c3433ee Fix github workflow n_updater (empty version number) 2024-06-02 20:45:50 +02:00
tituspijean
ab892be38b One vendor to rule them all
and in the darkness let the autoupdater do its work
2024-06-02 20:45:26 +02:00
Salamandar
064fa32a39
Merge pull request #1862 from YunoHost/cleanup_workflows
Simplify github workflows
2024-06-02 20:40:10 +02:00
2d23798283 Simplify github workflow: peter-evans/create-pull-request@v6 already checks if diff exists 2024-06-02 20:39:00 +02:00
Alexandre Aubin
65abffa1ce Merge remote-tracking branch 'origin/dev' into add-jinja-support-to-ynh-add-config 2024-05-28 11:27:59 +02:00
Josué Tille
4a9a3ba138
Update doc about helper ynh_add_config 2024-05-28 00:39:04 +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
6835a664c7 Merge remote-tracking branch 'origin/dev' into helpers-2.1 2024-05-28 00:02:26 +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
Alexandre Aubin
f895724a25 helpers 2.1: remove legacy ynh_webpath_available and ynh_webpath_register 2024-05-27 22:45:25 +02:00
Alexandre Aubin
8b59e315bf helpers 2.1: remove legacy ynh_psql_test_if_first_run 2024-05-27 22:42:52 +02:00
Alexandre Aubin
b79ff15d32 helpers 2.1: remove legacy --nonappend/--non-append arg in logrotate helper 2024-05-27 22:40:35 +02:00
Alexandre Aubin
6b577bdd23 helpers 2.1: remove packaging v1 ynh_backup_before_upgrade and ynh_restore_upgradebackup, handled by core in packaging v2 2024-05-27 22:39:43 +02:00
Alexandre Aubin
94c12c6409 helpers 2.1: heavily simplify php-related helpers: remove --phpversion argument, --composerversion (define YNH_COMPOSER_VERSION prior to calling helper), --usage/--footprint (can still be customized by defining fpm_usage/footprint setting) 2024-05-27 22:38:53 +02:00
Alexandre Aubin
1b03058858 helpers 2.1: simplify the apt extra repo clusterfuck / unused args etc 2024-05-27 21:47:32 +02:00
Alexandre Aubin
422e02244d helpers 2.1: fix indent 2024-05-27 21:07:52 +02:00
Alexandre Aubin
365d0b25af helpers 2.1: drop ynh_find_port, ynh_port_available, ynh_validate_ip4/6, keep only ynh_validate_ip 2024-05-27 21:07:52 +02:00
Alexandre Aubin
aa6634fd22 helpers 2.1: rework argument parsing comment to improve readability, consistency 2024-05-27 21:07:39 +02:00
Alexandre Aubin
0915a6a70b helpers 2.1: Drop support for old .src format in ynh_setup_source 2024-05-27 18:48:39 +02:00
Alexandre Aubin
4a74a7c51d helpers 2.1: remove support for __NAME__ and __NAMETOCHANGE__ replaced by $app in templates 2024-05-27 18:48:36 +02:00
Alexandre Aubin
6e13a4db1b helpers 2.1: remove unecessary --app=$app in internals ynh_app_setting_get/set calls 2024-05-27 18:48:26 +02:00
Alexandre Aubin
b914ad9093 helpers 2.1: drop support for 'legacy args' (positionals) in helpers 2024-05-27 18:48:21 +02:00
Alexandre Aubin
084ecd6578 helpers 2.1: backport most of the bookworm changes 2024-05-27 18:48:16 +02:00
Alexandre Aubin
204800e878 helpers: copy v1 helpers to new v2.1 2024-05-27 18:48:07 +02:00
Alexandre Aubin
06dc3da3f4
Merge pull request #1854 from YunoHost/fix_helpers
Fix helpers: actually that might be a bad idea to read arguments
2024-05-27 17:29:02 +02:00
af2a56012f Fix helpers: actually that might be a bad idea to read arguments as if
`source helpers` has no arguments passed, $@ is the main script arguments.
2024-05-27 17:26:56 +02:00
Alexandre Aubin
55cfc46cdd
Merge pull request #1852 from YunoHost/actions/black
Format Python code with Black
2024-05-27 16:58:39 +02:00
alexAubin
e3282f2329 🎨 Format Python code with Black 2024-05-27 14:58:01 +00:00
Alexandre Aubin
2047d536be helpers: we need helpers.v2.d to be a symlink to helpers.v1.d? 2024-05-27 16:57:33 +02:00
Alexandre Aubin
c1b3c3f785
Merge pull request #1717 from Salamandar/helpers
Create versionned directories of the helpers
2024-05-27 16:49:05 +02:00
Alexandre Aubin
1e47a1438b apps: auto-define YNH_HELPERS_VERSION from a new 'helpers_version' key in the manifest's [integration] section, or fallback to the 'packaging_format' info 2024-05-27 16:38:09 +02:00
Alexandre Aubin
7011b1c879 YNH_APP_HELPERS_DIR -> YNH_HELPERS_DIR 2024-05-27 16:35:38 +02:00
5d3131b494 rework top-level helpers 2024-05-27 16:08:10 +02:00
a2bc8c4f38 Create versionned directories of the helpers 2024-05-27 16:08:10 +02:00
Alexandre Aubin
12764652b0 helpers: Add a --jinja option to ynh_add_config 2024-05-26 20:10:30 +02:00
Alexandre Aubin
6aa9d05372
Merge pull request #1847 from chri2/getopts_echo_printf
Update getopts to accept arguments that are valid arguments to echo
2024-05-22 13:10:23 +02:00
Alexandre Aubin
84d1a6bcca Attempt to fix mypy ? 2024-05-21 23:21:00 +02:00
Alexandre Aubin
259c596e12 Fix invalid escape sequence? 2024-05-21 23:16:55 +02:00
Chris Vogel
3b8a91efe6
Update getopts to accept arguments that are valid arguments to echo
The usage of `echo` to output arguments to to a pipe leads to the problem that arguments that are valid to `echo` itself cannot be processed:

```
root@yt:~# TEST='-n'
root@yt:~# printf '%s\n' $TEST
-n
root@yt:~# echo "$TEST"
root@yt:~# echo "debug $TEST"
debug -n
```

Replacing `echo` with `printf` improves the situation.
2024-05-21 10:15:13 +02:00
Salamandar
110dffeb7f
Merge pull request #1844 from YunoHost/mongodb-helper
Add mongodb helpers
2024-05-21 00:56:10 +02:00
Alexandre Aubin
d5e054fe80 doc: fix gitlab helper/resource doc automagic PR because doc structure changed 2024-05-20 01:46:44 +02:00
OniriCorpe
71dabfea6c Update 11.2.12 2024-05-20 00:07:42 +02:00
Alexandre Aubin
14a8445375 helpers/ruby: fix unbound variable 2024-05-19 20:55:20 +02:00
Alexandre Aubin
0a5dd1b099
Update log.py: fix fstring with no arg 2024-05-19 20:51:45 +02:00
Alexandre Aubin
437f21ed5a Revert "Delete helpers/mongodb, to be readded in another PR"
This reverts commit 9b7b265cbf.
2024-05-19 15:51:14 +02:00
Alexandre Aubin
f6d38bebee
Merge pull request #1838 from ericgaspar/dev
Add redis and ruby helpers
2024-05-19 15:50:47 +02:00
Alexandre Aubin
9b7b265cbf
Delete helpers/mongodb, to be readded in another PR 2024-05-19 15:50:18 +02:00
Alexandre Aubin
ad6c75652c
Update helpers/ruby 2024-05-19 15:21:05 +02:00
Alexandre Aubin
30046784a0
Update ruby: simplify messages, fix bash mess 2024-05-19 15:20:33 +02:00
eric_G
f798236a3a
Update helpers/redis
Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
2024-05-18 17:17:01 +02:00
eric_G
44840603b5
Update helpers/mongodb
Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
2024-05-18 16:36:05 +02:00
eric_G
7f52988671
Update helpers/mongodb
Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
2024-05-18 16:35:37 +02:00
eric_G
89e24eb258
Update helpers/ruby
Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
2024-05-18 16:33:41 +02:00
eric_G
76c54ebdea
Update helpers/ruby
Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
2024-05-18 16:33:30 +02:00
Alexandre Aubin
48c673478d
Merge pull request #1805 from Abperron/enh-2047-log-show-last-x
[enh] Implement 'yunohost log show last' to display the last log file.
2024-05-18 14:29:36 +02:00
Alexandre Aubin
c2c27a01fc
Merge pull request #1819 from YunoHost/fix-_check_domain_is_ready_for_ACME-for-sub-subdomain
[fix] renew cert for sub subdomain
2024-05-18 14:20:28 +02:00
Chris Vogel
1c7e139c74
Update main.cf to allow aliases for sender addresses of apps
If an app registers the sender address _app@doma.in_ **and** a yunohost account configured an alias for the same address the app will not be able to send emails anymore.

postfix asks the first map defined in smtpd_sender_login_maps and finds that the address _app@doma.in_ can be used as a sender address by the yunohost account having configured the alias and **then stops and doesn't look up the second list** for registered apps.

The unionmap instructs postfix to join a list from both sources and then return the match from that joined list which would then contain _yunohost_account_having_registered_alias, appname_ for the lookup of _app@doma.in_.

This allows the yunohost account having registered the alias and the app being registered to use the sender address to send email using that sender **and makes it possible to receive replies to the emails going out from the app**.

Reference: https://serverfault.com/questions/948362/postfix-multiple-smtpd-sender-login-maps
2024-05-18 14:03:32 +02:00
Alexandre Aubin
c459ddabbd
Merge pull request #1842 from YunoHost/corepaaaaaack
Prevent yet another Node and Corepack madness
2024-05-17 21:47:09 +02:00
tituspijean
3010066190
Prevent yet another Node and Corepack madness 2024-05-17 21:32:27 +02:00
Éric Gaspar
cc3c5fc4f0 Update go 2024-05-15 12:18:13 +02:00
Éric Gaspar
1a24d32e98 Update mongodb 2024-05-15 12:15:39 +02:00
Éric Gaspar
6e1980279c Add ruby 2024-05-15 12:09:19 +02:00
Éric Gaspar
12ea021e3a Add mongodb 2024-05-15 12:09:07 +02:00
Éric Gaspar
a333907d97 Create redis 2024-05-15 10:36:39 +02:00
Alexandre Aubin
498b8d9c43
Merge pull request #1837 from ericgaspar/dev
Add Go Helper to the core
2024-05-15 08:24:01 +02:00
eric_G
915788d53f
Update helpers/go
Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
2024-05-15 08:16:52 +02:00
Éric Gaspar
2744fed552 Add Go Helper to the core 2024-05-15 06:50:42 +02:00
Alexandre Aubin
00477594d6
Merge pull request #1836 from aya/fix_ldap_permission_for_admins
fix ldap write access for admin users
2024-05-14 00:49:46 +02:00
Yann Autissier
c2e39a533f fix ldap write access for admin users
Admin users are unable to modify ldap entries, getting following error:
0x32 (LDAP_INSUFFICIENT_ACCESS)
2024-05-13 22:28:38 +00:00
Alexandre Aubin
675650f057
Merge pull request #1835 from orhtej2/patch-2
Actually remove the newly added repo.
2024-05-13 23:34:30 +02:00
Mateusz
f1906fe473
Actually remove the newly added repo. 2024-05-12 22:22:34 +02:00
Alexandre Aubin
5b58500965
Merge pull request #1834 from selfhoster1312/doc-source-full-replace
Document ynh_add_source --full_replace=1
2024-05-12 20:29:04 +02:00
selfhoster1312
c81f1611c6 Document ynh_add_source --full_replace=1 2024-05-12 20:27:10 +02:00
Alexandre Aubin
b5884fe1ed
Merge pull request #1833 from YunoHost/actions/black
Format Python code with Black
2024-05-11 19:44:33 +02:00
alexAubin
e9f074188a 🎨 Format Python code with Black 2024-05-11 17:43:08 +00:00
Alexandre Aubin
a6d1fa5a7a
Merge pull request #1832 from YunoHost/remove-packagingv1-helper-from-doc
doc: Remove internal/packagingv1 helpers from helpers doc
2024-05-11 19:42:48 +02:00
Alexandre Aubin
3ad7e900ab doc: Remove internal/packagingv1 helpers from helpers doc 2024-05-11 16:38:33 +02:00
OniriCorpe
21a157e2e7 Translated using Weblate (Japanese)
Currently translated at 67.3% (527 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ja/
2024-05-10 18:33:41 +02:00
OniriCorpe
80af05cb64 Translated using Weblate (Slovak)
Currently translated at 29.6% (232 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2024-05-10 18:33:41 +02:00
OniriCorpe
029c7f66c3 Translated using Weblate (Indonesian)
Currently translated at 49.5% (388 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/id/
2024-05-10 18:33:41 +02:00
OniriCorpe
e93f17fcf9 Translated using Weblate (Persian)
Currently translated at 64.3% (504 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fa/
2024-05-10 18:33:41 +02:00
OniriCorpe
14bcdd5bdc Translated using Weblate (Ukrainian)
Currently translated at 92.8% (727 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2024-05-10 18:33:41 +02:00
OniriCorpe
fa2e133c6e Translated using Weblate (Galician)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2024-05-10 18:33:41 +02:00
OniriCorpe
08055003f5 Translated using Weblate (Chinese (Simplified))
Currently translated at 63.8% (500 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/zh_Hans/
2024-05-10 18:33:41 +02:00
OniriCorpe
2b71b57b1a Translated using Weblate (Italian)
Currently translated at 75.0% (588 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2024-05-10 18:33:41 +02:00
OniriCorpe
8aeba11ab8 Translated using Weblate (French)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-05-10 18:33:41 +02:00
OniriCorpe
eb8b1d1787 Translated using Weblate (Basque)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2024-05-10 18:33:41 +02:00
xabirequejo
c992f1f583 Translated using Weblate (Basque)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2024-05-10 18:33:41 +02:00
OniriCorpe
950c75ad5d Translated using Weblate (Spanish)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/es/
2024-05-10 18:33:41 +02:00
rosbeef andino
5ce76e72f5 Translated using Weblate (Spanish)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/es/
2024-05-10 18:33:41 +02:00
OniriCorpe
ab5c2759d3 Translated using Weblate (Esperanto)
Currently translated at 55.9% (438 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eo/
2024-05-10 18:33:41 +02:00
OniriCorpe
bceaac0a75 Translated using Weblate (German)
Currently translated at 97.8% (766 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2024-05-10 18:33:41 +02:00
OniriCorpe
25e842aef7 Translated using Weblate (Catalan)
Currently translated at 98.7% (773 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ca/
2024-05-10 18:33:41 +02:00
José M
955d78ddf1 Translated using Weblate (Galician)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2024-05-10 18:33:41 +02:00
Alexandre Aubin
63a629200b
Merge pull request #1828 from YunoHost/i18n--remove-'/#/'-in-docs-URL
i18n: remove '/#/" in docs URL
2024-05-08 12:40:28 +02:00
OniriCorpe
684a593304 Translated using Weblate (French)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-05-08 05:19:07 +02:00
OniriCorpe
70e9b2946b Translated using Weblate (French)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-05-08 05:19:07 +02:00
OniriCorpe
32b3843135 i18n: remove '/#/" in docs URL 2024-05-08 04:52:40 +02:00
Alexandre Aubin
8158aaf5aa
Merge pull request #1825 from YunoHost/actions/black
Format Python code with Black
2024-05-08 01:39:51 +02:00
alexAubin
e6623bb76b 🎨 Format Python code with Black 2024-05-07 23:39:04 +00:00
Alexandre Aubin
2a90233961 i18n: accept U+202F as an okay char 2024-05-08 01:38:40 +02:00
Alexandre Aubin
69dce7a0b4
Merge pull request #1823 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2024-05-08 01:26:33 +02:00
OniriCorpe
2ab2c20b42 Translated using Weblate (French)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-05-08 01:11:42 +02:00
Alexandre Aubin
d74c3af1f7 i18n: fix policy for ... vs … + reuniformize locales 2024-05-07 23:21:45 +02:00
tituspijean
82c682d6d1 Split log rm commands into separate shells
otherwise, if one fails, the following ones are not run.
2024-05-05 20:33:55 +02:00
Kayou
552507007a
get the root domain instead of his closest parent 2024-04-26 10:24:06 +02:00
tituspijean
1f52c46c9b
Update 11.2.11.3 2024-04-21 19:15:01 +02:00
Alexandre Aubin
344f2b5256
Merge pull request #1818 from YunoHost/ci-auto-update-n-v
Upgrade n to 9.2.3
2024-04-21 13:07:10 +02:00
yunohost-bot
e04f040a79 Upgrade n to v 2024-04-21 05:12:01 +00:00
OniriCorpe
537699ca90 helpers: fix 'ls: cannot access <folder> No such file or directory' errors on CI 2024-04-20 05:35:07 +02:00
Alexandre Aubin
5e4e59a133
Update resources.py 2024-04-11 23:30:18 +02:00
alexAubin
a665f2550c 🎨 Format Python code with Black 2024-04-11 22:45:57 +02:00
Alexandre Aubin
a5560c3035
Update resources.py: fix edge case when parsing app ustream version from resource manager 2024-04-11 21:19:14 +02:00
Alexandre Aubin
7d0d82ae01 Update changelog for 11.2.11.2 2024-04-11 16:04:17 +02:00
Alexandre Aubin
22b30c79c0 Zgrompf 2024-04-11 16:03:10 +02:00
Alexandre Aubin
bf5b2ae532 Update changelog for 11.2.11.1 2024-04-11 14:34:06 +02:00
Alexandre Aubin
29c597ed8e Missing import oopsi 2024-04-11 14:32:39 +02:00
Alexandre Aubin
1e3fd2989a Update changelog for 11.2.11 2024-04-11 13:59:07 +02:00
Alexandre Aubin
a3ab7c9199 app resources: add __YNH_DEBIAN_VERSION_ID__ in available variable, corresponing to debian number (11, 12, ...) 2024-04-11 00:38:23 +02:00
Alexandre Aubin
85f83af862 perf: add cache for system utils that fetch debian_version, debian_version_id, system_arch, system_virt 2024-04-10 23:08:40 +02:00
tituspijean
7bc6fef22c
Merge pull request #1813 from YunoHost/actions/black 2024-04-10 22:35:13 +02:00
tituspijean
ff6b6954aa 🎨 Format Python code with Black 2024-04-10 20:32:30 +00:00
tituspijean
835303200d
Fix and enh variables for app resources
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2024-04-10 22:31:53 +02:00
OniriCorpe
38b1c53f8a
Merge pull request #1812 from YunoHost/actions/black 2024-04-10 22:06:12 +02:00
Alexandre Aubin
383fd6f5d4 First draft for migrate_to_bookworm 2024-04-10 21:13:55 +02:00
alexAubin
a733ea45c3 🎨 Format Python code with Black 2024-04-10 19:03:03 +00:00
Alexandre Aubin
ba0ad78df5
Merge pull request #1751 from Salamandar/variables_in_manifest
Variables in manifest
2024-04-10 21:02:44 +02:00
Alexandre Aubin
0864014ea1 Move recursive_apply directly where it's used, having a small algorithms.py just for this is too convoluted 2024-04-10 20:59:54 +02:00
Alexandre Aubin
1fbc47834e
Merge pull request #1810 from YunoHost/ynh_secure_remove_path_protection
helpers: Protect more path on ynh secure remove
2024-04-06 00:52:11 +02:00
OniriCorpe
c8c4af8ee4
fix a typo 2024-04-05 23:18:36 +02:00
Alexandre Aubin
93b6ec0276
Merge pull request #1811 from YunoHost/apt_installed_dpkg_free
helpers: Do not wait for dpkg lock when calling ynh_package_is_installed
2024-04-05 20:49:02 +02:00
Josué Tille
73fc554840
Remove optional flag wait-dpkg-free 2024-04-05 20:41:41 +02:00
Josué Tille
f326cb9799
Add option to avoid to wait for dpkg free if not needed 2024-04-05 17:57:18 +02:00
Josué Tille
69e6a7aaa5
Protect more path on ynh secure remove 2024-04-04 12:13:50 +02:00
Tagada
b79395dfe0
Merge pull request #1806 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2024-03-24 16:57:45 +01:00
OniriCorpe
1ec2e21936 Translated using Weblate (Japanese)
Currently translated at 67.0% (525 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ja/
2024-03-23 20:04:52 +01:00
OniriCorpe
52e12ed1f0 Translated using Weblate (Telugu)
Currently translated at 3.8% (30 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/te/
2024-03-23 20:04:52 +01:00
OniriCorpe
f1bb218959 Translated using Weblate (Slovak)
Currently translated at 29.6% (232 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2024-03-23 20:04:52 +01:00
OniriCorpe
9df575962b Translated using Weblate (Indonesian)
Currently translated at 49.5% (388 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/id/
2024-03-23 20:04:51 +01:00
OniriCorpe
88db6373e1 Translated using Weblate (Persian)
Currently translated at 64.1% (502 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fa/
2024-03-23 20:04:51 +01:00
OniriCorpe
79bc5a671c Translated using Weblate (Ukrainian)
Currently translated at 92.7% (726 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2024-03-23 20:04:51 +01:00
OniriCorpe
03b8a7ff8e Translated using Weblate (Galician)
Currently translated at 99.8% (782 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2024-03-23 20:04:51 +01:00
OniriCorpe
bc5355b706 Translated using Weblate (Czech)
Currently translated at 6.3% (50 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/cs/
2024-03-23 20:04:50 +01:00
OniriCorpe
645502f59c Translated using Weblate (Norwegian Bokmål)
Currently translated at 8.5% (67 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/nb_NO/
2024-03-23 20:04:50 +01:00
OniriCorpe
58c9d146a6 Translated using Weblate (Chinese (Simplified))
Currently translated at 63.6% (498 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/zh_Hans/
2024-03-23 20:04:50 +01:00
OniriCorpe
6c9ef1baa7 Translated using Weblate (Polish)
Currently translated at 37.0% (290 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pl/
2024-03-23 20:04:49 +01:00
OniriCorpe
aaebb89771 Translated using Weblate (Turkish)
Currently translated at 2.5% (20 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/tr/
2024-03-23 20:04:49 +01:00
OniriCorpe
bc42f2da22 Translated using Weblate (Russian)
Currently translated at 35.6% (279 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ru/
2024-03-23 20:04:49 +01:00
OniriCorpe
6103f20b7d Translated using Weblate (Portuguese)
Currently translated at 20.9% (164 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pt/
2024-03-23 20:04:49 +01:00
OniriCorpe
874108deaf Translated using Weblate (Occitan)
Currently translated at 37.0% (290 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/oc/
2024-03-23 20:04:48 +01:00
OniriCorpe
eae8099130 Translated using Weblate (Dutch)
Currently translated at 10.8% (85 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/nl/
2024-03-23 20:04:48 +01:00
OniriCorpe
75c815c355 Translated using Weblate (Italian)
Currently translated at 74.8% (586 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2024-03-23 20:04:48 +01:00
OniriCorpe
0c960099d0 Translated using Weblate (Hindi)
Currently translated at 2.2% (18 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/hi/
2024-03-23 20:04:47 +01:00
OniriCorpe
587c29fc65 Translated using Weblate (French)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-03-23 20:04:47 +01:00
OniriCorpe
941c8f05df Translated using Weblate (Basque)
Currently translated at 99.6% (780 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2024-03-23 20:04:47 +01:00
OniriCorpe
c863b78196 Translated using Weblate (Spanish)
Currently translated at 95.5% (748 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/es/
2024-03-23 20:04:47 +01:00
OniriCorpe
4a77687ff9 Translated using Weblate (Esperanto)
Currently translated at 55.6% (436 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eo/
2024-03-23 20:04:46 +01:00
OniriCorpe
499a4817b4 Translated using Weblate (German)
Currently translated at 97.7% (765 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2024-03-23 20:04:46 +01:00
OniriCorpe
527a3d788d Translated using Weblate (Catalan)
Currently translated at 98.5% (772 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ca/
2024-03-23 20:04:46 +01:00
OniriCorpe
da7753cb85 Translated using Weblate (Arabic)
Currently translated at 26.4% (207 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ar/
2024-03-23 20:04:46 +01:00
OniriCorpe
80e09abc88 Translated using Weblate (French)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-03-23 18:58:49 +01:00
José M
2a56c70591 Translated using Weblate (Galician)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2024-03-23 18:58:49 +01:00
ppr
4271fbbf91 Translated using Weblate (French)
Currently translated at 98.3% (770 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-03-23 18:58:49 +01:00
xabirequejo
82092639eb Translated using Weblate (Basque)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2024-03-23 18:58:49 +01:00
xaloc33
b1d222d099 Translated using Weblate (Catalan)
Currently translated at 98.7% (773 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ca/
2024-03-23 18:58:49 +01:00
Weblate
3cfdff3dd3 Update translation files
Updated by "Remove blank strings" hook in Weblate.

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/
2024-03-23 18:58:49 +01:00
OniriCorpe
8067aa057e Translated using Weblate (Japanese)
Currently translated at 68.8% (539 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ja/
2024-03-23 18:58:49 +01:00
OniriCorpe
eb3401a74f Translated using Weblate (Slovak)
Currently translated at 29.6% (232 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2024-03-23 18:58:49 +01:00
OniriCorpe
362746c1fd Translated using Weblate (Persian)
Currently translated at 60.4% (473 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fa/
2024-03-23 18:58:49 +01:00
OniriCorpe
9cb2fe7d86 Translated using Weblate (Ukrainian)
Currently translated at 93.1% (729 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2024-03-23 18:58:49 +01:00
OniriCorpe
f34f999cac Translated using Weblate (Norwegian Bokmål)
Currently translated at 8.5% (67 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/nb_NO/
2024-03-23 18:58:49 +01:00
OniriCorpe
7d0006181d Translated using Weblate (Chinese (Simplified))
Currently translated at 64.2% (503 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/zh_Hans/
2024-03-23 18:58:49 +01:00
Bram
6661e9b586 Translated using Weblate (Russian)
Currently translated at 35.7% (280 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ru/
2024-03-23 18:58:49 +01:00
OniriCorpe
104c418627 Translated using Weblate (Portuguese)
Currently translated at 21.0% (165 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pt/
2024-03-23 18:58:49 +01:00
OniriCorpe
4da76ebc82 Translated using Weblate (Occitan)
Currently translated at 38.0% (298 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/oc/
2024-03-23 18:58:49 +01:00
Bram
a61505e692 Translated using Weblate (Hindi)
Currently translated at 2.2% (18 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/hi/
2024-03-23 18:58:49 +01:00
OniriCorpe
3984bbb953 Translated using Weblate (Hindi)
Currently translated at 2.2% (18 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/hi/
2024-03-23 18:58:49 +01:00
OniriCorpe
b82630b085 Translated using Weblate (French)
Currently translated at 98.2% (769 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-03-23 18:58:49 +01:00
Bram
104e10bb08 Translated using Weblate (Basque)
Currently translated at 93.4% (732 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2024-03-23 18:58:49 +01:00
OniriCorpe
9155cb6c08 Translated using Weblate (Esperanto)
Currently translated at 54.7% (429 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eo/
2024-03-23 18:58:49 +01:00
OniriCorpe
716606c50f Translated using Weblate (Catalan)
Currently translated at 93.1% (729 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ca/
2024-03-23 18:58:49 +01:00
OniriCorpe
93c723d2d9 Translated using Weblate (Arabic)
Currently translated at 26.4% (207 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ar/
2024-03-23 18:58:49 +01:00
OniriCorpe
ef39d77b8f Translated using Weblate (English)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/en/
2024-03-23 18:58:49 +01:00
Francescc
a0e168fa5b Translated using Weblate (Catalan)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ca/
2024-03-23 18:58:49 +01:00
OniriCorpe
adab80e00b typo 2024-03-23 18:58:42 +01:00
manor-tile
30a4fe1646
Merge branch 'YunoHost:dev' into enh-2047-log-show-last-x 2024-03-21 10:16:43 +00:00
manor-tile
c955550a2f reword actionsmap help for log show 2024-03-21 11:16:02 +01:00
manor-tile
45e3f6b1a2 error if X in last-X is too big 2024-03-21 11:16:02 +01:00
BELLAHBIB Ayoub
f9d3ae1084 show_log: support names 'last' and 'last-x' in path
Co-authored-by: manor-tile <159947643+manor-tile@users.noreply.github.com>
2024-03-21 11:16:02 +01:00
Alexandre Aubin
3073a0527b
Merge pull request #1804 from YunoHost/ci-autofix-translated-strings-dev
[CI] Reformat / remove stale translated strings
2024-03-20 03:52:20 +01:00
yunohost-bot
6bf16002f5 [CI] Reformat / remove stale translated strings 2024-03-19 21:25:55 +00:00
tituspijean
3beb3a2bd7
Merge pull request #1801 from yunohost-bot/weblate-yunohost-core 2024-03-19 22:19:06 +01:00
tituspijean
5434037185
Update locales/fr.json 2024-03-19 22:16:39 +01:00
OniriCorpe
2b111c0d0a Translated using Weblate (French)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-03-19 18:06:53 +01:00
ppr
1bde5f5be8 Translated using Weblate (French)
Currently translated at 99.8% (782 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-03-19 18:06:53 +01:00
Christian Wehrli
a8e709810b Translated using Weblate (German)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2024-03-19 18:06:53 +01:00
OniriCorpe
cc3e683492 Translated using Weblate (French)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-03-19 18:06:53 +01:00
OniriCorpe
2137ddbb11 Translated using Weblate (French)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-03-19 18:06:53 +01:00
Alexandre Aubin
cbe13831a0
Merge pull request #1789 from YunoHost/fix_config_panel_return_value
Use single quote to return value to config panel
2024-03-19 18:06:47 +01:00
Kayou
4edb247ae3
Merge pull request #1800 from YunoHost/autoblacks
ci(autoblacks): switch from using gitlab CI to github actions for autoblacking code
2024-03-14 08:43:51 +01:00
OniriCorpe
b388ca7f43
Meh, fix badges 2024-03-09 21:00:55 +01:00
Bram
a104c08eb3
Merge pull request #1802 from YunoHost/OniriCorpe-patch-1
Readme: add images alt text, fix some links and some markdown formating
2024-03-09 12:54:21 +01:00
OniriCorpe
00dc340b49
Add images alt text, fix some links and some markdown formating 2024-03-09 06:04:51 +01:00
Laurent Peuch
415e444f13 ci(autoblacks): switch from using gitlab CI to github actions for autoblacking code 2024-03-09 03:15:04 +01:00
xabirequejo
0c8706366e Translated using Weblate (Basque)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2024-03-07 23:08:16 +01:00
Josué Tille
006318effa Avoid to override new settings 2024-03-07 10:05:10 +01:00
Josué Tille
c9d570e6a1 Add generales var in config panel like domain, path, etc 2024-03-07 10:05:10 +01:00
José M
0ab27873a3 Translated using Weblate (Galician)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2024-03-07 09:50:09 +01:00
yunohost-bot
b3f12d8937 [CI] Reformat / remove stale translated strings 2024-03-07 09:17:05 +01:00
OniriCorpe
7630b154a3 Translated using Weblate (French)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-03-07 08:54:29 +01:00
yolateng0
5914317aeb Translated using Weblate (French)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-03-07 08:54:29 +01:00
OniriCorpe
38d0f29fc6 Translated using Weblate (French)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-03-07 08:54:29 +01:00
xabirequejo
7e6cbd292b Translated using Weblate (Basque)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2024-03-07 08:54:29 +01:00
Christian Wehrli
47076eca4e Translated using Weblate (German)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2024-03-07 08:54:29 +01:00
OniriCorpe
0f4c2ba64c Change some app_corrupt_source words to be more explicit 2024-03-07 08:53:33 +01:00
Alexandre Aubin
e8ad12de24
Merge pull request #1793 from YunoHost/fixes-doc-markdown
doc generation: fix markdown
2024-03-02 16:10:10 +01:00
OniriCorpe
c512425bd9 dog generation: fix markdown 2024-03-02 08:30:57 +01:00
OniriCorpe
261e225e4f
Merge pull request #1791 from YunoHost/ci-format-debian/11.2.10.2 2024-03-01 07:03:51 +01:00
OniriCorpe
349eef899d
Merge branch 'dev' into ci-format-debian/11.2.10.2 2024-03-01 03:32:18 +01:00
OniriCorpe
8f6df354b8
break line 2024-03-01 03:31:43 +01:00
Alexandre Aubin
df49295836
Merge pull request #1792 from YunoHost/ci-format-debian/11.2.10.3
[CI] Format code with Black
2024-03-01 03:12:37 +01:00
yunohost-bot
105f4dc515 [CI] Format code with Black 2024-03-01 02:10:08 +00:00
Alexandre Aubin
4eac31e888
Merge pull request #1790 from YunoHost/OniriCorpe-patch-1
tools: make_changelog.sh enhancements
2024-03-01 03:08:08 +01:00
yunohost-bot
30679c0c57 [CI] Format code with Black 2024-03-01 01:08:42 +00:00
OniriCorpe
56d949bb9e
remove "co-authored" lines 2024-03-01 01:48:42 +01:00
OniriCorpe
4759ff66a7 11.2.10.3 2024-03-01 00:24:54 +01:00
OniriCorpe
609819ade8 Update 11.2.10.2 2024-03-01 00:00:54 +01:00
OniriCorpe
5c00fdf976
Update make_changelog.sh 2024-02-29 23:58:33 +01:00
YunoHost Bot
e01c7dcb00
Translations update from Weblate (#1782)
Co-authored-by: Christian Wehrli <christian@chw.onl>
2024-02-29 23:09:17 +01:00
Josué Tille
e6c4f2e077
Use signe quote to return value to config panel
Following the specification of yaml (https://yaml.org/spec/1.2.2/#single-quoted-style), when we use single quote we only need to escapte signle quote. By this we avoid to need to excape mulitple other chars wich could be complicated.
2024-02-29 23:01:30 +01:00
Alexandre Aubin
345ad8c31a
Merge pull request #1788 from YunoHost/fix-root-ssh-keys
[fix] List root ssh keys
2024-02-29 18:40:13 +01:00
ljf (zamentur)
6a84564cdc
[fix] List root ssh keys 2024-02-29 18:36:25 +01:00
Alexandre Aubin
a735f68cc9
Merge pull request #1787 from YunoHost/fix-logs
Fix logs directories access
2024-02-29 18:30:26 +01:00
tituspijean
349d219a57
Fix logs directories access 2024-02-29 18:27:12 +01:00
Alexandre Aubin
4ebe1edf00
Merge pull request #1783 from YunoHost/ci-auto-update-n-v
Upgrade n to v9.2.1
2024-02-29 17:22:05 +01:00
Alexandre Aubin
eaa6b2efc5
Merge pull request #1786 from Salamandar/fix_readonly_question
Fix readonly questions (display_text, etc)
2024-02-29 17:17:31 +01:00
c5e9cec933 Fix readonly questions (display_text, etc): the code did not handle them anymore on the app side 2024-02-29 16:58:19 +01:00
yunohost-bot
99d23f6235 Upgrade n to v 2024-02-29 05:13:12 +00:00
OniriCorpe
023207f0b6
Merge pull request #1778 from YunoHost/fix-makge_changelog 2024-02-29 05:13:16 +01:00
Tagada
734e910241
Merge pull request #1784 from OniriCorpe/update-gh-actions
chores: update actions/checkout & peter-evans/create-pull-request to nodejs20
2024-02-25 18:18:43 +01:00
OniriCorpe
8906c896cb update actions/checkout & peter-evans/create-pull-request to nodejs20 2024-02-25 07:00:52 +01:00
Alexandre Aubin
b8b8eb14f4
Merge pull request #1781 from YunoHost/OniriCorpe-patch-1
Docs: Add autoupdate.version_regex to the doc
2024-02-24 03:32:08 +01:00
OniriCorpe
da5181f057
Add autoupdate.version_regex to the doc
original commit: 93793fef44
2024-02-24 02:07:53 +01:00
Kay0u
3f735ef3c1
change REPO_URL so we can use it for all YNH projects, logc doesn't exist 2024-02-21 01:19:22 +01:00
Kay0u
c827877387
Update 11.2.10.1 2024-02-20 23:36:33 +01:00
Kayou
412bb40bf2
Merge pull request #1775 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2024-02-20 23:21:38 +01:00
Tommi
a533cdd741 Translated using Weblate (Italian)
Currently translated at 80.3% (629 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2024-02-20 22:28:45 +01:00
Francescc
1a876a80c2 Translated using Weblate (Catalan)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ca/
2024-02-20 22:28:45 +01:00
OniriCorpe
613f41dae9
Merge pull request #1774 from OniriCorpe/logrotate
fix logs folders perms
2024-02-20 22:28:41 +01:00
Bram
ac02ca812d
Merge pull request #1777 from YunoHost/Tagadda-patch-1
Update sury apt key
2024-02-20 21:32:56 +01:00
Tagada
1d9cbde627 hooks/conf_regen/apt: remove expired apt keys before downloading sury's key 2024-02-19 18:46:37 +01:00
Tagada
fa64652681
regenconf/apt:Purge expired apt keys
Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
2024-02-17 20:07:23 +01:00
Tagada
707180da43
Update sury apt key 2024-02-16 19:17:48 +01:00
Alexandre Aubin
ec4b1e9f96
Merge pull request #1776 from OniriCorpe/update-autoupdate-docs
Autoupdate: update docs
2024-02-15 02:38:06 +01:00
OniriCorpe
cfee750e32 draft 2024-02-15 02:24:45 +01:00
OniriCorpe
61df4add8c fix logs folders perms 2024-02-13 02:36:08 +01:00
Alexandre Aubin
f130f4fc56
Merge pull request #1773 from YunoHost/ci-format-debian/11.2.10
[CI] Format code with Black
2024-02-09 21:16:18 +01:00
yunohost-bot
c695aa549a [CI] Format code with Black 2024-02-09 20:12:27 +00:00
Alexandre Aubin
37e14269c8 Update changelog for 11.2.10 2024-02-09 20:12:10 +01:00
Alexandre Aubin
5c741190e3
Merge pull request #1771 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2024-02-09 20:05:19 +01:00
xabirequejo
080aae9ab2 Translated using Weblate (Basque)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2024-02-09 20:03:22 +01:00
Éric Gaspar
58e8e9e5a1 Translated using Weblate (French)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-02-09 20:03:22 +01:00
Alexandre Aubin
077b745d60 configpanels: some helpers behavior depend on YNH_APP_PACKAGING_FORMAT which is not set when calling the config script... 2024-02-09 20:01:20 +01:00
Alexandre Aubin
b69cbd33ed
Merge pull request #1768 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2024-02-02 22:00:37 +01:00
José M
4e33bf271e Translated using Weblate (Galician)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2024-02-01 12:36:42 +01:00
Carlos Solís
55b601369d Translated using Weblate (Spanish)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/es/
2024-02-01 03:01:53 +01:00
Francescc
582dc2d4f0 Translated using Weblate (Catalan)
Currently translated at 81.3% (637 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ca/
2024-01-30 04:08:51 +01:00
José M
9d9c68f4bf Translated using Weblate (Galician)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2024-01-29 16:08:21 +01:00
Francescc
d730edef52 Translated using Weblate (Catalan)
Currently translated at 70.6% (553 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ca/
2024-01-29 03:29:37 +01:00
Lasse Gismo
1fe0ea5062 Translated using Weblate (German)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2024-01-29 03:29:37 +01:00
Weblate
e81e6fb92c Update translation files
Updated by "Remove blank strings" hook in Weblate.

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/
2024-01-29 03:29:37 +01:00
Weblate
97c2fe3d49 Added translation using Weblate (Korean) 2024-01-29 03:29:37 +01:00
Jose Riha
5301018490 Translated using Weblate (Slovak)
Currently translated at 32.4% (254 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2024-01-29 03:29:37 +01:00
José M
1a95dd500f Translated using Weblate (Galician)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2024-01-29 03:29:37 +01:00
Christian Wehrli
3f467182cc Translated using Weblate (German)
Currently translated at 99.8% (782 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2024-01-29 03:29:37 +01:00
Alexandre Aubin
8120ac2b3f
Merge pull request #1770 from OniriCorpe/cidr
mention cidr notation
2024-01-29 03:29:33 +01:00
OniriCorpe
00698cc2fd mention cidr notation 2024-01-29 02:54:19 +01:00
Alexandre Aubin
3574a7792d
Merge pull request #1769 from Salamandar/fix_port_reuse
Fix port reuse during provisionning.
2024-01-28 22:29:08 +01:00
Alexandre Aubin
820a79c238
Update resources.py: used_ports -> ports_used_by_self 2024-01-28 22:28:45 +01:00
8727e74eab Fix port reuse during provisionning.
Before this, provisionning might use twice the same port (second app install for example).
Indeed, _port_is_used only checks processes and already installed apps. Not the current
app being installed.
2024-01-28 22:22:36 +01:00
Alexandre Aubin
fc12cb198c apps: people insist on trying to install Nextcloud after creating a user called nextcloud ... So let's check this stupid case 2024-01-21 21:14:02 +01:00
Alexandre Aubin
4ed5e1ba20
Merge pull request #1767 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2024-01-18 16:17:40 +01:00
ppr
339cdcd82c Translated using Weblate (French)
Currently translated at 100.0% (783 of 783 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2024-01-17 06:00:24 +01:00
Alexandre Aubin
c2af17667b helpers: fix previous commit, ynh_replace_string already messes with set +x/-x so hmpf 2024-01-14 18:32:53 +01:00
Alexandre Aubin
9819560518 helpers: disable super verbose logging during ynh_replace_vars poluting logs, it's kinda stable now... 2024-01-14 18:30:14 +01:00
Alexandre Aubin
1ce606d469 multimedia: fix again edgecase where setfacl crashes because of broken symlinks.. 2024-01-14 17:50:09 +01:00
Alexandre Aubin
05f7c3a3b7 helpers/php: quote vars to avoid stupid issues with name in path which may happen in backup restore context... 2024-01-14 16:28:51 +01:00
Alexandre Aubin
fc691270f6 i18n: Expect an help key for ssh_port setting 2024-01-13 19:57:57 +01:00
Alexandre Aubin
491588bb88
Merge pull request #1763 from YunoHost/fix-dns-suffix-during-xmpp-cert-setup
Fix DNS suffix edge case during XMPP certificate setup
2024-01-13 19:30:40 +01:00
Alexandre Aubin
54ad8dd2cb
Merge pull request #1761 from YunoHost/small-tools
Add basic-space-cleanup command
2024-01-13 19:29:25 +01:00
Alexandre Aubin
0f3c92a15b
Merge pull request #1765 from YunoHost/ssh-port
[enh] Add help on ssh port
2024-01-13 19:28:02 +01:00
Alexandre Aubin
a44ea14141 Update copyright headers to 2024 using maintenance/update_copyright_headers.sh 2024-01-13 19:26:47 +01:00
tituspijean
8ca59703c5
Improve basic-space-cleanup shell calls and documentation 2024-01-13 12:11:05 +01:00
ljf (zamentur)
7a819d33ae
[enh] Add help on ssh port 2024-01-13 11:04:58 +01:00
Alexandre Aubin
bfe3eb21bd
Merge pull request #1764 from YunoHost/ci-autofix-translated-strings-dev
[CI] Reformat / remove stale translated strings
2024-01-12 23:08:44 +01:00
Alexandre Aubin
7f13ea7d65
Merge pull request #1756 from YunoHost/enh_app_shell
Enhance app shells
2024-01-12 23:07:22 +01:00
Alexandre Aubin
43c0c3310a
Merge pull request #1757 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2024-01-12 23:06:28 +01:00
Alexandre Aubin
a52b64d2f5
Merge branch 'dev' into weblate-yunohost-core 2024-01-12 23:06:20 +01:00
yunohost-bot
4f9e69df01 [CI] Reformat / remove stale translated strings 2024-01-12 22:05:32 +00:00
Alexandre Aubin
890fcee05b maintenance: apply localeautofix script to remove stale strings, fix format inconsistencies 2024-01-12 22:55:13 +01:00
Alexandre Aubin
699500dbb0
Fix DNS suffix edge case during XMPP certificate setup 2024-01-12 22:00:10 +01:00
cube
bd0edd0e4e Translated using Weblate (Ukrainian)
Currently translated at 100.0% (782 of 782 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2024-01-11 14:18:24 +01:00
Saeba Ryo
c93d770d4a Translated using Weblate (Arabic)
Currently translated at 29.2% (229 of 782 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ar/
2024-01-11 14:18:24 +01:00
Alexandre Aubin
f53d09c3a2
Merge pull request #1762 from Salamandar/remove_upgrade_full
app.py, helpers: Reword YNH_APP_UPGRADE_TYPE
2024-01-11 14:18:20 +01:00
c8f0f131fd app.py, helpers: Reword YNH_APP_UPGRADE_TYPE
* remove UPGRADE_FULL
* rename DOWNGRADE_FORCED -> DOWNGRADE
* rename UPGRADE_FORCED -> UPGRADE_SAME
* keep the helper ynh_check_app_version_changed behaviour for reverse compatibility.
2024-01-11 10:15:28 +01:00
tituspijean
b920b82f4e
Add basic-space-cleanup command 2024-01-07 22:14:27 +01:00
Bram
6fdcf03e92
Merge pull request #1760 from OniriCorpe/document-changelog-link-latest_github_release
[docs] document changelog link for latest_github_release
2024-01-05 00:12:05 +01:00
OniriCorpe
b424ae01c1 document changelog link for latest_github_release 2024-01-04 23:59:02 +01:00
Alexandre Aubin
aab80f9ecc
Merge pull request #1758 from OniriCorpe/OniriCorpe-patch-1
add --after= in the usage section of ynh_read_var_in_file and ynh_write_var_in_file
2024-01-01 01:02:00 +01:00
OniriCorpe
b2c3c70742
add --after= in the usage section
of ynh_read_var_in_file and ynh_write_var_in_file
2024-01-01 00:56:50 +01:00
tituspijean
1c083845e7
Automatically enable Python environment in app shells
assuming it is in `$install_dir/venv`
2023-12-28 17:47:46 +01:00
Alexandre Aubin
6c3290d8bf Update changelog for 11.2.9.1 2023-12-28 02:46:15 +01:00
Alexandre Aubin
0ed6769fcf helpers/utils: replace the damn ynh_die with a warning when patch fails to apply ... 2023-12-28 02:45:27 +01:00
Alexandre Aubin
f12ed69b7b
Merge pull request #1755 from YunoHost/ci-format-debian/11.2.9
[CI] Format code with Black
2023-12-27 21:03:57 +01:00
yunohost-bot
8952d69e05 [CI] Format code with Black 2023-12-27 19:07:29 +00:00
Alexandre Aubin
57a0e8b8f8 Update changelog for 11.2.9 2023-12-27 19:15:09 +01:00
Alexandre Aubin
155418409e postfix: fix edge case bug with the sni file when no domain has mail enabled 2023-12-26 17:42:11 +01:00
Alexandre Aubin
609c3911d3
Merge pull request #1754 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-12-23 19:35:00 +01:00
Kuba Bazan
6fa59bfd5c Translated using Weblate (Polish)
Currently translated at 40.2% (315 of 782 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pl/
2023-12-23 19:34:26 +01:00
xabirequejo
ca354cd827 Translated using Weblate (Basque)
Currently translated at 99.1% (775 of 782 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2023-12-23 19:34:26 +01:00
Josue-T
a729c78379
apps: add mailbox/IMAP support for apps that declared a system user with mail enabled (#1745)
* Add missing account registration for apps in postfix

* Also set email on dovecot DB

* fix undefined var

* Fix missing username format config in dovecot
2023-12-23 19:34:22 +01:00
selfhoster1312
4284cd5d10
Only warn that mailbox is disabled for admins (#1739)
* Only warn that mailbox is disabled for admins

* Requality warning about "disabled mail perm for user" as debug

---------

Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
2023-12-21 15:35:16 +01:00
Alexandre Aubin
5daf33f58e
Merge pull request #1750 from YunoHost/allow-dots-in-username
Allow dots in usernames
2023-12-21 15:28:04 +01:00
Alexandre Aubin
308ed0e174 Refactor ynh_use_logrotate madness 2023-12-21 15:14:56 +01:00
Alexandre Aubin
4ce101b5c6 More boring warnings 2023-12-19 20:30:18 +01:00
Alexandre Aubin
83df4d9ff0
Merge pull request #1753 from YapWC/enh-2287-allow-dots-in-username
[enh] Update user.py
2023-12-19 03:25:31 +01:00
YapWC
5738526349
Update user.py
Allowed dots to be used in creating username
2023-12-19 10:13:03 +08:00
ljf (zamentur)
770fdb6861 [fix] First source patches failure doesn't stop app script 2023-12-15 11:06:57 +01:00
fb2ca1f27d Add __ARCH__ and __DEBIAN_VERSION__ to available variables in manifest.toml 2023-12-14 17:30:11 +01:00
7981653c23 Apply __APP__ -> self.app recursively thanks to recursive_apply 2023-12-14 17:30:11 +01:00
dc8f51e2f8 Add a new utils.algorithms file for code helpers.
The first helper, recursive_apply, goes through recursive dict/lists to apply a function on non-recursable types
2023-12-14 17:30:11 +01:00
Alexandre Aubin
c0337bf1ef logs: Ignore boring java warning 2023-12-13 15:10:30 +01:00
Alexandre Aubin
830d7b47e0 systemutils: when checking debian version and system arch, redirect stderr to /dev/null to prevent stupid issues, for example when the current working dir doesnt exist anymore.. 2023-12-13 13:15:55 +01:00
Alexandre Aubin
64c616076f i18n: fix fucked up <code> tags 2023-12-11 11:48:55 +01:00
Alexandre Aubin
8e3e788842 ynh_setup_source: properly handle --keep for directories when the dir already exists in the new setup 2023-12-10 12:07:39 +01:00
Alexandre Aubin
9489d200b2 Update changelog for 11.2.8.2 2023-12-09 18:26:43 +01:00
Alexandre Aubin
54a6a1b3d2 Aleks forgot to remove pdb.set_trace ... 2023-12-09 18:26:02 +01:00
Alexandre Aubin
207ebbb27f Allow dots in usernames 2023-12-09 17:20:41 +01:00
Alexandre Aubin
fa848c376f
Merge pull request #1749 from YunoHost/ci-format-debian/11.2.8.1
[CI] Format code with Black
2023-12-09 16:36:40 +01:00
yunohost-bot
0a7b5fb0ba [CI] Format code with Black 2023-12-09 15:12:51 +00:00
Alexandre Aubin
457289d6ca Update changelog for 11.2.8.1 2023-12-09 15:57:03 +01:00
Alexandre Aubin
33774ce625
Merge pull request #1747 from YunoHost/ci-format-debian/11.2.8
[CI] Format code with Black
2023-12-09 15:55:59 +01:00
Alexandre Aubin
63d1b5f7fa
Merge pull request #1748 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-12-09 15:55:39 +01:00
Christian Wehrli
2828b76364 Translated using Weblate (German)
Currently translated at 100.0% (782 of 782 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2023-12-09 15:54:22 +01:00
Alexandre Aubin
169c921444 Fix change_url again, otherwise the lack of path_url default to the old path and fucks up the nginx regen 2023-12-09 15:54:04 +01:00
yunohost-bot
f436057d27 [CI] Format code with Black 2023-12-05 19:51:58 +00:00
Alexandre Aubin
38db30cd70 Update changelog for 11.2.8 2023-12-05 19:22:34 +01:00
Alexandre Aubin
857a285b5a
Merge pull request #1746 from YunoHost/fix_change_url
helpers: Further simplify the change url helper
2023-12-05 19:17:42 +01:00
Alexandre Aubin
8c475d0a7b
Further simplify ynh_change_url_nginx_config 2023-12-05 19:01:17 +01:00
Josué Tille
fe3416aa02
Set domain with new_domain and path with new_path 2023-11-29 15:02:47 +01:00
Josué Tille
570184ac1e
Fix change url 2023-11-29 14:55:26 +01:00
Alexandre Aubin
59875cae23
domains: also regen dovecot configuration when adding a domain 2023-11-28 16:30:45 +01:00
Alexandre Aubin
267968074b helpers/fail2ban: grep logpath is likely to match comments in the file that contain the word logpath... 2023-11-28 13:14:29 +01:00
Alexandre Aubin
4897f72974 Update changelog for 11.2.7 2023-11-27 14:15:19 +01:00
Alexandre Aubin
7a82f6e4b9
Merge pull request #1740 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-11-27 14:11:00 +01:00
José M
04f326528f Translated using Weblate (Galician)
Currently translated at 100.0% (782 of 782 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2023-11-27 14:10:47 +01:00
ppr
fff8b2d95a Translated using Weblate (French)
Currently translated at 99.8% (781 of 782 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2023-11-27 14:10:47 +01:00
José M
ff4c1433d2 Translated using Weblate (Galician)
Currently translated at 100.0% (782 of 782 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2023-11-27 14:10:47 +01:00
xabirequejo
207c0ff1ab Translated using Weblate (Basque)
Currently translated at 99.1% (775 of 782 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2023-11-27 14:10:47 +01:00
Alexandre Aubin
93606e1132
Merge pull request #1742 from YunoHost/ci-format-debian/11.2.6
[CI] Format code with Black
2023-11-27 14:10:43 +01:00
OniriCorpe
4bfe2c96f5
fix the fail2ban helper when using using --use_template arg (#1743)
* fix the helper when using using --use_template arg

* fix app name replacment 😞

* replace any '__VAR__' by their real variable using ynh_replace_vars

* fix some SC2086

* extract logpath from /etc/fail2ban/jail.d/$app.conf

Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>

* fix comment

* Update helpers/fail2ban

---------

Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
2023-11-27 14:07:39 +01:00
yunohost-bot
ce0cbc5fed [CI] Format code with Black 2023-11-24 21:53:33 +00:00
Alexandre Aubin
5746b94dff Update changelog for 11.2.6 2023-11-24 22:17:47 +01:00
Alexandre Aubin
da20964044
quality: unused import 2023-11-24 21:00:10 +01:00
OniriCorpe
9a7731aa4e
fail2ban: make sure the logfile exists (#1737)
* make sure the logfile exists before reloading fail2ban

* update docs

* enhancement: fix file perms and make sure the folder exists

* fix folder path

---------

Co-authored-by: OniriCorpe <OniriCorpe@users.noreply.github.com>
2023-11-21 03:26:27 +01:00
Alexandre Aubin
b06484fede
Merge pull request #1735 from chri2/dovecot_make_folders
let dovecot create folders on first login
2023-11-20 19:03:27 +01:00
OniriCorpe
300c999a5a
logrotate: fix generated config file perms (#1736)
* fix generated logrotate config file perms

* apply perms to the right file (I'm so tired lmao)

* fix indent

* update docs

* revert: wrong branch 😭

---------

Co-authored-by: OniriCorpe <OniriCorpe@users.noreply.github.com>
2023-11-20 19:01:33 +01:00
Alexandre Aubin
38469accee
Merge pull request #1738 from selfhoster1312/faster-user-option-form
Don't make so many queries for user info when building UserOption form
2023-11-20 19:00:25 +01:00
Alexandre Aubin
50c00c60bc
Merge pull request #1741 from mh4ckt3mh4ckt1c4s/fix-backup-warning-message
Fix backup error message if archive already exists
2023-11-20 18:56:42 +01:00
mh4ckt3mh4ckt1c4s
61defdb4c1 Fix backup error message if archive already exists 2023-11-10 20:58:37 +01:00
tituspijean
02e6346bc5
Fix certificates validity in actionsmap.yml 2023-11-08 12:56:42 +01:00
selfhoster1312
8ee5aade72 Don't make so many queries for user info when building UserOption form 2023-11-04 14:36:32 +01:00
chri2
8cb6a5649b
let dovecot create folders on first login
tells dovecot to create standard folders on first login if they do not exist and which folder names are used for special purposes like archive, spam/junk, sent, etc.
2023-10-31 14:07:36 +01:00
Alexandre Aubin
f56f235705
Merge pull request #1734 from Tharyrok/ench-firewall-disable-resovle-ip
[enh] Reload firewall disable resolve IP
2023-10-30 22:30:19 +01:00
Tharyrok
917b2961d2
Disable resolve ip 2023-10-30 21:55:59 +01:00
Alexandre Aubin
1131e76f4c quality: fix typo, handle mypy error 2023-10-30 19:19:02 +01:00
Alexandre Aubin
8cfc929f25
Merge pull request #1706 from YunoHost/enh-bind-heritage-config-panel
[enh] bind heritage in config panel
2023-10-30 19:12:56 +01:00
Alexandre Aubin
157f8c8121
Merge pull request #1729 from YunoHost/extras_packages_from_raw_bash
Support packages_from_raw_bash in extra packages
2023-10-30 18:51:51 +01:00
Alexandre Aubin
24cb534719
Merge pull request #1708 from YunoHost/enh-restore-hook
[enh] Add post_app_restore hook
2023-10-30 14:10:43 +01:00
Alexandre Aubin
d35eceb17b
Merge pull request #1723 from Salamandar/logging_late
Add ynh_exec_and_print_stderr_only_if_error that only prints stderr when command fails
2023-10-30 14:04:49 +01:00
Alexandre Aubin
bfb7dda42e
Rename helper into "ynh_exec_and_print_stderr_only_if_error" 2023-10-30 14:03:26 +01:00
Alexandre Aubin
4eef918e40
Merge pull request #1733 from Thovi98/dev
Update docker-image-extract
2023-10-30 12:47:07 +01:00
Thomas
5547208be4
Update docker-image-extract 2023-10-27 14:15:09 +02:00
Alexandre Aubin
c4c4af6e62
Merge pull request #1725 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-10-27 12:13:56 +02:00
José M
6fdfd81cbb Translated using Weblate (Galician)
Currently translated at 100.0% (782 of 782 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2023-10-26 09:05:54 +02:00
Jose Riha
022fed7787 Translated using Weblate (Slovak)
Currently translated at 32.4% (254 of 782 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2023-10-22 18:54:35 +02:00
Éric Gaspar
238c1ac4d3 Translated using Weblate (French)
Currently translated at 98.4% (770 of 782 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2023-10-22 18:54:35 +02:00
xabirequejo
9c6be3ffd6 Translated using Weblate (Basque)
Currently translated at 99.1% (775 of 782 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2023-10-22 18:54:35 +02:00
Jorge-vitrubio.net
1d1cbedf3a Translated using Weblate (Italian)
Currently translated at 74.6% (584 of 782 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2023-10-22 18:54:35 +02:00
cristian amoyao
b719563c7e Translated using Weblate (Spanish)
Currently translated at 100.0% (782 of 782 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/es/
2023-10-22 18:54:35 +02:00
Jorge-vitrubio.net
4f4dfdb7f7 Translated using Weblate (Italian)
Currently translated at 74.5% (583 of 782 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2023-10-22 18:54:35 +02:00
Jorge-vitrubio.net
75e6afaf5c Translated using Weblate (Spanish)
Currently translated at 100.0% (782 of 782 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/es/
2023-10-22 18:54:34 +02:00
cristian amoyao
9c33d9e74f Translated using Weblate (Spanish)
Currently translated at 100.0% (782 of 782 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/es/
2023-10-22 18:54:34 +02:00
Jorge-vitrubio.net
00d7f1a208 Translated using Weblate (Catalan)
Currently translated at 62.9% (492 of 782 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ca/
2023-10-22 18:54:34 +02:00
Jose Riha
ae70eebc13 Translated using Weblate (Slovak)
Currently translated at 32.4% (254 of 782 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2023-10-22 18:54:34 +02:00
Jose Riha
5d77843cd9 Translated using Weblate (Slovak)
Currently translated at 32.0% (251 of 782 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2023-10-22 18:54:34 +02:00
José M
16146913b0 Translated using Weblate (Galician)
Currently translated at 100.0% (782 of 782 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2023-10-22 18:54:34 +02:00
Alexandre Aubin
e3ee8dfa8e
Merge pull request #1732 from rndmh3ro/patch-1
fix typos
2023-10-22 18:54:27 +02:00
Alexandre Aubin
54bc79ed58
Apply suggestions from code review 2023-10-22 18:53:57 +02:00
Sebastian Gumprich
74fd75ea33
fix typos 2023-10-22 18:43:26 +02:00
Alexandre Aubin
62779ee266
Merge pull request #1730 from chri2/fix_rspamd_redis
add redis database configuration
2023-10-21 13:00:08 +02:00
Alexandre Aubin
22b4a947ca
Merge pull request #1731 from chri2/improve_dovecot_for_rspamd_integration
improve dovecots rspamd integration
2023-10-21 12:59:56 +02:00
Chris Vogel
e6e58ec269 improve dovecots rspamd integration
For rspamd being able to learn ham or spam from messages being moved into spam/junk folders or out of them dovecot needs to know how spam/junk folders and trash folders are named.

The former rules narrowed the folders being recognized as spam/trash down to just 'Junk, SPAM, Trash' (case-senistive).

Since users and admins can change the foldernames and write their own seive filters to use those folders I think it is a big improvement if more folders will be recognized.

The change is supposed to accept some more commonly used folder names for spam and trash in a case-insensitive manner.
2023-10-18 23:04:24 +02:00
Chris Vogel
379b6922ad install file to redis configuration
ouch... Thanks @Tagadda!
2023-10-17 21:13:09 +02:00
Chris Vogel
a2faa8add9 add redis database configuration
https://github.com/YunoHost/issues/issues/2266

without this rspamd does not use the redis database
2023-10-17 14:49:32 +02:00
Alexandre Aubin
662998a1ab
Update src/utils/resources.py 2023-10-16 15:49:12 +02:00
tituspijean
23cdf91b01
Restore deleted line 2023-10-15 16:49:55 +02:00
tituspijean
dc362dd636
Revert packages_from_raw_bash test
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2023-10-15 16:48:59 +02:00
tituspijean
a69b80972e
Improve support for packages_from_raw_bash
Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
2023-10-15 16:46:24 +02:00
tituspijean
96e99459e6
Support packages_from_raw_bash in extra packages 2023-10-15 16:31:14 +02:00
Alexandre Aubin
2bf2956b3d
Merge pull request #1728 from YunoHost/fix-n-autoupdater
Display n version in auto-update PRs
2023-10-15 15:35:31 +02:00
Alexandre Aubin
5019f9e3b3
Merge pull request #1727 from YunoHost/ci-auto-update-n-v
Upgrade n to version
2023-10-15 15:35:03 +02:00
tituspijean
075095b4d7
Display n version in auto-update PRs 2023-10-15 14:59:45 +02:00
yunohost-bot
6a8693fa44 Upgrade n to v 2023-10-15 05:10:23 +00:00
Alexandre Aubin
022870be9b
Merge pull request #1724 from YunoHost/ci-format-debian/11.2.5
[CI] Format code with Black
2023-10-10 10:51:05 +02:00
yunohost-bot
f003565074 [CI] Format code with Black 2023-10-10 02:31:47 +00:00
Alexandre Aubin
6f1a00922a Update changelog for 11.2.5 2023-10-10 01:07:19 +02:00
Alexandre Aubin
e8700bfe7b debian: fix conflict with openssl that is too harsh, openssl version on bullseye is now 1.1.1w, bookworm has 3.x 2023-10-09 23:15:54 +02:00
Alexandre Aubin
19c4202ff4
Merge pull request #1707 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-10-09 23:12:50 +02:00
Alexandre Aubin
f4d8ada368
Update locales/fr.json 2023-10-09 23:12:44 +02:00
Félix Piédallu
6385b402f7 Add ynh_exec_stderr_on_error that only prints stderr when command fails 2023-10-03 17:27:09 +02:00
ppr
179b600621 Translated using Weblate (French)
Currently translated at 98.3% (769 of 782 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2023-10-02 23:27:24 +02:00
xabirequejo
a83fbc1bc9 Translated using Weblate (Basque)
Currently translated at 95.0% (741 of 780 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2023-10-02 23:27:24 +02:00
Alexandre Aubin
463296e88c
Merge pull request #1722 from orhtej2/patch-2
Allow `phpX.Y` as sole dependency for `$phpversion=X.Y`
2023-10-02 23:27:18 +02:00
orhtej2
58a539bf7d
Allow phpX.Y as sole dependency that'll trigger usage of $phpversion=X.Y 2023-10-02 23:19:01 +02:00
Alexandre Aubin
c6633873ba
Merge pull request #1715 from YunoHost/dyndns
enh: Handle dyndns subscribe/unsubscribe in web admin
2023-09-29 21:35:20 +02:00
Alexandre Aubin
3e53f90f3e
Merge pull request #1719 from YunoHost/supportpurge
app: add "support_purge" to app info
2023-09-29 17:07:24 +02:00
axolotle
a457f8dbcb app: add "support_purge" to app info 2023-09-29 16:43:29 +02:00
tituspijean
bb097fedca
Add home.arpa as special TLD (#1718)
* Add home.arpa as special TLD

* Update dns.py
2023-09-29 12:05:48 +02:00
axolotle
253a042314 test:domains: dyndns_recovery mock as api call to avoid cli prompts 2023-09-28 17:23:51 +02:00
axolotle
c019f7f24a test:domains: remove sleep 2023-09-28 16:48:31 +02:00
axolotle
4a7b2b2cbf domains: unique i18n key for dyndns too many requests 2023-09-28 15:54:57 +02:00
axolotle
ca1e088f29 test:domains: add complex recovery password test 2023-09-28 15:41:57 +02:00
Alexandre Aubin
0f109db6ca dyndns/domain_remove: be paranoid and keep the dyndns unsubscribe + cert/dyndns/setting cleanup before the regenconf 2023-09-28 14:29:53 +02:00
Alexandre Aubin
125af4670f dyndns: typo 2023-09-28 14:29:18 +02:00
Alexandre Aubin
53ffe3c1c0 dyndns: fix tests 2023-09-28 14:25:36 +02:00
Alexandre Aubin
82affd2984 dyndns: fix availability check, polish UX 2023-09-28 14:19:00 +02:00
Alexandre Aubin
2e4f2e8e3a quality: unused import 2023-09-27 20:57:16 +02:00
Alexandre Aubin
cd079459b9 dyndns: fix import typo 2023-09-27 20:47:17 +02:00
axolotle
2e86bae4ef domain: make sure of it 2023-09-27 19:58:52 +02:00
axolotle
e9802ce2dc domain dyndns: do not save recovery password 2023-09-27 19:31:50 +02:00
Alexandre Aubin
dd161e8d63
Merge pull request #1713 from yorffuoj/enh-improve-diagnosis-for-dmarc-records
diagnosis: be more flexible regarding accepted values for DMARC DNS records
2023-09-27 16:53:33 +02:00
axolotle
fc68f769f9 domain: add recovery passoword in config panel 2023-09-25 14:37:18 +02:00
axolotle
97c2cdc593 domain: move domain files removal so dyndns API key still exists while trying to unsubscribe 2023-09-25 13:55:01 +02:00
axolotle
65843bda6d dyndns: add postinstall recovery password handling 2023-09-24 18:11:50 +02:00
axolotle
67e28567ff dyndns: switch to ValidationError for some service response 2023-09-24 17:19:24 +02:00
axolotle
322fc3b712 dyndns: try to unsubscribe with password before subscribing if domain is not available 2023-09-24 17:15:56 +02:00
axolotle
cbb85f8c3b dyndns: handle too many requests in availability testing 2023-09-24 17:13:33 +02:00
Alexandre Aubin
5110cd0800
Merge pull request #1714 from mrflos/patch-1
Fix missleading example for ynh_setup_source
2023-09-13 11:01:35 +02:00
Florian
b54a71b0cf
Fix missleading example for ynh_setup_source
There shouldn't be any trailing / for folders for ynh_setup_source
2023-09-12 09:02:04 +03:00
stanislas
df1f3149ea The p value of a DMARC record can take the values none, quarantine or reject
The validation is no more about the being similar to the expected config. Now wre check that the value of the p parameter of a DMARC record has the value none, quarantine or reject. No check for other parameters but it could be improved
2023-09-12 00:37:47 +02:00
Alexandre Aubin
ec6bf12a74
Merge pull request #1710 from orhtej2/patch-1
Allow system users to send mails from IPv6 localhost.
2023-09-07 23:33:15 +02:00
orhtej2
920fe527f4
Allow system users to send mails from IPv6 localhost and in no-IP contexts. 2023-09-07 22:14:06 +02:00
Alexandre Aubin
e1aeacbc49
Merge pull request #1709 from kemenaran/patch-1
app.py: fix typo in log statement
2023-09-07 19:40:03 +02:00
Pierre de La Morinerie
79e41a1e4b
app.py: fix typo in log statement 2023-09-07 16:22:16 +02:00
Kayou
3dfab89c1f
check and re-download a prefetched file that doesn't match the checksum 2023-09-07 14:59:08 +02:00
ljf
ffa8eb38ed
[enh] Add post_app_restore hook 2023-09-04 15:42:12 +02:00
ljf
6f3b194944
[fix] Avoid char conflict with bind properties 2023-09-02 22:47:02 +02:00
Alexandre Aubin
51d8608b40 Update changelog for 11.2.4 2023-08-31 17:33:08 +02:00
Alexandre Aubin
52951239c5
Merge pull request #1704 from YunoHost/Tagadda-patch-1
Use the existing db_name setting for database provising
2023-08-31 17:27:46 +02:00
Alexandre Aubin
f895f99d21
Merge pull request #1705 from YunoHost/fix-2235
[fix]  Diagnosis: reverse DNS check should be case-insensitive #2235
2023-08-31 17:26:50 +02:00
Alexandre Aubin
65d2571072 helpers: add new --group option for ynh_add_fpm_config to customize the Group parameter 2023-08-31 17:23:21 +02:00
ljf (zamentur)
dcafac1913
[fix] Combine bind section regex with bind panel file 2023-08-25 22:36:33 +02:00
ljf (zamentur)
79e620ef42
[fix] Conflict type file and settings bind mode 2023-08-25 21:12:01 +02:00
ljf (zamentur)
fde05c0ac2
[enh] bind heritage in config panel 2023-08-25 20:53:30 +02:00
ljf (zamentur)
0b05143745
[fix] Diagnosis: reverse DNS check should be case-insensitive #2235 2023-08-25 03:23:33 +02:00
Alexandre Aubin
b0fe49ae83 configpanels/forms : more edge cases with some questions not implementing some methods/attributes 2023-08-22 17:36:12 +02:00
Tagada
73a144fa46
Update src/utils/resources.py
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2023-08-22 17:12:03 +02:00
Tagada
ee4d94d382
Update src/utils/resources.py
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2023-08-22 17:11:56 +02:00
Alexandre Aubin
07daa68770 apps: BACKUP_CORE_ONLY was not set for pre-upgrade safety backups, resulting in unecessarily large pre-upgrade backups 2023-08-22 15:37:47 +02:00
Tagada
32376cf18f
Use the existing db_name setting for database provising
This should help upgrading an app from packaging v1 when db_name was different from `app`
2023-08-21 16:39:54 +02:00
Alexandre Aubin
576992899c apps: allow to use jinja {% if foobar %} blocks in their notifications/doc pages 2023-08-16 19:18:37 +02:00
Alexandre Aubin
f08d5562ff
Merge pull request #1695 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-08-16 18:06:13 +02:00
Neko Nekowazarashi
c4b3068d3a Translated using Weblate (Indonesian)
Currently translated at 52.9% (413 of 780 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/id/
2023-08-16 17:32:15 +02:00
Grzegorz Cichocki
f46dc30783 Translated using Weblate (Polish)
Currently translated at 35.0% (273 of 780 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pl/
2023-08-16 17:32:15 +02:00
taco
927a17cf30 Translated using Weblate (Spanish)
Currently translated at 95.8% (748 of 780 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/es/
2023-08-16 17:32:15 +02:00
Kuba Bazan
5eecfcae67 Translated using Weblate (Polish)
Currently translated at 34.8% (272 of 780 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pl/
2023-08-16 17:32:15 +02:00
Suleyman Harmandar
9fdbc5532f Translated using Weblate (Turkish)
Currently translated at 2.5% (20 of 780 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/tr/
2023-08-16 17:32:15 +02:00
José M
d716746f28 Translated using Weblate (Galician)
Currently translated at 100.0% (780 of 780 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2023-08-16 17:32:15 +02:00
Alexandre Aubin
b0f9934f08
Merge pull request #1703 from massyas/fix-typo-in-app_upgrade_help
[fix] typo in app_upgrade argument help
2023-08-16 17:32:11 +02:00
massyas
0d88978c2a
Fix typo in app_upgrade argument help 2023-08-16 17:25:23 +02:00
Alexandre Aubin
7f5b8a538f
Merge pull request #1702 from selfhoster1312/app-help-message
Add information in yunohost app install --help
2023-08-15 15:44:03 +02:00
selfhoster1312
d2113b243e Add information in yunohost app install --help 2023-08-15 15:35:36 +02:00
Alexandre Aubin
465f6da5cd Update changelog for 11.2.3 2023-07-22 16:48:48 +02:00
Alexandre Aubin
4fda8ed49f apps: fix another case of no attribute 'value' due to config panels/questions refactoring 2023-07-21 22:02:56 +02:00
Alexandre Aubin
53bc30b9fb Update changelog for 11.2.2 2023-07-19 02:36:39 +02:00
Alexandre Aubin
fd17b5b036
Merge pull request #1694 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-07-19 00:52:43 +02:00
José M
e446255648 Translated using Weblate (Galician)
Currently translated at 100.0% (780 of 780 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2023-07-19 00:31:28 +02:00
ppr
2d54be6e8d Translated using Weblate (French)
Currently translated at 98.4% (768 of 780 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2023-07-19 00:31:28 +02:00
axolotle
e1ceb084c3 fix config panel readonly .value 2023-07-18 15:07:31 +02:00
Alexandre Aubin
363f8f13a3
Merge pull request #1693 from YunoHost/fix-gandi
Gandi's `api_protocol` field should be a `select` type
2023-07-18 13:06:50 +02:00
tituspijean
6b5c9a2a8b
Gandi's api_protocol field should be a select type 2023-07-18 11:25:08 +02:00
Alexandre Aubin
e5225ba543
Merge pull request #1691 from YunoHost/ci-format-debian/11.2.1
[CI] Format code with Black
2023-07-17 22:43:35 +02:00
yunohost-bot
dd93df45e6 [CI] Format code with Black 2023-07-17 20:34:49 +00:00
Alexandre Aubin
1eb208db23 Update changelog for 11.2.1 2023-07-17 21:19:50 +02:00
Alexandre Aubin
781f924e30 apps: hotfix for funky issue, apps getting named 'undefined' 2023-07-17 21:13:34 +02:00
Alexandre Aubin
ced222eaa5 doc: fix resource doc generation .. not sure why this line that removed legit indent was there 2023-07-17 19:09:22 +02:00
Alexandre Aubin
92924385db
Merge pull request #1690 from YunoHost/ci-format-debian/11.2
[CI] Format code with Black
2023-07-17 18:06:23 +02:00
yunohost-bot
6e63b6fc53 [CI] Format code with Black 2023-07-17 16:00:11 +00:00
Alexandre Aubin
036119d9ba Update changelog for 11.2 2023-07-17 16:23:33 +02:00
Alexandre Aubin
4b582f72df
Merge pull request #1687 from YunoHost/11.2
11.2
2023-07-17 16:11:20 +02:00
Alexandre Aubin
7cf18e69a3
Merge pull request #1688 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-07-17 15:33:00 +02:00
Alexandre Aubin
419a32bf15 dyndns: remove 'domain dyndns list' command because this gives the false impression that there can be several of them... 2023-07-17 15:24:58 +02:00
Christian Wehrli
606335a474 Translated using Weblate (German)
Currently translated at 100.0% (768 of 768 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2023-07-15 17:41:00 +02:00
Christian Wehrli
373dabbcb0 Translated using Weblate (German)
Currently translated at 100.0% (768 of 768 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2023-07-15 17:41:00 +02:00
Christian Wehrli
a81d688dc1 Translated using Weblate (German)
Currently translated at 96.7% (743 of 768 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2023-07-15 17:41:00 +02:00
Christian Wehrli
972e98d66f Translated using Weblate (German)
Currently translated at 96.3% (740 of 768 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2023-07-15 17:41:00 +02:00
Christian Wehrli
5bb36ee060 Translated using Weblate (German)
Currently translated at 90.1% (692 of 768 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2023-07-15 17:41:00 +02:00
motcha
91a564c3d1 Translated using Weblate (Japanese)
Currently translated at 77.2% (593 of 768 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ja/
2023-07-15 17:41:00 +02:00
Alexandre Aubin
e1fabc4448
Merge pull request #1689 from ericgaspar/typo
Fix typo
2023-07-15 17:40:56 +02:00
Éric Gaspar
dd73c7ba59 Fix typo 2023-07-15 17:09:57 +02:00
Alexandre Aubin
a81a548f76 Unused imports 2023-07-14 19:12:49 +02:00
Alexandre Aubin
d2107278a7 ci: for some reason the helper tests may be the reason the full-tests job sometimes crashes with no explanation ... let's try to keep it in a separate job to see if that indeed fixes the issue 2023-07-14 15:22:23 +02:00
Alexandre Aubin
d44b09cf12 quality: cleanup unused code 2023-07-14 15:20:13 +02:00
Alexandre Aubin
f3eef43d02 helpers: in ynh_systemd_action, check the actual timestamp when checking for timeout, because for some reason journalctl may take a ridiculous amount of time to run 2023-07-11 23:59:06 +02:00
Alexandre Aubin
e695c89ad0 Typo in i18n key 2023-07-11 15:51:19 +02:00
Alexandre Aubin
72d7f237a4 Merge branch 'dev' into 11.2 2023-07-11 15:47:21 +02:00
Alexandre Aubin
7c1c147a74 quality: we don't really care about linter for the tests/ folder ... 2023-07-11 15:46:35 +02:00
Alexandre Aubin
81f269fc29 Fix funky no_unsubscribe dyndns stuff in test_domains.py ... 2023-07-10 19:35:17 +02:00
André Théo LAURET
ba2159de73 [fix/enh] Rewrite of yunopaste CLI tool (#1667)
* rewrite python

* Modify to pipe

* alexAubin review

* Fix "output" var not existing ...

* yunopaste: anonymize_output is too harsh and not yunopaste's job + print_usage ain't called ...

* yunopaste: return link to the raw version, less confusing than haste's ui ...

---------

Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2023-07-10 19:30:07 +02:00
Alexandre Aubin
dfc51ed7c5 Revert "[fix/enh] Rewrite of yunopaste CLI tool (#1667)"
This reverts commit 1927875924.
2023-07-10 19:29:34 +02:00
André Théo LAURET
1927875924
[fix/enh] Rewrite of yunopaste CLI tool (#1667)
* rewrite python

* Modify to pipe

* alexAubin review

* Fix "output" var not existing ...

* yunopaste: anonymize_output is too harsh and not yunopaste's job + print_usage ain't called ...

* yunopaste: return link to the raw version, less confusing than haste's ui ...

---------

Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2023-07-10 19:28:22 +02:00
Alexandre Aubin
432a9ab544 regenconf/ssh: disable Banner by default 2023-07-10 19:19:28 +02:00
Alexandre Aubin
f408dcbe7d
Merge pull request #1684 from YunoHost/simplify-fpm-add-config-helper
apps: Simplify ynh_add_fpm_config helper
2023-07-10 19:17:30 +02:00
Alexandre Aubin
7e18e8c9ec
Merge pull request #1475 from YunoHost/dyndns-password
Dyndns recovery password
2023-07-10 19:15:47 +02:00
Alexandre Aubin
961dc5a6ee
Merge pull request #815 from YunoHost/allow-system-user-to-auth-on-mail-stack
Allow system users to auth on the mail stack and send emails
2023-07-10 19:14:30 +02:00
Alexandre Aubin
e1d0146f8b
Merge pull request #1676 from YunoHost/before-pydantic-struc
ConfigPanel: Before pydantic struc 2/3
2023-07-10 19:13:47 +02:00
Alexandre Aubin
e1dcbee2a7
Merge branch '11.2' into before-pydantic-struc 2023-07-10 19:13:39 +02:00
Alexandre Aubin
6b24412910
Merge pull request #1534 from YunoHost/fix-ocsp-stapling
Fix OCSP stapling ... but using tech giant resolvers :|
2023-07-10 19:12:19 +02:00
Alexandre Aubin
c0c0fcaf54
ocsp stapling: Use 1.1.1.1 and 9.9.9.9 instead of 8.8.8.8 2023-07-10 19:10:54 +02:00
Alexandre Aubin
89ffe624f6
Merge pull request #1686 from YunoHost/ci-format-debian/11.1.22
[CI] Format code with Black
2023-07-10 19:07:00 +02:00
yunohost-bot
14040b8fd2 [CI] Format code with Black 2023-07-10 17:05:52 +00:00
Alexandre Aubin
4a1b7c30ba dyndns update is not deprecated because 'dns push' is not ready for dyndns ... 2023-07-10 18:46:36 +02:00
Alexandre Aubin
875566915c Merge remote-tracking branch 'origin/dev' into dyndns-password 2023-07-10 18:22:53 +02:00
Alexandre Aubin
739e02eaf8 Typo/wording 2023-07-10 18:22:48 +02:00
Alexandre Aubin
5b726bb8c0 Update changelog for 11.1.22 2023-07-10 17:56:33 +02:00
Alexandre Aubin
af93524c36 regenconf: fix a stupid bug using chown instead of chmod ... 2023-07-10 17:55:21 +02:00
Alexandre Aubin
0d0740826d Revert "apps: fix version.parse now refusing to parse legacy version numbers"
This reverts commit b98ac21a06.
2023-07-10 17:43:31 +02:00
Alexandre Aubin
ee953fe2c2
Merge pull request #1678 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-07-10 17:43:13 +02:00
motcha
3f0a23105e Translated using Weblate (Japanese)
Currently translated at 70.8% (544 of 768 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ja/
2023-07-10 17:34:46 +02:00
motcha
392695535e Translated using Weblate (Japanese)
Currently translated at 0.1% (1 of 768 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ja/
2023-07-10 17:34:46 +02:00
Weblate
76481dae22 Added translation using Weblate (Japanese) 2023-07-10 17:34:46 +02:00
Grzegorz Cichocki
48c81a4175 Translated using Weblate (Polish)
Currently translated at 33.4% (257 of 768 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pl/
2023-07-10 17:34:46 +02:00
xabirequejo
9c3895300f Translated using Weblate (Basque)
Currently translated at 97.2% (747 of 768 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2023-07-10 17:34:46 +02:00
xabirequejo
e0a1f8ba0b Translated using Weblate (Basque)
Currently translated at 96.7% (743 of 768 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2023-07-10 17:34:46 +02:00
José M
798a5469eb Translated using Weblate (Galician)
Currently translated at 100.0% (768 of 768 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2023-07-10 17:34:46 +02:00
Alexandre Aubin
b98ac21a06 apps: fix version.parse now refusing to parse legacy version numbers 2023-07-10 17:34:46 +02:00
Alexandre Aubin
4152cb0dd1 apps: fix a bug where YunoHost would complain that 'it needs X RAM but only Y left' with Y > X because some apps have a higher runtime RAM requirement than build time ... 2023-07-10 17:34:21 +02:00
Alexandre Aubin
7924bb2b28 tests: fix my_webapp test that has been failing for a while 2023-07-04 23:29:36 +02:00
Alexandre Aubin
fd7136446e Simplify ynh_add_fpm_config helper 2023-07-04 18:01:49 +02:00
Alexandre Aubin
3957b10e92 nginx: replace $http_host by $host, cf https://github.com/yandex/gixy/blob/master/docs/en/plugins/hostspoofing.md / Credit to A.Wolski 2023-07-04 15:00:02 +02:00
Kayou
36a17dfdbd
change string into fstring in resources.py 2023-07-04 14:15:50 +02:00
Alexandre Aubin
dc0fa8c4ac app resources: fix apt resource broken by previous commits ... 2023-07-04 03:27:33 +02:00
Alexandre Aubin
7d2ecc358e quality: ignore complain from mypy 2023-07-04 03:02:20 +02:00
Alexandre Aubin
42d74bfa3d
Merge pull request #1683 from orhtej2/patch-1
Allow installation from gitea
2023-07-03 22:46:18 +02:00
orhtej2
6f48cbc4a7
Added tests for Gitea URLs. 2023-07-03 22:40:14 +02:00
orhtej2
5c4493ce96
Further update allowed URLs. 2023-07-03 22:36:34 +02:00
orhtej2
f571aff93c
Allow installation from gitea
[Gitea](https://about.gitea.com/) has branch URL in form `https://domain.tld/gitea/path/<owner>/<repo>_ynh/src/branch/<branch_name>`.
2023-07-03 22:24:47 +02:00
Alexandre Aubin
510e82fa22 quality: fix mypy complaining about types for the 'extras' key in apt resource 2023-06-23 19:08:53 +02:00
Alexandre Aubin
e87ee09b3e postinstall: crash early if the username already exists on the system 2023-06-23 02:30:38 +02:00
Alexandre Aubin
bcd2550fdd
Merge pull request #1681 from YunoHost/enh_app_shell
apps: Enhance app_shell()
2023-06-20 18:51:22 +02:00
tituspijean
b2aaefe0e6
Add phpflags setting for app_shell() 2023-06-20 16:44:22 +00:00
tituspijean
f47d496183
Ensure that app_shell() does not lock the CLI 2023-06-20 16:35:42 +00:00
Alexandre Aubin
fb4693be39 apps: be able to customize the user-part and domain-part of email when using allow_email on system user 2023-06-20 17:59:09 +02:00
Yann Autissier
f9850a2264
keep fail2ban rules on firewall reload (#1661)
* keep fail2ban rules on firewall reload

reloading firewall flushes all iptables rules to create new ones,
dropping fail2ban rules in the same time.

* restart fail2ban instead of reload

Reloading fail2ban does not create f2b-* iptables rules.
2023-06-20 17:49:04 +02:00
Alexandre Aubin
d69c196fe4
Merge pull request #1670 from Salamandar/apt_packages_list
Allow passing a list in the manifest.toml for the apt resource packages
2023-06-20 17:29:26 +02:00
Alexandre Aubin
4da98e74ae
Merge pull request #1680 from npalix/dnsdiag
diagnosis: Support multiple TXT entries for TLD
2023-06-20 16:35:14 +02:00
Nicolas Palix
460e39a2f0 Support multiple TXT entries for TLD
The dig of TXT for @ can returns multiple entries.
In that case, the DNS diagnosis fails.

The modification preserves the handling of DMARC and the likes
which use a single entry and a specfic domain name.

For single entry list, the behavior is preserved.

If mutliple TXT entries are defined for @, only the v=spf1
one is returned.

Signed-off-by: Nicolas Palix <nicolas.palix@imag.fr>
2023-06-20 15:25:31 +02:00
Alexandre Aubin
19eb48b6e7 Update changelog for 11.1.21.4 2023-06-14 15:49:16 +02:00
Alexandre Aubin
29338f79bc apps: don't attempt to del password key if it doesn't exist 2023-06-14 15:48:12 +02:00
Alexandre Aubin
48ee78afa2 fix tests: my_webapp is using manifest v2 now 2023-06-13 14:48:30 +02:00
Alexandre Aubin
8242cab735 Get rid of previous tmp hack about /dev/null for people that went through the very first 11.1.21, because it's causing issue in unpriviledged LXC or similar context 2023-06-13 12:28:56 +02:00
Alexandre Aubin
6278c68586 Update changelog for 11.1.21.3 2023-06-12 17:42:10 +02:00
Alexandre Aubin
84984ad89a Fix again /var/www/.well-known/ynh-diagnosis/ perms which are too broad and could be exploited to serve malicious files x_x 2023-06-12 17:41:18 +02:00
Alexandre Aubin
18336b01dc
Merge pull request #1673 from YunoHost/ci-format-debian/11.1.21.2
[CI] Format code with Black
2023-06-12 17:35:10 +02:00
yunohost-bot
2f982e26a9 [CI] Format code with Black 2023-06-12 00:30:59 +00:00
Alexandre Aubin
e1569f962b Update changelog for 11.1.21.2 2023-06-12 00:26:43 +02:00
Alexandre Aubin
313a16476a Aleks loves xargs syntax >_> 2023-06-12 00:25:38 +02:00
Alexandre Aubin
1222c47620 Update changelog for 11.1.21.1 2023-06-12 00:03:10 +02:00
Alexandre Aubin
e6f134bc91 Fix stupid issue with code that changes /dev/null perms... 2023-06-12 00:02:43 +02:00
Alexandre Aubin
fcf263242e Update changelog for 11.1.21 2023-06-11 19:35:49 +02:00
Alexandre Aubin
8a27045d78
Merge pull request #1669 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-06-11 19:24:39 +02:00
ppr
bc42fd7ab2 Translated using Weblate (French)
Currently translated at 100.0% (768 of 768 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2023-06-11 12:41:28 +02:00
Tymofii-Lytvynenko
69339f8d0e Translated using Weblate (Ukrainian)
Currently translated at 100.0% (768 of 768 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2023-06-11 02:30:11 +02:00
8caff6a9dc Allow passing a list in the manifest.toml for the apt resource packages 2023-06-10 22:27:39 +02:00
Kuba Bazan
1087c800a6 Translated using Weblate (Polish)
Currently translated at 25.7% (197 of 764 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pl/
2023-06-09 22:30:59 +02:00
Alexandre Aubin
d42c99835a nginx: use /var/www/.well-known folder for ynh diagnosis and acme challenge, because /tmp/ could be manipulated by user to serve maliciously crafted files 2023-06-09 22:30:32 +02:00
Alexandre Aubin
cec0dfe158
Merge pull request #1668 from YunoHost/enh-verbose-user_group_update
more verbose logs for user_group _update
2023-06-05 14:05:20 +02:00
Tagada
fee5375dc4 more verbose logs for user_group _update
fix YunoHost/issues#2193
2023-06-04 23:50:23 +02:00
tituspijean
9cebd2e3fe
Merge pull request #1656 from YunoHost/app_shell 2023-05-30 13:28:15 +02:00
tituspijean
f3faac87f8
Improve comments of ynh_spawn_app_shell 2023-05-30 11:27:33 +00:00
tituspijean
db7ab2a98b
Homogeneize command subtitutions in ynh_spawn_app_shell 2023-05-30 11:18:54 +00:00
Alexandre Aubin
e649c092a3 regenconf: force systemd, nginx, php and fail2ban conf to be owned by root 2023-05-26 21:44:39 +02:00
Alexandre Aubin
daf51e94bd regeconf: fix security issue where apps' system conf would be owned by the app, which can enable priviledge escalation 2023-05-26 21:06:01 +02:00
Alexandre Aubin
1552944fdd apps: fix auto-catalog update cron job which was broken because --apps doesnt exist anymore 2023-05-26 20:42:01 +02:00
tituspijean
1300585eda
Improve ynh_spawn_app_shell comments
Co-authored-by: Florent <florent.git@zeteo.me>
2023-05-25 09:48:55 +02:00
tituspijean
bb9db08e29
Improve ynh_spawn_app_shell documentation 2023-05-24 22:32:51 +00:00
tituspijean
cacd43e147
Fix error in ynh_spawn_app_shell 2023-05-24 22:21:35 +00:00
tituspijean
5fa58f19ce
Offer apps to set service name for ynh_spawn_app_shell 2023-05-24 22:19:10 +00:00
tituspijean
a47e491869
Cleanup ynh_spawn_app_shell 2023-05-24 22:08:51 +00:00
tituspijean
ed1b5e567b
Force php to its intended version in ynh_spawn_app_shell 2023-05-24 21:55:20 +00:00
tituspijean
4b4ce9aef6
Default to WorkingDirectory then install_dir for ynh_spawn_app_shell
Co-authored-by: Tagada <36127788+Tagadda@users.noreply.github.com>
2023-05-24 23:13:52 +02:00
tituspijean
cc167cd92c
Rename ynh_load_app_environment into ynh_spawn_app_shell
Co-authored-by: Florent <florent.git@zeteo.me>
2023-05-24 21:12:06 +00:00
tituspijean
21c7c41812
Extend ynh_load_app_environment usage examples
Co-authored-by: Florent <florent.git@zeteo.me>
2023-05-24 23:08:53 +02:00
Kay0u
f046c291e5
add missing args in tests 2023-05-22 19:32:53 +02:00
Alexandre Aubin
db9aa8e6c7 Update changelog for 11.1.20 2023-05-20 18:58:11 +02:00
Alexandre Aubin
b5068ad007
Merge pull request #1664 from aya/update-content-security-policy
Update "worker" Content-Security-Policy header when in experimental security mode
2023-05-20 18:47:44 +02:00
Alexandre Aubin
751930043f
Merge pull request #1665 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-05-20 18:46:49 +02:00
Ilya
a508684740 Translated using Weblate (Russian)
Currently translated at 40.0% (306 of 764 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ru/
2023-05-20 04:15:24 +02:00
Éric Gaspar
df523cdbf0 Translated using Weblate (French)
Currently translated at 100.0% (764 of 764 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2023-05-20 04:15:24 +02:00
Yann Autissier
e8dd243218 update Content-Security-Policy header for chromium
Chromium fails to load a jitsi video conference, refusing to create a
worker because it violates the Content Security Policy directive:
"script-src https: data: 'unsafe-inline' 'unsafe-eval'".
2023-05-19 20:39:29 +00:00
tituspijean
2b65913b89
Launch app shell 2023-05-18 19:35:56 +00:00
tituspijean
072dabaf70
Fix Bash detection for ynh_load_app_environment 2023-05-18 16:45:17 +00:00
tituspijean
425670bcfb
Remove useless var declaration in app_shell function 2023-05-18 16:14:50 +00:00
tituspijean
68a4f2b4bc
Improve ynh_load_environment helper 2023-05-18 16:14:50 +00:00
tituspijean
d27e9a9eea
Add ynh_load_app_environment helper 2023-05-18 16:14:49 +00:00
tituspijean
3bb32dc1e4
Init app_shell 2023-05-18 16:14:49 +00:00
Alexandre Aubin
06826b4fc0
Merge pull request #1662 from YunoHost/fix-options-tests
tests:options: fix missing patching data
2023-05-18 12:57:52 +02:00
axolotle
097cba4b56 tests:options: fix missing data
patching
2023-05-18 14:47:09 +02:00
Alexandre Aubin
d698c4c3de helpers: improve error message for corrupt source in ynh_setup_source, it's more relevant to cite the source url rather than the downloaded output path 2023-05-15 16:46:29 +02:00
Alexandre Aubin
ecc4c2bd1c tests: flake8 not happy about escape sequence in comment @_@ 2023-05-15 16:23:09 +02:00
Alexandre Aubin
e59a4f849a helpers: using YNH_APP_ID instead of YNH_APP_INSTANCE_NAME during ynh_setup_source download, for more consistency and because tests was actually failing since a while because of this 2023-05-13 19:18:40 +02:00
Alexandre Aubin
8fa823b414 appsv2: fix funky current_version not being defined when hydrating pre-upgrade notifications 2023-05-13 19:07:34 +02:00
Alexandre Aubin
7eb10c3729
Merge pull request #1660 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-05-11 16:45:49 +02:00
Jose Riha
7b5c3d2e6e Translated using Weblate (Slovak)
Currently translated at 32.8% (251 of 764 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2023-05-10 13:27:29 +02:00
Jose Riha
a7bc6513af Translated using Weblate (Slovak)
Currently translated at 31.8% (243 of 764 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2023-05-10 09:22:57 +02:00
Alexandre Aubin
ed315b7c7a
Merge pull request #1658 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-05-08 16:38:25 +02:00
Neko Nekowazarashi
1fa325099f Translated using Weblate (Indonesian)
Currently translated at 47.9% (366 of 764 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/id/
2023-05-08 16:34:14 +02:00
Neko Nekowazarashi
fb79a04698 Translated using Weblate (Indonesian)
Currently translated at 42.6% (326 of 764 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/id/
2023-05-08 16:34:14 +02:00
Alexandre Aubin
3ce6505abe
Merge pull request #1659 from YunoHost/ci-format-debian/11.1.19
[CI] Format code with Black
2023-05-08 16:33:36 +02:00
yunohost-bot
74f4c1660c [CI] Format code with Black 2023-05-08 14:27:54 +00:00
Alexandre Aubin
ea24fca91f Update changelog for 11.1.19 2023-05-08 16:08:35 +02:00
Kay0u
47da68f076
Revert "fix tests for bookworm, don't try this at home"
This reverts commit 487ccdd339.
2023-05-05 16:36:47 +02:00
Kayou
487ccdd339
fix tests for bookworm, don't try this at home 2023-05-05 16:34:40 +02:00
Alexandre Aubin
a7350a7eae appsv2/regenconf: prevent set -u to be enabled during regen-conf triggered from inside appsv2 scripts 2023-05-04 17:02:35 +02:00
tituspijean
d5cc3dc13d
Merge pull request #1655 from YunoHost/fix-notifs 2023-05-02 13:16:52 +02:00
tituspijean
328d9276f0
Fix str(current_version)
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2023-05-02 13:16:38 +02:00
tituspijean
667612619b
Fix current_version parsing for notifications
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2023-05-01 18:04:31 +02:00
axolotle
4df7e4681d form: force option type to 'select' if there's 'choices' + add test 2023-04-30 17:15:40 +02:00
Alexandre Aubin
8fbdd228ab appsv2: in perm resource, fix handling of additional urls containing vars to replace 2023-04-28 22:40:40 +02:00
Alexandre Aubin
8b71ebc40f
Merge pull request #1654 from YunoHost/ci-autofix-translated-strings-dev
[CI] Reformat / remove stale translated strings
2023-04-28 11:58:21 +02:00
Alexandre Aubin
a129adef20
Merge pull request #1646 from YunoHost/ci-auto-update-n-v
Upgrade n to version 9.1.0
2023-04-28 11:57:52 +02:00
Alexandre Aubin
76bf9044c4
Merge pull request #1649 from YunoHost/before-pydantic
ConfigPanel: Before pydantic (renames) 1/3
2023-04-28 11:57:20 +02:00
yunohost-bot
63760680f8 Upgrade n to v 2023-04-28 05:11:13 +00:00
yunohost-bot
0282670458 [CI] Reformat / remove stale translated strings 2023-04-27 15:10:21 +00:00
Alexandre Aubin
15160425c9
Merge pull request #1648 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-04-27 16:51:48 +02:00
xabirequejo
d94ed2be9e Translated using Weblate (Basque)
Currently translated at 97.2% (743 of 764 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2023-04-27 00:43:03 +02:00
Neko Nekowazarashi
510b3979e6 Translated using Weblate (Indonesian)
Currently translated at 36.3% (278 of 764 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/id/
2023-04-25 12:11:41 +02:00
ButterflyOfFire
380e2d23aa Translated using Weblate (Arabic)
Currently translated at 29.7% (227 of 764 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ar/
2023-04-23 20:53:56 +02:00
axolotle
c1f0ac04c7 rename Option.name to Option.id 2023-04-19 20:27:17 +02:00
axolotle
fe5c73b4ed form+configpanel: sort imports 2023-04-19 20:27:17 +02:00
axolotle
e87f8ef93a form: use Enum for Option's type 2023-04-19 20:27:17 +02:00
axolotle
ba32078180 configpanel: rename data methods 2023-04-19 20:27:17 +02:00
axolotle
1c7d427be0 form: remove hooks from Option's attrs 2023-04-19 20:27:17 +02:00
axolotle
67687b7cff configpanel: reorder ConfigPanel methods 2023-04-19 20:27:17 +02:00
axolotle
fe2761da4a configpanel: fix choices 2023-04-19 20:27:17 +02:00
axolotle
dc99febe4c form: add fancy separators 2023-04-19 20:27:17 +02:00
axolotle
c439c47d67 form: restrict filter to AppOption 2023-04-19 20:27:17 +02:00
axolotle
e4a0ad35ce form: reorder Option methods 2023-04-19 20:27:17 +02:00
axolotle
f0f89d8f2a form: restrict choices to select, tags, domain, app, user + group 2023-04-19 20:27:17 +02:00
axolotle
5f4c83a4eb form: rename _prevalidate() to _value_pre_validator() + _post_parse_value() to _value_post_validator() 2023-04-19 20:27:17 +02:00
axolotle
07636fe21e form: rename text_cli_* to _get_prompt_message + message 2023-04-19 20:27:17 +02:00
axolotle
9c238f00c3 form: reorder Options 2023-04-19 20:27:17 +02:00
axolotle
9e8e0497dd form: fix readonly prompting + + choices + tests 2023-04-19 20:27:17 +02:00
axolotle
5351698230 form: rename ARGUMENTS_TYPE_PARSERS to OPTIONS 2023-04-19 20:27:17 +02:00
axolotle
4261317e49 form: separate BaseOption into BaseReadonlyOption + BaseInputOption 2023-04-19 20:27:17 +02:00
axolotle
f9fd379997 form: rename Questions to Options 2023-04-19 20:27:17 +02:00
axolotle
91497afbfe form: move option asking+prompt in external function 2023-04-19 20:27:17 +02:00
xabirequejo
b4254c40e6 Translated using Weblate (Basque)
Currently translated at 97.2% (743 of 764 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2023-04-18 06:38:33 +02:00
tituspijean
bc30805c7d
[enh] exclude .well-known subpaths from conflict checks 2023-04-17 13:18:10 +02:00
Alexandre Aubin
9a585f03c6 Update changelog for 11.1.18 2023-04-14 17:24:17 +02:00
Alexandre Aubin
c98b17f22b
Merge pull request #1643 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-04-14 17:20:12 +02:00
xabirequejo
5f08fbed44 Translated using Weblate (Basque)
Currently translated at 97.2% (743 of 764 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2023-04-12 21:38:54 +02:00
Alexandre Aubin
f92316325e
Merge pull request #1645 from YunoHost/enh_app_id_settings
[enh] app id in settings
2023-04-12 21:38:40 +02:00
tituspijean
c96b378d3e
[enh] app id in settings 2023-04-12 21:30:28 +02:00
Alexandre Aubin
749f0c5b1f
Merge pull request #1644 from YunoHost/codeql
Do not run CodeQL for tests
2023-04-12 16:10:55 +02:00
tituspijean
2ab0fa34c3
Do not run CodeQL for tests 2023-04-12 12:47:00 +02:00
Alexandre Aubin
04edce8948
Merge pull request #1642 from YunoHost/fix-ssh-user
User .ssh directory should be executable
2023-04-12 12:35:33 +02:00
tituspijean
109375c83f
User .ssh directory should be executable 2023-04-12 09:54:52 +02:00
Alexandre Aubin
e14a12272d
Merge pull request #1641 from YunoHost/tituspijean-patch-1
Set out-of-catalog, broken, bad quality apps diagnosis as warnings
2023-04-11 21:00:08 +02:00
tituspijean
fb9e892019
Set out-of-catalog, broken, bad quality apps diagnosis as warnings 2023-04-11 20:50:06 +02:00
Alexandre Aubin
58614add79 dyndns: add a 'set-recovery-password' command to set the recovery password using only the key 2023-04-11 20:22:40 +02:00
Alexandre Aubin
59a2c96921 dyndns: remove this 'comment' thing from the actionsmap, it's being displayed even for non-dyndns domains... 2023-04-11 19:49:28 +02:00
Alexandre Aubin
cbef40798c dyndns: be able to unsubscribe using the key + domain and i18n string consistency 2023-04-11 19:40:30 +02:00
Alexandre Aubin
e2da51b9a3 dyndns: various tweaks to simplify the code, improve UX ... 2023-04-11 18:43:27 +02:00
Alexandre Aubin
c98da124b2 Merge remote-tracking branch 'origin/dev' into dyndns-password 2023-04-11 16:16:25 +02:00
Alexandre Aubin
789b1b2af9 dyndns: revert changes regarding auto-push ... it's not complete, and the PR about dyndns recovery password is already too complex... 2023-04-11 16:14:01 +02:00
Alexandre Aubin
81360723cc dyndns: Misc semantic tweaks... 2023-04-11 15:17:41 +02:00
Alexandre Aubin
d67e231678 dydns-password-recovery -> dyndns-recovery-password 2023-04-11 14:48:44 +02:00
Alexandre Aubin
d641659bf3
Merge pull request #1640 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-04-11 14:00:19 +02:00
José M
e2ea7ad7a0 Translated using Weblate (Galician)
Currently translated at 100.0% (764 of 764 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2023-04-11 13:58:26 +02:00
Alexandre Aubin
b489d8bd99
Merge pull request #1637 from YunoHost/enh-perms-declaration
Support variables in permissions declaration
2023-04-11 13:58:19 +02:00
Alexandre Aubin
8ca756dbd3 appsv2: simplify code to hydrate url/additional_urls with app settings 2023-04-11 13:57:50 +02:00
Alexandre Aubin
f9deb1d835
Merge pull request #1636 from YunoHost/ci-format-debian/11.1.17
[CI] Format code with Black
2023-04-11 13:38:19 +02:00
Alexandre Aubin
4380a50166
Merge pull request #1639 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-04-11 13:38:00 +02:00
Alexandre Aubin
aa5b3dfa77
Merge pull request #1638 from YunoHost/support-porkbun-dns
Add support for Porkbun through Lexicon
2023-04-11 13:36:45 +02:00
Alexandre Aubin
aa43e6c22b appsv2: fix edge-case when validating packager-provided infos for permissions resource 2023-04-10 14:34:10 +02:00
José M
57be208238 Translated using Weblate (Galician)
Currently translated at 99.8% (763 of 764 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2023-04-10 10:03:49 +02:00
xabirequejo
1cc8924669 Translated using Weblate (Basque)
Currently translated at 97.1% (742 of 764 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2023-04-09 04:53:15 +02:00
Weblate
6bd8da807e Merge branch 'dev' of https://github.com/YunoHost/yunohost into dev 2023-04-07 19:06:29 +02:00
tituspijean
fa26574b51
Ooops 2023-04-06 23:32:46 +02:00
tituspijean
a66fccbd5b
Support variables in permissions declaration 2023-04-06 23:21:57 +02:00
tituspijean
88ea5f0a90
Add support for Porkbun through Lexicon 2023-04-06 20:11:17 +00:00
yunohost-bot
58cd08e60d [CI] Format code with Black 2023-04-05 15:32:22 +00:00
Alexandre Aubin
021099aa1e Update changelog for 11.1.17 2023-04-05 16:02:05 +02:00
Alexandre Aubin
9a4267ffa4 appsv2: for the dir/subdirs of data_dir, create parent folders if they don't exist 2023-04-05 15:58:26 +02:00
Alexandre Aubin
ec82facff6
Merge pull request #1635 from YunoHost/split-config
Split utils/config.py
2023-04-04 16:05:18 +02:00
axolotle
bee218e560 fix configpanel.py and form.py imports 2023-04-04 16:05:36 +02:00
Alexandre Aubin
8c25aa9b9f helpers: fix previous change about using YNH_APP_ACTION ... which is not defined in config panel context 2023-04-04 15:55:55 +02:00
axolotle
f79cfcc067 Merge branches 'split-config-form' and 'split-config-cp' into split-config 2023-04-04 15:55:08 +02:00
axolotle
b688944d11 remove form related code from configpanel.py 2023-04-04 15:54:28 +02:00
axolotle
478291766e mv config.py to configpanel.py 2023-04-04 15:51:55 +02:00
axolotle
d8cb2139a9 remove ConfigPanel code from form.py 2023-04-04 15:50:56 +02:00
axolotle
9c6a7fdf04 mv config.py to form.py 2023-04-04 15:43:46 +02:00
Alexandre Aubin
17e0a11547
Merge pull request #1629 from YunoHost/tests-cp
[tests] Rework questions/options tests
2023-04-04 13:01:35 +02:00
Alexandre Aubin
b5f3662627
Misc syntax 2023-04-04 13:01:25 +02:00
Alexandre Aubin
d5469b77c5
Merge pull request #1633 from YunoHost/ci-format-debian/11.1.16
[CI] Format code with Black
2023-04-04 12:27:01 +02:00
Alexandre Aubin
a15bad7b83
Merge pull request #1634 from YunoHost/fix-gandi-autodns
Fix autodns for gandi root domain
2023-04-04 12:26:43 +02:00
Kayou
74213c6ce9
Typo 2023-04-04 11:40:02 +02:00
Kayou
a16a164e20
Fix autodns for gandi root domain 2023-04-04 11:36:35 +02:00
yunohost-bot
4e799bfbc3 [CI] Format code with Black 2023-04-02 18:52:32 +00:00
Alexandre Aubin
85a4b78e49 Update changelog for 11.1.16 2023-04-02 20:32:17 +02:00
Alexandre Aubin
14bf2ee48b appsv2: various fixes regarding sources toml parsing/caching 2023-04-02 20:28:29 +02:00
Alexandre Aubin
821aedefa7 users: fix quota parsing being wrong by a factor 1000 ... doveadm returns kilos, not bytes 2023-03-31 20:45:14 +02:00
Alexandre Aubin
4b46f32201 appv2: add support for subdirs property in data_dir 2023-03-31 20:26:08 +02:00
Alexandre Aubin
306c5e0e10 app resources: add documentation about latest_github_commit strategy for source autoupdate + autoupdate.upstream 2023-03-31 20:11:25 +02:00
Alexandre Aubin
63981aacf9 appsv2: Add documentation about the new 'autoupdate' mechanism for app sources 2023-03-27 20:34:49 +02:00
Alexandre Aubin
8b1184f11b
Merge pull request #1630 from YunoHost/fix-cp-titles
fix i18n panel+section names
2023-03-27 19:58:37 +02:00
axolotle
2d03176c7f fix i18n panel+section names 2023-03-22 15:37:39 +01:00
axolotle
f8c1e7c168 options: misc option quick fixes 2023-03-22 14:20:50 +01:00
axolotle
8e6178a863 options:tests: add missing types tests 2023-03-22 14:11:00 +01:00
axolotle
f4b7906811 options:tests: replace file tests 2023-03-21 21:15:29 +01:00
axolotle
eacb7016e2 options:tests: replace display_text tests 2023-03-21 19:03:09 +01:00
axolotle
af0cd78fcc options:tests: replace number tests 2023-03-21 19:01:45 +01:00
axolotle
af77e0b62f options:tests: replace user tests 2023-03-21 18:58:25 +01:00
axolotle
db1710a0a9 options:tests: replace domain tests 2023-03-21 18:56:02 +01:00
axolotle
df6bb22820 options:tests: replace boolean tests 2023-03-21 18:53:55 +01:00
axolotle
70149fe41d options:tests: replace path tests 2023-03-21 18:50:23 +01:00
axolotle
38381b8149 options:tests: replace some password tests 2023-03-21 18:47:04 +01:00
axolotle
26ca9e5c69 options:tests: replace some string tests 2023-03-21 18:38:53 +01:00
axolotle
c211b75279 options:tests: add base class Test 2023-03-21 18:31:24 +01:00
Alexandre Aubin
1b2fa91ff0
ynh_setup_source: fix buggy checksum mismatch handling, can't compute the sha256sum after we delete the file @_@ 2023-03-20 15:49:23 +01:00
Alexandre Aubin
b2596f3287 appsv2: add validation for expected types for permissions stuff 2023-03-14 19:23:24 +01:00
Alexandre Aubin
3656c19918 helpers/appsv2: don't remove yhh-deps virtual package if ... it doesn't exist. Otherwise when apt fails to install dependency, we end up with another error about failing to remove the ynh-deps package 2023-03-14 18:45:04 +01:00
Alexandre Aubin
a95d10e50c backup: fix boring issue where archive is a broken symlink... 2023-03-13 18:48:57 +01:00
Alexandre Aubin
f9a7016931 Update changelog for 11.1.15 2023-03-11 16:51:42 +01:00
Alexandre Aubin
eabde600be
Merge pull request #1627 from YunoHost/simplify-n-management
helpers/nodejs: simplify 'n' script install and maintenance
2023-03-11 16:49:50 +01:00
Alexandre Aubin
eaf7a2904c helpers: fix ynh_setup_source, 'source_id' may contain slashes x_x 2023-03-11 14:57:48 +01:00
Alexandre Aubin
13ac9dade6 helpers/nodejs: simplify 'n' script install and maintenance 2023-03-10 16:00:53 +01:00
Alexandre Aubin
5b58e0e60c doc: Fix version number in autogenerated resource doc 2023-03-09 21:17:02 +01:00
Alexandre Aubin
7491dd4c50 helpers: Fix documentation for ynh_setup_source 2023-03-09 20:57:33 +01:00
Alexandre Aubin
69518b5417 Bash being bash ~_~ 2023-03-09 20:41:29 +01:00
Alexandre Aubin
b9f166e525
Merge pull request #1625 from YunoHost/ci-format-debian/11.1.14
[CI] Format code with Black
2023-03-09 19:09:53 +01:00
ppr
ab1149b1e7 Translated using Weblate (French)
Currently translated at 99.3% (759 of 764 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2023-03-09 19:09:37 +01:00
ButterflyOfFire
c2ba4a90e7 Translated using Weblate (Arabic)
Currently translated at 29.5% (226 of 764 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ar/
2023-03-09 19:09:37 +01:00
Alexandre Aubin
cc058024a3
Merge pull request #1626 from YunoHost/ci-autofix-translated-strings-dev
[CI] Reformat / remove stale translated strings
2023-03-09 19:09:27 +01:00
yunohost-bot
89d139e47a [CI] Reformat / remove stale translated strings 2023-03-09 16:47:09 +00:00
yunohost-bot
98c7b60311 [CI] Format code with Black 2023-03-09 16:19:40 +00:00
Alexandre Aubin
4971127b9c Update changelog for 11.1.14 2023-03-09 15:35:12 +01:00
Alexandre Aubin
1392080ed7
Merge pull request #1624 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-03-09 15:34:04 +01:00
ButterflyOfFire
7c8f5261cb Translated using Weblate (Arabic)
Currently translated at 29.6% (226 of 762 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ar/
2023-03-09 15:20:33 +01:00
Tymofii-Lytvynenko
bccfa7f26e Translated using Weblate (Ukrainian)
Currently translated at 100.0% (762 of 762 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2023-03-09 15:20:33 +01:00
Grzegorz Cichocki
ce37d097ad Translated using Weblate (Polish)
Currently translated at 23.0% (176 of 762 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pl/
2023-03-09 15:20:33 +01:00
ButterflyOfFire
340fa78751 Translated using Weblate (Arabic)
Currently translated at 28.8% (220 of 762 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ar/
2023-03-09 15:20:33 +01:00
Alexandre Aubin
738d0679da
Merge pull request #1615 from YunoHost/sources_toml
helpers: add support for a 'sources' app resources to modernize and replace app.src format
2023-03-09 15:20:06 +01:00
Alexandre Aubin
cb32423236
appsv2/sources: Reflect changes in ynh_setup_source doc 2023-03-09 15:18:29 +01:00
Alexandre Aubin
0d524220e5 appsv2/sources: i18n 2023-03-08 16:44:52 +01:00
Alexandre Aubin
ebc9e645fc
Typo
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
2023-03-08 16:23:58 +01:00
Alexandre Aubin
acb359bdbf Forgot to remove pdb D: 2023-03-06 20:15:20 +01:00
Alexandre Aubin
0a937ab0bd Unecessary pass statement 2023-03-06 20:06:11 +01:00
Alexandre Aubin
4102d626e5 appsv2/sources: change 'sources.toml' to a new 'sources' app resource instead 2023-03-06 19:57:12 +01:00
Alexandre Aubin
091f7de827 Typo >_> 2023-03-04 21:40:59 +01:00
Alexandre Aubin
8731f77aa9 helpers: simplify --time display option for ynh_script_progression .. we don't care about displaying time when below 10 sc 2023-03-04 21:35:35 +01:00
Alexandre Aubin
756b0930c2 Update changelog for 11.1.13 2023-03-03 22:58:03 +01:00
Alexandre Aubin
8e66e672d3
Merge pull request #1623 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-03-03 22:56:48 +01:00
Alexandre Aubin
130bd4def2
Update locales/fr.json 2023-03-03 22:56:41 +01:00
José M
d3fb090d4f Translated using Weblate (Galician)
Currently translated at 100.0% (762 of 762 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2023-03-03 22:54:55 +01:00
ButterflyOfFire
4f11e8fe34 Translated using Weblate (Occitan)
Currently translated at 40.2% (307 of 762 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/oc/
2023-03-03 22:54:55 +01:00
ppr
bb30b43814 Translated using Weblate (French)
Currently translated at 99.4% (758 of 762 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2023-03-03 22:54:55 +01:00
Christian Wehrli
6fe0ed919d Translated using Weblate (German)
Currently translated at 89.6% (683 of 762 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2023-03-03 22:54:55 +01:00
ButterflyOfFire
3469440ec3 Translated using Weblate (Arabic)
Currently translated at 28.3% (216 of 762 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ar/
2023-03-03 22:54:55 +01:00
Alexandre Aubin
729868429a appsv2: when hydrating template, the data may be not-string, eg ports are int 2023-03-03 22:54:37 +01:00
Alexandre Aubin
9f211d39f9
Merge pull request #1622 from YunoHost/fix-_port_is_used
trying to fix _port_is_used
2023-03-02 18:48:37 +01:00
Kay0u
030d876329
trying to fix _port_is_used 2023-03-02 18:40:56 +01:00
Alexandre Aubin
74180ded22 Update changelog for 11.1.12.2 2023-03-01 22:13:34 +01:00
Alexandre Aubin
d04f2085de helpers: omg base64 wraps the output by default :| 2023-03-01 22:12:27 +01:00
Alexandre Aubin
59607ab33a Update changelog for 11.1.12.1 2023-03-01 08:10:07 +01:00
Alexandre Aubin
c24c0a2ae1 helper: fix previous tweak about debugging diff for manually modified files on the CI @_@ 2023-03-01 08:10:07 +01:00
Bram
9b1f4c9e1b
Merge pull request #1621 from YunoHost/ci-format-debian/11.1.12
[CI] Format code with Black
2023-03-01 04:18:14 +01:00
yunohost-bot
76ff5b1844 [CI] Format code with Black 2023-03-01 00:47:18 +00:00
Alexandre Aubin
28610669ed Update changelog for 11.1.12 2023-02-28 23:10:06 +01:00
Alexandre Aubin
48bde23a0d
Merge pull request #1620 from YunoHost/main.url-none
Handle undefined main permission url
2023-02-28 23:07:01 +01:00
tituspijean
8701d8ec62
Handle undefined main permission url 2023-02-28 22:58:17 +01:00
Alexandre Aubin
8188c28167 appsv2: add documentation for previously introduced allow_email flag 2023-02-28 18:10:27 +01:00
Alexandre Aubin
c48d9ec483 appsv2/mail: add new 'allow_email' flag on app system users that will autogenerate a passwd-like file to be used by dovecot + map for postfix 2023-02-28 17:56:49 +01:00
Alexandre Aubin
f0751aff17 Allow system users to auth on the mail stack and send emails 2023-02-28 13:52:22 +01:00
Alexandre Aubin
276cf11c4d
Merge pull request #1602 from YunoHost/app-upgrade-continue-on-failures
feat: add '--continue-on-failure' to 'yunohost app upgrade
2023-02-28 13:33:50 +01:00
Alexandre Aubin
7636b486c0
Merge pull request #1617 from YunoHost/more-robust-service-start-detection
helpers: more robust way to grep that the service correctly started ?
2023-02-28 13:22:46 +01:00
Alexandre Aubin
8ac74ea866
Merge pull request #1618 from YunoHost/debug-manually-change-config-file
helpers: tweak behavior of checksum helper in CI context to help debug why file appear as 'manually modified'
2023-02-28 13:05:55 +01:00
Alexandre Aubin
e03f609e9b helpers: tweak behavior of checksum helper in CI context to help debug why file appear as 'manually modified' 2023-02-27 19:30:18 +01:00
Alexandre Aubin
7631d380fb helpers: more robust way to grep that the service correctly started ? 2023-02-27 17:08:00 +01:00
Alexandre Aubin
94689cea12
Merge pull request #1616 from YunoHost/ci-autofix-translated-strings-dev
[CI] Reformat / remove stale translated strings
2023-02-27 15:26:46 +01:00
yunohost-bot
ca59e0052c [CI] Reformat / remove stale translated strings 2023-02-26 20:54:48 +00:00
Alexandre Aubin
e9c474c1bd
Merge pull request #1614 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-02-26 21:26:29 +01:00
Alexandre Aubin
433d37b3af
Update locales/pl.json 2023-02-26 21:26:24 +01:00
Alexandre Aubin
eb6d9df92f helpers: add support for a sources.toml to modernize and replace app.src format 2023-02-26 20:09:04 +01:00
José M
53588dcce7 Translated using Weblate (Galician)
Currently translated at 99.6% (754 of 757 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2023-02-26 17:44:57 +01:00
Kuba Bazan
e926e5ecaa Translated using Weblate (Polish)
Currently translated at 20.0% (152 of 757 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pl/
2023-02-26 17:44:57 +01:00
Krakinou
df7f0ee969 Translated using Weblate (Italian)
Currently translated at 77.8% (589 of 757 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2023-02-26 17:44:57 +01:00
ppr
1a089647b5 Translated using Weblate (French)
Currently translated at 99.8% (756 of 757 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2023-02-26 17:44:57 +01:00
Alexandre Aubin
b40c0de33c Fix pop3_enabled parsing returning 0/1 instead of True/False ... 2023-02-26 17:44:48 +01:00
Alexandre Aubin
e458d8813e nginx/security: fix empty webadmin allowlist breaking nginx conf... 2023-02-26 15:11:18 +01:00
Alexandre Aubin
97c0128c22 regenconf: sometimes ntp doesnt exist 2023-02-26 15:11:18 +01:00
Alexandre Aubin
20e8805e3b misc: automatic get rid of /etc/profile.d/check_yunohost_is_installed.sh when yunohost is postinstalled 2023-02-25 16:02:14 +01:00
Alexandre Aubin
324366a728
Merge pull request #1611 from ericgaspar/patch-1
set `w` as default permission on `install_dir` folder
2023-02-24 19:13:35 +01:00
Éric Gaspar
a3df78fe7e
Update resources.py
set `w` as default permission on `install_dir` folder
2023-02-24 18:46:31 +01:00
Alexandre Aubin
0c520e828e
Merge pull request #1609 from p4p4j0hn/issue2158/create-parent-dirs
[Fixes 2158] Create parent dirs when provisioning install_dir
2023-02-24 13:24:14 +01:00
Alexandre Aubin
5d17782115 Update changelog for 11.1.11.2 2023-02-24 13:10:37 +01:00
John Schmidt
9d214fd3c6
[Fixes 2158] Create parent dirs when provisioning install_dir
Signed-off-by: John Schmidt <john@schmidthaus.rocks>
2023-02-23 20:25:24 -08:00
Laurent Peuch
404746c125 feat: add '--continue-on-failure' to 'yunohost app upgrade 2023-02-24 03:33:10 +01:00
Alexandre Aubin
8ce5bb2412 Update changelog for 11.1.11.1 2023-02-24 01:30:42 +01:00
Alexandre Aubin
e05df676dc appsv2: fix previous commit about __DOMAIN__ because url may be None x_x 2023-02-24 01:30:01 +01:00
Alexandre Aubin
128d7ebfe2
Merge pull request #1608 from YunoHost/ci-format-debian/11.1.11
[CI] Format code with Black
2023-02-24 00:20:27 +01:00
yunohost-bot
6210d07c24 [CI] Format code with Black 2023-02-23 23:17:35 +00:00
Alexandre Aubin
41c9d9d8e3 Update changelog for 11.1.11 2023-02-23 22:32:20 +01:00
Alexandre Aubin
ad63e5d383 Make the linters god happy... 2023-02-23 22:27:46 +01:00
Alexandre Aubin
943b9ff89f appsv2: fix usage of __DOMAIN__ in permission url 2023-02-23 22:25:44 +01:00
Alexandre Aubin
139e54a2e5
appsv2: data_dir's owner should have rwx by default 2023-02-23 21:53:59 +01:00
Alexandre Aubin
309c868f8c
Merge pull request #1607 from YunoHost/fix-dovecot-pop3d
[fix] dovecot-pop3d is never installed
2023-02-23 16:09:26 +01:00
Alexandre Aubin
c13d627302
Merge pull request #1606 from ericgeldmacher/fix_log_decoding_error
Fix decoding errors not handled when trying to read service logs
2023-02-23 16:07:08 +01:00
ljf (zamentur)
f91f87a1be
[fix] dovecot-pop3d is never installed 2023-02-23 16:06:47 +01:00
Eric Geldmacher
bef4809f94
Pass errors='replace' to open command
This is to handle decoding errors described in YunoHost/issues#2156
2023-02-23 08:48:22 -06:00
Alexandre Aubin
bab27014d9 apps: when creating the app's bash env for script, make sure to use the manifest from the workdir instead of app setting dir, which is important for consistency during edge case when upgrade from v1 to v2 fails 2023-02-23 14:53:57 +01:00
Alexandre Aubin
79c9a7b294
Merge pull request #1604 from YunoHost/ci-format-debian/11.1.10
[CI] Format code with Black
2023-02-21 21:03:46 +01:00
yunohost-bot
aa50526ccd [CI] Format code with Black 2023-02-21 19:49:52 +00:00
Alexandre Aubin
90b8e78eff ci: zblerg, try to fix the coverage thingy computing coverage on test and vendor files x_x 2023-02-21 19:44:51 +01:00
Alexandre Aubin
8724329738 Remove .lgtm.yml, the service doesnt exists anymore :| 2023-02-21 19:34:22 +01:00
Alexandre Aubin
127c241c9a swag: update README badges 2023-02-21 19:23:35 +01:00
Alexandre Aubin
232d38f221 Update changelog for 11.1.10 2023-02-21 18:58:36 +01:00
Alexandre Aubin
4fd10b5a1d ci: hmf try to understand what that 're2 syntax' gitlab is talking about is 2023-02-21 17:13:53 +01:00
Alexandre Aubin
1dc8b75315 appsv2: fix check that postgresql db exists... 2023-02-21 17:08:12 +01:00
Alexandre Aubin
d725b45428 appsv2: fix reload_only_if_change option not working as expected, resulting in incorrect 'Firewall reloaded' messages 2023-02-21 15:22:50 +01:00
Alexandre Aubin
888593ad22 appsv2: fix resource provisioning scripts picking up already-closed operation logger, resulting in confusing debugging output 2023-02-21 14:57:10 +01:00
Alexandre Aubin
4dfff20140 appsv2: add support for a packages_from_raw_bash option in apt where one can add a multiline bash snippet to echo packages 2023-02-21 14:51:51 +01:00
Alexandre Aubin
df6a2a2cd2 apps: add 'YNH_DEBIAN_VERSION' variable in apps contexts 2023-02-21 13:03:51 +01:00
Alexandre Aubin
b887545c3e
ci: attempt to fix the "coverage: not set up" thingy 2023-02-21 02:51:41 +01:00
Alexandre Aubin
c300e023ef
Merge pull request #1601 from YunoHost/ci-format-debian/11.1.9
[CI] Format code with Black
2023-02-20 20:51:07 +01:00
Alexandre Aubin
e1d62a1910
apps: Fix edge case in change_url where old_nginx_conf_backup could be None 2023-02-20 20:50:53 +01:00
yunohost-bot
95b80b056f [CI] Format code with Black 2023-02-20 19:46:58 +00:00
Alexandre Aubin
f436b890d6 Update changelog for 11.1.9 2023-02-20 20:33:54 +01:00
Alexandre Aubin
ec4c2684f7 appsv2: zblerg I inadvertendly removed the line that update the user group x_x 2023-02-20 20:26:50 +01:00
Alexandre Aubin
63f0f08421 appsv2: revert commit that adds a bunch of warning about apt/database consistency, it's more relevant to have them in package linter instead 2023-02-20 18:03:32 +01:00
Alexandre Aubin
2b70ccbf40 apps: simplify the redaction of change_url scripts by adding a new ynh_change_url_nginx_config helper + predefining new/old/change domain/path variables 2023-02-20 17:52:27 +01:00
Alexandre Aubin
890b8e8082 Semantic 2023-02-20 17:52:27 +01:00
Alexandre Aubin
290d627faf ux: Moar boring postgresql messages displayed as warning 2023-02-20 17:52:27 +01:00
Alexandre Aubin
848adf89c8 log: Previous trick about getting rid of setting didnt work, forgot to use metadata instead of self.metadata 2023-02-20 17:52:27 +01:00
Alexandre Aubin
2a16f289ea
Merge pull request #1599 from YunoHost/ci-format-debian/11.1.8.1
[CI] Format code with Black
2023-02-20 14:23:40 +01:00
Bram
5a24cac788
Merge pull request #1600 from YunoHost/ci-format-debian/11.1.8.2
[CI] Format code with Black
2023-02-20 00:35:15 +01:00
yunohost-bot
16aa09174d [CI] Format code with Black 2023-02-19 23:31:08 +00:00
yunohost-bot
61b5bb02f4 [CI] Format code with Black 2023-02-19 20:58:12 +00:00
Alexandre Aubin
16bae924e8 Update changelog for 11.1.8.2 2023-02-19 21:39:36 +01:00
Alexandre Aubin
343065eb5d regenconf: fix undefined var in apt regenconf 2023-02-19 21:38:53 +01:00
Alexandre Aubin
93d011704f
Merge pull request #1598 from YunoHost/ci-format-debian/11.1.8
[CI] Format code with Black
2023-02-19 20:12:40 +01:00
yunohost-bot
2389884e85 [CI] Format code with Black 2023-02-19 19:10:51 +00:00
Alexandre Aubin
56c4740274 Update changelog for 11.1.8.1 2023-02-19 19:41:45 +01:00
Alexandre Aubin
50f86af51a quality: unused function 2023-02-19 19:40:28 +01:00
Alexandre Aubin
13d50f4f9a postgresql: ugly hack to hide boring warning messages when installing postgresql with apt the first time ... 2023-02-19 19:40:15 +01:00
Alexandre Aubin
e6ae389297 postgresql: moar regenconf fixes 2023-02-19 19:38:48 +01:00
Alexandre Aubin
93aeee8029 Update changelog for 11.1.8 2023-02-19 18:24:49 +01:00
Alexandre Aubin
32ea7f17cd
Merge pull request #1597 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-02-19 18:20:07 +01:00
xabirequejo
6da884418c Translated using Weblate (Basque)
Currently translated at 98.2% (742 of 755 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2023-02-19 18:10:55 +01:00
ButterflyOfFire
12f1b95a6f Translated using Weblate (Arabic)
Currently translated at 28.4% (215 of 755 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ar/
2023-02-19 18:10:55 +01:00
Alexandre Aubin
d3ec5d055f apps: fix edge case when upgrading using a local folder not modified since a while 2023-02-19 18:10:35 +01:00
Alexandre Aubin
ce7227c078 appsv2: add home dir that defaults to /var/www/__APP__ for system user resource 2023-02-19 18:10:05 +01:00
Alexandre Aubin
771b801ece appsv2: zbfgblg using '&' in os.system calls is interpreted using sh and not bash i guess... 2023-02-18 17:29:37 +01:00
Alexandre Aubin
18e034df8a regenconf: in apt/php stuff, don't try to upgrade-alternatives if the default PHP version ain't available anymore (similar to commit e24ddd29) 2023-02-18 16:34:54 +01:00
Alexandre Aubin
8a43b04614 postgresql: fix regenconf hook, the arg format thingy changed a bit at some point ? 2023-02-18 16:33:50 +01:00
Alexandre Aubin
d123fd7674 appsv2: fix user provisionion ... Aleks was drunk ... check_output('cmd &>/dev/null') will always return empty string... 2023-02-18 16:08:26 +01:00
Alexandre Aubin
475c93d582 postinstall: raise a proper error when trying to use e.g. 'admin' as the first username which will conflict with the admins group mail aliases 2023-02-17 16:37:00 +01:00
Alexandre Aubin
58ac633d80 apps: don't miserably crash when failing to read .md file such as DESCRIPTION.md 2023-02-17 15:27:28 +01:00
Alexandre Aubin
97b69e7c69 appsv2: add check about database vs. apt consistency in resource / warn about lack of explicit dependency to mariadb-server 2023-02-17 15:19:23 +01:00
Alexandre Aubin
35427c8f28
Merge pull request #1596 from YunoHost/ci-format-debian/11.1.7
[CI] Format code with Black
2023-02-16 12:03:02 +01:00
yunohost-bot
069b782f07 [CI] Format code with Black 2023-02-15 21:37:05 +00:00
Alexandre Aubin
13c4687c7b Update changelog for 11.1.7 2023-02-15 21:13:39 +01:00
Alexandre Aubin
a06bb9ae82
Create codeql.yml 2023-02-15 20:15:21 +01:00
Alexandre Aubin
6c3ecd2048
Merge pull request #1595 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-02-15 20:02:11 +01:00
Alexandre Aubin
39141fbb6d
Merge branch 'dev' into weblate-yunohost-core 2023-02-15 20:02:05 +01:00
Alexandre Aubin
aa585963c0 ci: fix autoblack PR targetting tags instead of dev 2023-02-15 19:59:57 +01:00
Alexandre Aubin
60b21795b8 appsv2: in php helpers, use the global $phpversion var/setting by default instead of $YNH_PHP_VERSION 2023-02-15 19:49:54 +01:00
Alexandre Aubin
0c4a006a4f appsv2: also replace __DOMAIN__ in resource properties 2023-02-15 19:46:25 +01:00
Alexandre Aubin
e24ddd299e helpers: in apt/php stuff, don't try to upgrade-alternatives if the default PHP version ain't available anymore 2023-02-15 19:24:14 +01:00
Alexandre Aubin
8fd7547528 Unused imports 2023-02-15 16:57:32 +01:00
Alexandre Aubin
7be7eb1154 apps: fix inconsistent app removal during remove-after-failed-upgrade and remove-after-failed-backup contexts 2023-02-14 17:33:50 +01:00
Alexandre Aubin
0ab20b733b appsv2: mysqlshow is fucking dumb and returns exit code 0 when DB doesnt exists ... 2023-02-14 16:09:55 +01:00
Alexandre Aubin
ab8a6b940f appsv2: fix check that main permission url is '/' 2023-02-13 18:28:45 +01:00
Alexandre Aubin
1d1a3756ba appsv2: missing raw_msg=True for exceptions 2023-02-13 18:17:39 +01:00
Alexandre Aubin
aa9bc47aa6 appsv2: fix i18n for arch mismatch, can't juste join() inside string formated with .format() 2023-02-13 14:47:25 +01:00
José M
135dbec8b6 Translated using Weblate (Galician)
Currently translated at 99.6% (752 of 755 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2023-02-13 02:37:20 +01:00
ButterflyOfFire
80d8d9b3c3 Translated using Weblate (Arabic)
Currently translated at 28.3% (214 of 755 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ar/
2023-02-13 02:37:20 +01:00
Alexandre Aubin
d0ca120eb0
diagnosis: fix typo, diagnosis detail should be a list, not a string 2023-02-13 02:37:07 +01:00
Alexandre Aubin
9bd4344f25 appsv2: we don't want to store user-provided passwords by default, but they should still be set in the env for the script to use it 2023-02-12 22:26:05 +01:00
Alexandre Aubin
bf070f1763
Merge pull request #1594 from jmthackett/dev
Add push notification plugins
2023-02-10 04:16:34 +01:00
John Hackett
013aff3d0c
Add push notification plugins
This is reasonably important for the performance of clients such as Delta Chat. The plugins are bundled with dovecot by default (see https://wiki2.dovecot.org/Plugins ) so this should not be disruptive.
2023-02-10 00:14:57 +00:00
Alexandre Aubin
0da6370d62 postfix complains about unused parameter: exclude_internal=yes / search_timeout=30 2023-02-10 00:15:02 +01:00
Alexandre Aubin
258e28f703 Update changelog for 11.1.6.2 2023-02-09 19:01:11 +01:00
Alexandre Aubin
a154e811db doc: improve app resource doc 2023-02-09 19:00:17 +01:00
Alexandre Aubin
658940079d backup: fix postinstall during full restore ... tmp admin user can't be named 'admin' because of conflicting alias with the admins group 2023-02-09 18:59:55 +01:00
Alexandre Aubin
a4fa6e07d0 permissions: fix trailing-slash issue in edge case where app has additional urls related to a different domain 2023-02-09 17:09:15 +01:00
Alexandre Aubin
dd6d083904 Update changelog for 11.1.6.1 2023-02-08 22:51:22 +01:00
Alexandre Aubin
6b38a1b546
Merge pull request #1592 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-02-08 22:50:28 +01:00
ButterflyOfFire
e974f30ba1 Translated using Weblate (Arabic)
Currently translated at 25.8% (195 of 755 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ar/
2023-02-08 22:46:29 +01:00
ButterflyOfFire
a1e2237fbb Translated using Weblate (Arabic)
Currently translated at 23.5% (178 of 755 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ar/
2023-02-08 22:46:29 +01:00
Poesty Li
eb396fdb13 Translated using Weblate (Chinese (Simplified))
Currently translated at 70.0% (529 of 755 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/zh_Hans/
2023-02-08 22:46:29 +01:00
xabirequejo
ea2b0d0c51 Translated using Weblate (Basque)
Currently translated at 98.1% (741 of 755 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2023-02-08 22:46:29 +01:00
Alexandre Aubin
48e488f89e backup: fix full backup restore postinstall calls that now need first username+fullname+password 2023-02-08 22:46:03 +01:00
Alexandre Aubin
024db62a1d users: Allow digits in user fullname 2023-02-07 19:22:54 +01:00
Alexandre Aubin
6520d82e4d ci: fix helpers doc regen + add auto app resource doc 2023-02-07 13:43:32 +01:00
Alexandre Aubin
2eb7da0603 dns: fix CAA recommended DNS conf -> 0 is apparently a more sensible value than 128... 2023-02-07 12:17:28 +01:00
Alexandre Aubin
00b411d18d Update changelog for 11.1.6 2023-02-07 00:21:39 +01:00
Alexandre Aubin
63a95c28d6 Update changelog for 11.1.6 2023-02-07 00:19:08 +01:00
Kayou
106cb0a6fd
code_quality only for tags³ 2023-02-06 21:49:35 +01:00
Kayou
edf8ec1944
code_quality only for tags² 2023-02-06 20:22:50 +01:00
Kayou
fa7f7f77b9
run code_quality jobs only for tags (new versions) 2023-02-06 20:17:55 +01:00
Alexandre Aubin
e0bdb605ee
Merge pull request #1587 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-02-06 17:49:43 +01:00
ppr
e78b62448b Translated using Weblate (French)
Currently translated at 100.0% (755 of 755 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2023-02-06 17:48:49 +01:00
Krzysztof Nowakowski
8247a649e7 Translated using Weblate (Polish)
Currently translated at 10.2% (77 of 753 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pl/
2023-02-06 17:48:49 +01:00
Grzegorz Cichocki
a80734d240 Translated using Weblate (Polish)
Currently translated at 10.2% (77 of 753 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pl/
2023-02-06 17:48:49 +01:00
ppr
91a3e79eaf Translated using Weblate (French)
Currently translated at 100.0% (753 of 753 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2023-02-06 17:48:49 +01:00
Alexandre Aubin
add0dbb864
Merge pull request #1586 from ericgaspar/dev
Fix composer workdir variable for package v2
2023-02-06 17:48:40 +01:00
Alexandre Aubin
e39c89e087
Merge branch 'dev' into dev 2023-02-06 17:48:07 +01:00
Alexandre Aubin
cb505b578b
ynh_install_composer: use either final_path or install_dir depending on packaging format 2023-02-06 17:47:03 +01:00
Alexandre Aubin
1e5203426b admins migration: try to losen up even more the search for first admin user x_x 2023-02-06 17:41:43 +01:00
Alexandre Aubin
480b84b350
Merge pull request #1591 from YunoHost/fix-ynh-write-after
[fix] ynh_write_var_in_file should replace one occurencies
2023-02-06 17:40:23 +01:00
Alexandre Aubin
b5b69e952d domain/dns: don't miserably crash when the domain is known by lexicon but not in registrar_list.toml 2023-02-06 16:26:46 +01:00
Alexandre Aubin
29c6564f09 ci: fix backup test / gotta tell the mocker about the new 'name' arg for backup create messages é_è 2023-02-06 16:15:55 +01:00
Alexandre Aubin
0f24846e0b backup: fix previou fix /o\, name is sometimes None 2023-02-06 16:15:22 +01:00
Alexandre Aubin
170eaf5d74 backup/multimedia: test that /home/yunohots.multimedia does exists to avoid boring warning later 2023-02-06 15:46:21 +01:00
ljf
ca0db0ec58
[fix] ynh_write_var_in_file should replace one occurencies 2023-02-06 15:44:50 +01:00
Alexandre Aubin
387f57d630
Merge pull request #1590 from YunoHost/fix-and-ynh-write-var
[fix] Put a & into a config var
2023-02-06 14:33:09 +01:00
Alexandre Aubin
71042f0860 appsv2: when initalizing permission, make sure to add 'all_users' when visitors is chosen 2023-02-06 14:32:19 +01:00
Alexandre Aubin
c179d4b88f appsv2/group question: don't include primary groups in choices 2023-02-06 14:32:19 +01:00
ljf (zamentur)
9f686a115f
[fix] Put a & into a config var 2023-02-06 14:28:06 +01:00
Alexandre Aubin
b7c5913683
Merge pull request #1589 from YunoHost/fix-write-var-redundant-keys
[fix] Write var in files with redundants keys
2023-02-06 14:00:38 +01:00
ljf (zamentur)
8241e26fc2
[fix] Write var in files with redundants keys 2023-02-06 13:51:32 +01:00
Alexandre Aubin
07f287f680
Merge pull request #1588 from YunoHost/fix-ynh-replace-string
[fix] Allow to do replace string with @
2023-02-06 13:33:30 +01:00
ljf (zamentur)
f742bdf832
[fix] Allow to do replace string with @ 2023-02-06 13:26:36 +01:00
Alexandre Aubin
4dee434e71 domains: add missing logic to inject translated 'help' keys in config panel like we do for global settings 2023-02-05 18:31:36 +01:00
Alexandre Aubin
a035024666 Update changelog for 11.1.5.5 2023-02-04 18:51:35 +01:00
Alexandre Aubin
fb54da2e35 appsv2: moar fixes for v1->v2 upgrade not getting the proper env context 2023-02-04 18:46:33 +01:00
Alexandre Aubin
8485ebc75a admin->admins migration: try to handle boring case where the 'first' user cant be identified because it doesnt have the root@ alias 2023-02-03 21:13:17 +01:00
Alexandre Aubin
3bbba640e9 appsv2: ignore the old/ugly/legacy removal of apt deps when removing the php conf, because that's handled by the apt resource 2023-02-03 21:05:23 +01:00
Alexandre Aubin
9459aed65e Update changelog for 11.1.5.4 2023-02-03 20:43:42 +01:00
Alexandre Aubin
476908bdc2 appsv2: fix permission provisioning for fulldomain apps + fix apps not properly getting removed after failed resources init 2023-02-03 20:38:27 +01:00
Alexandre Aubin
0e787acb5d
appv2: typo in ports resource doc x_x 2023-02-03 15:32:09 +01:00
Éric Gaspar
b06a3053f6 Fix spacing 2023-02-03 10:21:09 +01:00
Éric Gaspar
634fd6e7fc Fix workdir variable for package v.2 2023-02-03 09:45:20 +01:00
Éric Gaspar
ce5d4ca637
Merge branch 'YunoHost:dev' into dev 2023-02-03 09:40:37 +01:00
Alexandre Aubin
c255fe2495 Update changelog for 11.1.5.3 2023-02-03 03:07:09 +01:00
Alexandre Aubin
2107a84852 appv2 resources: document the fact that the apt resource may create a phpversion setting when the dependencies contain php packages 2023-02-03 02:41:28 +01:00
Alexandre Aubin
13d4e16e7d helpers/appsv2: replacement of __PHPVERSION__ should use the phpversion setting, not YNH_PHP_VERSION 2023-02-03 02:25:36 +01:00
Alexandre Aubin
3f2dbe8754 Update changelog for 11.1.5.2 2023-02-02 23:59:08 +01:00
Alexandre Aubin
9b7668dab0 helpers: fix remaining __FINALPATH__ in php template (note that this is backward compatible because ynh_add_config will replace __INSTALL_DIR__ by $finalpath if $finalpath exists... 2023-02-02 23:57:24 +01:00
Alexandre Aubin
ba4f192557 maintenance: new year, update copyright header 2023-02-02 23:51:14 +01:00
Alexandre Aubin
f2e01e7a4a ci: tweak rules for Black and translation fixes because that's really too much flood x_x 2023-02-02 23:51:14 +01:00
Alexandre Aubin
cdae5ad111
Merge pull request #1584 from YunoHost/ci-format-dev
[CI] Format code with Black
2023-02-02 23:45:05 +01:00
yunohost-bot
ca3fb85286 [CI] Format code with Black 2023-02-02 22:43:47 +00:00
Alexandre Aubin
d32fd89aea Update changelog for 11.1.5.1 2023-02-02 23:41:19 +01:00
Alexandre Aubin
4a3cfd994f
Merge pull request #1583 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-02-02 23:22:39 +01:00
Eryk Michalak
dd49ed2154 Translated using Weblate (Polish)
Currently translated at 9.1% (69 of 753 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pl/
2023-02-02 23:21:21 +01:00
Éric Gaspar
98fe846886 Translated using Weblate (French)
Currently translated at 100.0% (753 of 753 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2023-02-02 23:21:21 +01:00
ButterflyOfFire
80b38d0e8a Translated using Weblate (Arabic)
Currently translated at 22.7% (171 of 753 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ar/
2023-02-02 23:21:21 +01:00
Alexandre Aubin
2b2d49a504 appv2: fix env not including vars for v1->v2 upgrade 2023-02-02 23:20:52 +01:00
Alexandre Aubin
1c95bcff09 appv2: safety-backup-before-upgrade should only contain the app 2023-02-02 23:20:52 +01:00
Alexandre Aubin
8090acb158 backup: add name of the backup in create/delete message, otherwise that creates some spooky messages with 'Backup created' directly followed by 'Backup deleted' during safety-backup-before-upgrade in v2 apps 2023-02-02 23:20:52 +01:00
Alexandre Aubin
3110460a40 appv2: resource upgrade will tweak settings, we have to re-update the env_dict after upgrading resources 2023-02-02 23:20:52 +01:00
Alexandre Aubin
a9ac55e4a5 log/appv2: don't dump all settings in log metadata 2023-02-02 23:20:52 +01:00
Alexandre Aubin
e7d5d3942e
Merge pull request #1582 from fflorent/patch-1
Fixes $app unbound when running ynh_secure_remove
2023-02-02 16:36:08 +01:00
Florent
b9dc371a1c
Fixes $app unbound when running ynh_secure_remove
Fixes this issue: https://github.com/YunoHost/issues/issues/2138
2023-02-02 16:33:01 +01:00
Alexandre Aubin
82ec26b0d5
Merge pull request #1581 from YunoHost/ci-autofix-translated-strings-dev
[CI] Reformat / remove stale translated strings
2023-02-02 15:32:04 +01:00
yunohost-bot
6372bd3d4e [CI] Reformat / remove stale translated strings 2023-02-02 14:03:54 +00:00
Éric Gaspar
9f60913bf8
Merge pull request #1 from YunoHost/dev
fetch
2023-02-02 14:41:56 +01:00
Alexandre Aubin
7c4c3188e4 Unused import 2023-02-02 14:37:17 +01:00
Alexandre Aubin
895ce755bc
Merge pull request #1577 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-02-02 14:36:13 +01:00
Alexandre Aubin
f91920699d
Merge pull request #1580 from YunoHost/ci-format-dev
[CI] Format code with Black
2023-02-02 14:35:49 +01:00
yunohost-bot
3577956c06 [CI] Format code with Black 2023-02-02 13:35:03 +00:00
José M
7e9678622a Translated using Weblate (Galician)
Currently translated at 99.6% (750 of 753 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2023-02-02 14:15:04 +01:00
Éric Gaspar
dabf86be77 Translated using Weblate (French)
Currently translated at 100.0% (753 of 753 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2023-02-02 14:15:04 +01:00
ButterflyOfFire
7ac6471b00 Translated using Weblate (Arabic)
Currently translated at 22.0% (166 of 753 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ar/
2023-02-02 14:15:04 +01:00
ppr
9004cc7615 Translated using Weblate (French)
Currently translated at 99.6% (750 of 753 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2023-02-02 14:15:04 +01:00
Alexandre Aubin
0826a54189 debian: Bump moulinette/ssowat requirement to 11.1 2023-02-02 14:14:35 +01:00
Alexandre Aubin
c2c0a66cdf Upate changelog for 11.1.5 2023-02-01 20:22:56 +01:00
Alexandre Aubin
314d27bec1 Fix flake8 complains 2023-02-01 20:21:19 +01:00
Alexandre Aubin
452ba8bb9a Don't try restarting metronome if no domain configured for it 2023-02-01 18:39:05 +01:00
Alexandre Aubin
daa9eb1cab Duplicate import 2023-02-01 18:31:13 +01:00
Alexandre Aubin
8d2a0cf72d
Merge pull request #1579 from YunoHost/ci-format-dev
[CI] Format code with Black
2023-02-01 18:26:56 +01:00
Axolotle
480f7a43ef
fix domain_config.toml typos in conditions 2023-02-01 18:13:07 +01:00
yunohost-bot
b943c69c8b [CI] Format code with Black 2023-02-01 17:10:08 +00:00
Alexandre Aubin
ade92e431d diagnosis: we can't yield an ERROR if there's no IPv6, otherwise that blocks all subsequent network-related diagnoser because of the dependency system ... 2023-02-01 17:55:32 +01:00
Alexandre Aubin
971b1b044e Update changelog for 11.1.4.1 2023-02-01 17:11:31 +01:00
Alexandre Aubin
c990cee630 metronome: Auto-enable/disable metronome if there's no/at least one domain configured for XMPP 2023-01-31 18:17:53 +01:00
Alexandre Aubin
456b8857ef
Merge pull request #1578 from tituspijean/enh-ynh_setup_source
Output checksums if ynh_setup_source fails
2023-01-31 18:17:43 +01:00
tituspijean
7dd2b41eef
Print size in error message if ynh_setup_source checksum fails
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2023-01-31 18:07:25 +01:00
tituspijean
90aa55599d
Output checksums if ynh_setup_source fails
during their verification.
2023-01-31 17:56:32 +01:00
Alexandre Aubin
0eef27c86f
Merge pull request #1576 from YunoHost/ci-format-dev
[CI] Format code with Black
2023-01-30 18:42:19 +01:00
yunohost-bot
2d024557a5 [CI] Format code with Black 2023-01-30 17:34:24 +00:00
Alexandre Aubin
82d30f02e2 debian: don't dump upgradable apps during postinst's catalog update 2023-01-30 17:46:29 +01:00
Alexandre Aubin
26e539fea6 Update changelog for 11.1.4 2023-01-30 16:31:42 +01:00
Alexandre Aubin
396b0f4ef2
Merge pull request #1451 from Tagadda/enh-ipv6-only
Add a global setting for DNS exposure given the IP version
2023-01-30 16:24:05 +01:00
Alexandre Aubin
7ff19b78b5
Merge branch 'dev' into enh-ipv6-only 2023-01-30 16:23:44 +01:00
Alexandre Aubin
56d3b4762b dns_exposure setting: add setting description + help 2023-01-30 16:18:15 +01:00
Alexandre Aubin
b8f87e372d dns_exposure setting: we don't want to regenconf nginx/postfix when values change 2023-01-30 16:14:49 +01:00
Alexandre Aubin
78036b555e Update changelog for 11.1.3.1 2023-01-30 15:48:10 +01:00
Alexandre Aubin
d698908cca
Merge pull request #1575 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-01-30 15:43:37 +01:00
Alperen İsa Nalbant
31bc4d4f43 Translated using Weblate (Turkish)
Currently translated at 2.2% (17 of 750 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/tr/
2023-01-30 15:40:28 +01:00
Alexandre Aubin
76f7577a50
Merge pull request #1573 from YunoHost/ci-autofix-translated-strings-dev
[CI] Reformat / remove stale translated strings
2023-01-30 15:40:21 +01:00
Alexandre Aubin
de8859f78b
Merge branch 'dev' into ci-autofix-translated-strings-dev 2023-01-30 15:40:13 +01:00
Alexandre Aubin
c48055157d
Merge pull request #1574 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-01-29 19:45:05 +01:00
cristian amoyao
fd4ab9620c Translated using Weblate (Spanish)
Currently translated at 100.0% (750 of 750 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/es/
2023-01-26 06:14:04 +01:00
quiwy
36205a7b4c Translated using Weblate (Spanish)
Currently translated at 100.0% (750 of 750 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/es/
2023-01-26 06:14:04 +01:00
yunohost-bot
c299841194 [CI] Reformat / remove stale translated strings 2023-01-24 17:19:38 +00:00
Alexandre Aubin
e28d8a9fe5 i18n: funky fr translation 2023-01-24 17:54:51 +01:00
Alexandre Aubin
54ecbd5131
Merge pull request #1565 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-01-24 17:51:33 +01:00
Alexandre Aubin
ed9630c47b
Merge branch 'dev' into weblate-yunohost-core 2023-01-24 17:51:21 +01:00
Alexandre Aubin
dafdf1c4ba i18n: typo in fr string 2023-01-24 17:47:04 +01:00
xabirequejo
cba36d2cf5 Translated using Weblate (Basque)
Currently translated at 98.2% (737 of 750 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2023-01-24 14:41:57 +01:00
Éric Gaspar
94b1338dc6 Translated using Weblate (French)
Currently translated at 100.0% (750 of 750 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2023-01-23 15:18:50 +01:00
Éric Gaspar
3c6ab69ae6 Translated using Weblate (French)
Currently translated at 100.0% (751 of 751 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2023-01-23 15:18:50 +01:00
cristian amoyao
908fa10357 Translated using Weblate (Spanish)
Currently translated at 96.9% (727 of 750 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/es/
2023-01-23 15:18:50 +01:00
Weblate
0d279baa2c Added translation using Weblate (Lithuanian) 2023-01-23 15:18:50 +01:00
José M
087030ac7f Translated using Weblate (Galician)
Currently translated at 99.7% (748 of 750 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2023-01-23 15:18:50 +01:00
ppr
ec22c2ad1f Translated using Weblate (French)
Currently translated at 99.0% (743 of 750 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2023-01-23 15:18:50 +01:00
ButterflyOfFire
12d4c16309 Translated using Weblate (Arabic)
Currently translated at 19.0% (143 of 750 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ar/
2023-01-23 15:18:50 +01:00
ppr
b29ee31c7a Translated using Weblate (French)
Currently translated at 99.0% (743 of 750 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2023-01-23 15:18:50 +01:00
Kayou
c444dee4fe
add xmpp-upload. and muc. server_name only if xmpp_enabled is enabled 2023-01-23 15:18:44 +01:00
Tagada
e00d60b049
Apply suggestions from code review
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2023-01-21 13:40:04 +01:00
Alexandre Aubin
5a412ce93c Update changelog for 11.1.3 2023-01-19 23:09:50 +01:00
Alexandre Aubin
a5de20d757 ci: friskies?⁷ 2023-01-19 19:06:44 +01:00
Alexandre Aubin
27305fe3fc ci: friskies?⁶ 2023-01-19 18:48:44 +01:00
Alexandre Aubin
a568c7eecd ci: friskies?⁵ 2023-01-19 18:36:38 +01:00
Alexandre Aubin
ece8d65601 ci: friskies?⁴ 2023-01-19 18:27:34 +01:00
Alexandre Aubin
bf07cd6c47 ci: friskies?³ 2023-01-19 18:14:46 +01:00
Alexandre Aubin
a658336476 ci: add some boring debugging to have a clear view of where the .deb are -_-' 2023-01-19 17:54:13 +01:00
Alexandre Aubin
312ded8873 ci: friskies?² 2023-01-19 17:35:47 +01:00
Alexandre Aubin
7addad59f0 ci: friskies? 2023-01-19 17:11:23 +01:00
Alexandre Aubin
48eeae4e1b
Merge pull request #1572 from YunoHost/ci-autofix-translated-strings-dev
[CI] Reformat / remove stale translated strings
2023-01-19 17:03:21 +01:00
Alexandre Aubin
71be74ffe2 ci: Attempt to fix the CI, gitlab-ci had some changes related to artefacts paths 2023-01-19 17:01:31 +01:00
Alexandre Aubin
be5b1c1b69 debian: refresh catalog upon package upgrade 2023-01-19 17:01:31 +01:00
yunohost-bot
b41d623ed4 [CI] Reformat / remove stale translated strings 2023-01-19 15:53:22 +00:00
Alexandre Aubin
95f98a9c68
ipexposuresetting: replace confusing negations with explicit 'in' 2023-01-19 16:45:21 +01:00
Alexandre Aubin
285200a2c7
Merge pull request #1538 from YunoHost/change-loginShell
be able to change the loginShell of a user
2023-01-19 16:25:06 +01:00
Alexandre Aubin
13be9af65f
Simplify code 2023-01-19 16:24:50 +01:00
Kay0u
36b0f58993
rewrite list_shells 2023-01-19 11:15:02 +01:00
Alexandre Aubin
f1c7c3d237
Merge pull request #1570 from ericgaspar/dev
MySQL database backup does not include procedures.
2023-01-16 17:41:00 +01:00
Éric Gaspar
e73209b7c4 Add --routines flag 2023-01-16 16:58:18 +01:00
Alexandre Aubin
f17e5df173
Merge pull request #1568 from YunoHost/fix-remove-debug-test
[fix] Remove some debug test
2023-01-13 12:45:31 +01:00
ljf (zamentur)
17d8700000
[fix] Remove some debug test 2023-01-13 10:50:14 +01:00
Alexandre Aubin
edd187eb90
Merge pull request #1566 from methbkts/patch-1
chore: update actions version to use node 16 version
2023-01-12 15:55:00 +01:00
Metin Bektas
5db49173f9
chore: update actions version to use node 16 version 2023-01-12 14:49:58 +00:00
Alexandre Aubin
2b6465d36d
Merge pull request #1563 from YunoHost/ci-format-dev
[CI] Format code with Black
2023-01-10 14:40:07 +01:00
Alexandre Aubin
394907ff0d Update changlog for 11.1.2.2 2023-01-10 13:24:31 +01:00
Alexandre Aubin
4615d7b7b8 debian: regen ssowatconf during package upgrade 2023-01-10 13:23:03 +01:00
YunoHost Bot
28256f39de
[CI] Reformat / remove stale translated strings (#1557)
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2023-01-10 13:12:41 +01:00
Alexandre Aubin
20804cb0b5
Merge pull request #1560 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-01-10 13:11:22 +01:00
Tagadda
e82849492b zblerg 2023-01-10 10:37:40 +01:00
Tagadda
1a07839b5f diagnosis 2023-01-10 10:37:40 +01:00
Tagadda
28e4b45806 oops again... 2023-01-10 10:37:40 +01:00
Tagadda
c4c78f5daa oops 2023-01-10 10:37:40 +01:00
Tagadda
f4b396219c Clarify conditions 2023-01-10 10:37:40 +01:00
Tagadda
029c3b7686 Change to select 2023-01-10 10:37:40 +01:00
Tagadda
ea20b1581d enh: ipv6 only global setting 2023-01-10 10:37:40 +01:00
ljf
1e0fe76672
[fix] Test 2023-01-10 10:25:30 +01:00
yunohost-bot
8859038a41 [CI] Format code with Black 2023-01-10 01:30:51 +00:00
ppr
27d6106259 Translated using Weblate (French)
Currently translated at 99.2% (744 of 750 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2023-01-10 00:49:02 +01:00
ppr
7ceda87692 Translated using Weblate (French)
Currently translated at 99.2% (744 of 750 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2023-01-10 00:49:02 +01:00
Éric Gaspar
4c17220764 Translated using Weblate (French)
Currently translated at 100.0% (743 of 743 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2023-01-10 00:49:02 +01:00
Alexandre Aubin
25c10166cf apps: fix trick to find the default branch from git repo @_@ 2023-01-10 00:48:44 +01:00
Alexandre Aubin
f21fbed2f7 configpanel: stop the madness of returning a 500 error when trying to load config panel 0.1 ... otherwise this will crash the new app info view ... 2023-01-10 00:42:40 +01:00
Alexandre Aubin
683421719f configpanel: key 'type' may not exist? 2023-01-10 00:39:54 +01:00
Alexandre Aubin
b37d4baf64 Fix boring issues in tools_upgrade 2023-01-10 00:18:23 +01:00
Alexandre Aubin
37b424e968 Update changelog for 11.1.2.1 2023-01-10 00:00:07 +01:00
Alexandre Aubin
f258eab6c2 ssowat: add use_remote_user_var_in_nginx_conf flag on permission 2023-01-09 23:58:45 +01:00
YunoHost Bot
b9be18c781
[CI] Format code with Black (#1562) 2023-01-08 15:52:48 +01:00
Alexandre Aubin
a6db52b7b4 apps: don't clone 'master' branch by default, use git ls-remote to check what's the default branch instead 2023-01-08 14:59:10 +01:00
ljf (zamentur)
ab2d10b99d
Merge branch 'dev' into dyndns-password 2023-01-08 01:08:57 +01:00
ljf
a21567b27d
[enh] Semantic 2023-01-08 00:35:34 +01:00
ljf (zamentur)
e7a0e65903
[enh] Revive the old auto documentation of API with swagger (#1483)
* [enh] Revive the old auto documentation of API with swagger

* [fix] RequestBody versus params in auto apidoc

* [fix] Auto api doc no need of Headers on other than post

* [fix] Remove Authentication from swagger API

* Redelete bash completion

* [fix] Delete file

* Delete openapi.json

* Delete doc/swagger

* Add swagger stuff and bashcompletion to gitignore

Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2023-01-06 22:54:45 +01:00
Alexandre Aubin
dd33476fac i18n: fix (un)defined string issues 2023-01-06 21:33:36 +01:00
Alexandre Aubin
f2eef6eefe
Merge pull request #1561 from YunoHost/ci-format-dev
[CI] Format code with Black
2023-01-06 21:28:19 +01:00
yunohost-bot
9bf2b0b546 [CI] Format code with Black 2023-01-06 06:00:05 +00:00
Alexandre Aubin
cddfafaa55 app resource: fix boring test edge case related to the initial properties object being modified 2023-01-06 03:50:22 +01:00
Alexandre Aubin
61a6d5bbac Update changelog for 11.1.2 2023-01-06 00:29:25 +01:00
Alexandre Aubin
faa74c4063 Merge branch '11.1.1.2' into dev 2023-01-06 00:19:48 +01:00
Alexandre Aubin
c10ef82578 app config: Commenting out failing tests because apparently nobody can take 10 minutes to fix the damn test, so let's wait for it to fail in production then ... 2023-01-06 00:11:50 +01:00
Alexandre Aubin
b06d7c41ac
Merge pull request #1526 from YunoHost/enh-apps-v2
Enh apps v2
2023-01-06 00:03:12 +01:00
Alexandre Aubin
02abcd41f9 app resources: Fix tests 2023-01-05 23:57:42 +01:00
Alexandre Aubin
e54bf2ed67 appv2: fix pre-upgrade version check 2023-01-05 20:50:43 +01:00
Alexandre Aubin
95173e5bde
Merge branch 'dev' into enh-apps-v2 2023-01-05 19:39:13 +01:00
axolotle
946c0bcf7d fix app_instance_name var + formatting 2023-01-05 20:35:47 +01:00
Alexandre Aubin
0ac8e66acf
Don't take lock for read/GET operations (#1554) 2023-01-05 19:13:30 +01:00
Alexandre Aubin
7a35a3a671 appv2: implement dismiss logic for app notifications 2023-01-04 20:22:49 +01:00
Fabian Wilkens
3d6a1876d4
Fix yunopaste (#1558)
* Update yunopaste

* Update bin/yunopaste

Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2023-01-04 18:59:11 +01:00
Alexandre Aubin
d0d0d3e0da appv2: cosmetic, having the notification name is weird, it's gonna be pretty much always just 'main' 2023-01-04 01:18:06 +01:00
Alexandre Aubin
2f1ddb1edf appv2: simplify the expected notification file/folder structure in apps 2023-01-04 01:16:47 +01:00
Alexandre Aubin
eacb1dc0e6
Merge pull request #1556 from YunoHost/applogos
Yoloimplementation of app logo support (require change in app catalog build)
2023-01-03 16:34:02 +01:00
Alexandre Aubin
f124747fc6
Merge pull request #1549 from YunoHost/ci-format-dev
[CI] Format code with Black
2023-01-03 16:03:20 +01:00
Alexandre Aubin
94205baf15
Merge pull request #1550 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2023-01-03 16:03:03 +01:00
Rafael Fontenelle
d2ae1f7841 Translated using Weblate (Portuguese)
Currently translated at 25.1% (187 of 743 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pt/
2023-01-03 16:02:24 +01:00
José M
724361cdda Translated using Weblate (Galician)
Currently translated at 99.8% (742 of 743 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2023-01-03 16:02:24 +01:00
ppr
40328c13e6 Translated using Weblate (French)
Currently translated at 99.7% (741 of 743 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2023-01-03 16:02:24 +01:00
Jose Riha
84d254de0b Translated using Weblate (Slovak)
Currently translated at 32.4% (241 of 743 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2023-01-03 16:02:24 +01:00
Alexandre Aubin
b3e56ce763
Merge pull request #1555 from selfhoster1312/no-disable-avahi
Don't disable avahi-daemon by force in conf_regen
2023-01-03 16:01:52 +01:00
Alexandre Aubin
bb6f8ef41c
Merge pull request #1450 from zeroheure/patch-1
Fix flag case sensitivity in dovecot and rspamd sieve filter
2023-01-03 15:07:43 +01:00
Alexandre Aubin
e9b5ec90a4 Yoloimplementation of app logo support (require change in app catalog build) 2023-01-03 00:46:14 +01:00
selfhoster1312
82cb549daf Don't disable avahi-daemon by force in conf_regen 2023-01-01 16:50:55 +01:00
Alexandre Aubin
7d9984c109 Fix a bunch of inconsistency or variable not properly replaced between final_path/install_dir 2022-12-26 15:37:28 +01:00
yunohost-bot
5d0ce8d2a8 [CI] Format code with Black 2022-12-23 20:08:53 +00:00
Alexandre Aubin
ba60ece609 cli: reflect changes in moulinette 2022-12-23 20:35:02 +01:00
Alexandre Aubin
6d4659a782 app resources: fix ambiguity for db resource 'type' property 2022-12-22 23:13:20 +01:00
Alexandre Aubin
df8f14eec6 app resources: implement logic for port 'exposed' and 'fixed' options 2022-12-22 23:13:10 +01:00
Alexandre Aubin
ed77bcc29a Friskies 2022-12-22 05:05:43 +01:00
Alexandre Aubin
4775b40b95 Hmpf 2022-12-22 01:15:54 +01:00
Alexandre Aubin
8ab28849a1 app resource: handle the --purge logic for data_dir removal 2022-12-21 23:11:09 +01:00
Alexandre Aubin
a50e73dc0f app resources: implement permission update 2022-12-21 22:29:31 +01:00
Alexandre Aubin
d7ee1c23f3 certificate: be more resilient when mail cant be sent to root for some reason .. 2022-12-21 20:43:30 +01:00
Alexandre Aubin
fa2ef3e7ec appv2: better error handling for app resources provisioning/deprovisioning/update failures 2022-12-21 20:39:10 +01:00
Alexandre Aubin
d4f4117f72
Merge branch 'dev' into enh-apps-v2 2022-12-21 18:47:23 +01:00
axolotle
66d99e7fcb _check_manifest_requirements: fix "disk" req message with least free space dir 2022-12-21 15:53:05 +01:00
axolotle
cf2e7e1295 _check_manifest_requirements: raise error for "packaging_format" check 2022-12-21 13:04:09 +01:00
Alexandre Aubin
94e3c7b756 config_get now returns an int :| 2022-12-20 23:28:40 +01:00
Alexandre Aubin
7c0bd231ed Mistakenly added 'example' panel because ran tests locally /o\ 2022-12-20 23:28:40 +01:00
Alexandre Aubin
59405ef4c6
Merge pull request #1552 from Ddataa/patch-1
Add postfix SASL login failure to a fail2ban jail
2022-12-20 23:20:58 +01:00
DDATAA
c565c2f328
Update 52-fail2ban 2022-12-20 19:25:14 +00:00
Alexandre Aubin
31794008c9 certificate/postfix: propagate postfix SNI stuff when renewing certificates 2022-12-20 20:23:23 +01:00
Alexandre Aubin
a480e937d2 quality: unused import 2022-12-20 19:54:28 +01:00
Alexandre Aubin
47b9b8b520 configpanels: fix inconsistent return format for boolean, sometimes 1/0, sometimes True/False -> force normalization of values when calling get() for a single setting from a config panel 2022-12-20 19:51:21 +01:00
DDATAA
b3940f199e
Create postfix-sasl.conf 2022-12-20 10:20:21 +00:00
DDATAA
34628d450f
Add SASL login failure jail
in order to prevent those 
```
Aug 31 22:23:52 hostxyz postfix/smtpd[38697]: warning: unknown[192.168.xx.xx]: SASL LOGIN authentication failed: authentication failure
Aug 31 22:23:52 hostxyz postfix/smtpd[38697]: lost connection after AUTH from unknown[192.168.xx.xx]
```
2022-12-20 10:15:00 +00:00
Alexandre Aubin
80a060dd94 postfix: fix typo breaking relays 2022-12-18 15:24:13 +01:00
Alexandre Aubin
19b0835030 tests: fix packaging 22.x breaking tests because dropped support for LegacyVersion ... + fix a couple edge cases 2022-12-09 02:45:03 +01:00
Alexandre Aubin
c38aba740c certificate: Improve trick to identify certs as self-signed 2022-12-09 01:32:37 +01:00
Alexandre Aubin
d2417c33de slapd: fix issue where sudo doesn't work because sudo-ldap doesn't create /etc/sudo-ldap.conf :/ 2022-12-08 18:33:03 +01:00
Alexandre Aubin
19aa6fcbef
Merge pull request #1548 from YunoHost/ci-format-dev
[CI] Format code with Black
2022-12-08 04:06:55 +01:00
yunohost-bot
3a8ae5be86 [CI] Format code with Black 2022-12-08 02:08:18 +00:00
Alexandre Aubin
ea5c88ca98 domain config: add help text for default webapp 2022-12-08 02:37:51 +01:00
Alexandre Aubin
57c36a668d appv2: for app v1 backward compat, don't set arbitrary values for ram/disk usage, use '?' instead 2022-12-07 21:12:54 +01:00
Alexandre Aubin
70a2251588 Merge branch 'dev' into enh-apps-v2 2022-12-07 19:36:52 +01:00
Alexandre Aubin
a7946cf0e2
Merge pull request #1543 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2022-12-07 19:35:22 +01:00
quiwy
65f0b80ffa Translated using Weblate (Spanish)
Currently translated at 90.4% (669 of 740 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/es/
2022-12-07 19:33:28 +01:00
ppr
50bec12ec6 Translated using Weblate (French)
Currently translated at 99.8% (739 of 740 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2022-12-07 19:33:28 +01:00
xabirequejo
830d5024be Translated using Weblate (Basque)
Currently translated at 98.6% (729 of 739 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2022-12-07 19:33:28 +01:00
Luis H. Porras
0bfd3d752f Translated using Weblate (Spanish)
Currently translated at 85.7% (634 of 739 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/es/
2022-12-07 19:33:28 +01:00
José M
fa19006d26 Translated using Weblate (Galician)
Currently translated at 99.8% (739 of 740 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2022-12-07 19:33:28 +01:00
Tymofii-Lytvynenko
25f7764dab Translated using Weblate (Ukrainian)
Currently translated at 99.8% (739 of 740 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2022-12-07 19:33:28 +01:00
Tymofii-Lytvynenko
9cd349a5aa Translated using Weblate (Ukrainian)
Currently translated at 97.8% (724 of 740 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2022-12-07 19:33:28 +01:00
Alexandre Aubin
eafe9a04f2
Merge pull request #1545 from YunoHost/theme-setting
Add a global setting to choose SSOwat's theme
2022-12-07 19:33:20 +01:00
Alexandre Aubin
24f25e0033 portal theme setting: missing hook to regen ssowatconf when changing value 2022-12-07 19:32:57 +01:00
Alexandre Aubin
75cb3cb2bd Add a virtual setting to enable passwordless sudo for admins 2022-12-07 19:24:50 +01:00
Alexandre Aubin
7e88230cd1
Merge pull request #1547 from YunoHost/ci-format-dev
[CI] Format code with Black
2022-12-06 23:52:08 +01:00
yunohost-bot
186e61903a [CI] Format code with Black 2022-12-06 22:36:37 +00:00
Alexandre Aubin
15dd9a6115
Merge pull request #1546 from YunoHost/fix-configpanel-hotspot
[fix] hotspot config panel fails in webadmin
2022-12-06 23:21:36 +01:00
Alexandre Aubin
b47d2c7476
Clarify the thing about current_value vs value 2022-12-06 23:21:28 +01:00
ljf (zamentur)
744f963508
[fix] Visible app condition not properly evaluate
If the config script returned structured data
2022-12-06 22:08:13 +01:00
ljf (zamentur)
6de36183d3
[fix] hotspot config panel fails in webadmin 2022-12-06 20:39:54 +01:00
Alexandre Aubin
08521882ca Add a global setting to choose SSOwat's theme 2022-12-06 20:20:24 +01:00
Alexandre Aubin
83bdfab255
Merge pull request #1544 from YunoHost/ci-format-dev
[CI] Format code with Black
2022-12-04 19:08:02 +01:00
yunohost-bot
12672a4a20 [CI] Format code with Black 2022-12-04 18:03:47 +00:00
Alexandre Aubin
e1eec72cc9
Merge pull request #1163 from larchange/dev_on_muc
[muc subdomain] add to domain's certificate the alt subdomain muc
2022-12-04 18:37:21 +01:00
Alexandre Aubin
4d211335ed
Merge branch 'dev' into dev_on_muc 2022-12-04 18:36:25 +01:00
axolotle
700154ceb6 app_upgrade return post_install notif to API 2022-12-04 15:20:03 +01:00
axolotle
968687b512 move tools_update check for notif in _list_upgradable_apps helper 2022-12-04 15:02:32 +01:00
axolotle
6ae9108dec add --with-screenshot option for app_manifest + rename 'image' key to 'screenshot' 2022-12-04 14:42:07 +01:00
Axolotle
b17e00c31e
skip confirmation if ran from CLI in a non-interactive context
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2022-12-04 13:24:47 +01:00
Axolotle
d4d739bbe2
improve version check & rename check key
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2022-12-04 13:23:32 +01:00
Axolotle
92608c6ee3
normalize _extract_app_from_* manifest keys
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2022-12-04 13:19:11 +01:00
Axolotle
8d9605161c
add some comments
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2022-12-04 13:15:29 +01:00
Axolotle
34b191582a
rename 'check' boolean to 'passed'
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2022-12-04 13:12:42 +01:00
Alexandre Aubin
807c1b3794
Merge branch 'dev' into enh-apps-v2 2022-12-03 16:11:56 +01:00
Alexandre Aubin
3ff2d46889 Update changelog for 11.1.1.2 2022-12-03 15:57:53 +01:00
Alexandre Aubin
1cb5e43e7e group mailalias: the ldap class is in fact mailGroup, not mailAccount -_- 2022-12-03 15:57:16 +01:00
Alexandre Aubin
4b9e26b974 Update changelog for 11.1.1.1 2022-12-03 14:13:38 +01:00
Alexandre Aubin
46d6fab07b Fix again the legacy patch for yunohost user create @_@ 2022-12-03 14:12:49 +01:00
Alexandre Aubin
73cf0be3fd
Fix again the legacy patch for yunohost user create @_@ 2022-12-03 14:11:53 +01:00
Alexandre Aubin
9ac7c32393
Merge pull request #1541 from YunoHost/disable-unecessary-domain-features
domains: propagate mail/xmpp enable/disable toggle to actual system configs
2022-12-03 12:38:21 +01:00
Alexandre Aubin
3a172582be Update changelog for 11.1.1 2022-12-02 23:39:13 +01:00
Alexandre Aubin
d254fb1b05 legacy: auto-patch yunohost user create syntax in app scripts to use --fullname instead 2022-12-02 23:30:47 +01:00
Alexandre Aubin
0b4852a327
Merge pull request #1542 from YunoHost/ci-format-dev
[CI] Format code with Black
2022-12-01 23:28:15 +01:00
Alexandre Aubin
328d967ca8
Merge pull request #1527 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2022-12-01 23:27:53 +01:00
André Koot
59fc2ddba4 Translated using Weblate (Dutch)
Currently translated at 12.4% (92 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/nl/
2022-12-01 23:23:09 +01:00
Tymofii-Lytvynenko
fff6e7b5af Translated using Weblate (Ukrainian)
Currently translated at 98.1% (724 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2022-12-01 23:23:09 +01:00
Tymofii-Lytvynenko
19d3dd8c9a Translated using Weblate (Ukrainian)
Currently translated at 91.8% (678 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2022-12-01 23:23:09 +01:00
José M
479c45b9a3 Translated using Weblate (Galician)
Currently translated at 99.8% (737 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2022-12-01 23:23:09 +01:00
Christian Wehrli
58f0c8bf04 Translated using Weblate (German)
Currently translated at 91.7% (677 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2022-12-01 23:23:09 +01:00
ButterflyOfFire
5c9d690fe3 Translated using Weblate (Arabic)
Currently translated at 18.0% (133 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ar/
2022-12-01 23:23:08 +01:00
Christian Wehrli
321c9befec Translated using Weblate (German)
Currently translated at 91.1% (673 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2022-12-01 23:23:08 +01:00
quiwy
ab23742b28 Translated using Weblate (Spanish)
Currently translated at 85.5% (631 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/es/
2022-12-01 23:23:08 +01:00
Christian Wehrli
435bbcf679 Translated using Weblate (German)
Currently translated at 91.0% (672 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2022-12-01 23:23:08 +01:00
Éric Gaspar
cecfe96f01 Translated using Weblate (French)
Currently translated at 99.8% (737 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2022-12-01 23:23:08 +01:00
Christian Wehrli
a9692afa1e Translated using Weblate (German)
Currently translated at 90.6% (669 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2022-12-01 23:23:08 +01:00
Christian Wehrli
7af98055f6 Translated using Weblate (German)
Currently translated at 90.3% (667 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2022-12-01 23:23:08 +01:00
Christian Wehrli
49231bf7cb Translated using Weblate (German)
Currently translated at 89.4% (660 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2022-12-01 23:23:08 +01:00
Christian Wehrli
22651b2c3f Translated using Weblate (German)
Currently translated at 88.0% (650 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2022-12-01 23:23:08 +01:00
Christian Wehrli
47c0479ccf Translated using Weblate (German)
Currently translated at 87.1% (643 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2022-12-01 23:23:08 +01:00
Christian Wehrli
e2a1accb27 Translated using Weblate (German)
Currently translated at 86.9% (642 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2022-12-01 23:23:08 +01:00
Christian Wehrli
8e3168cfbc Translated using Weblate (German)
Currently translated at 86.5% (639 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2022-12-01 23:23:08 +01:00
xabirequejo
7492aa8437 Translated using Weblate (Basque)
Currently translated at 98.7% (729 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2022-12-01 23:23:08 +01:00
lee
df31d4cb84 Translated using Weblate (Chinese (Simplified))
Currently translated at 72.2% (533 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/zh_Hans/
2022-12-01 23:23:08 +01:00
xabirequejo
9a7af38d01 Translated using Weblate (Basque)
Currently translated at 98.6% (728 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2022-12-01 23:23:08 +01:00
lee
61b65cbf25 Translated using Weblate (Chinese (Simplified))
Currently translated at 71.4% (527 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/zh_Hans/
2022-12-01 23:23:08 +01:00
Éric Gaspar
cc4e6d23d5 Translated using Weblate (French)
Currently translated at 99.0% (731 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2022-12-01 23:23:07 +01:00
xabirequejo
8eed073c63 Translated using Weblate (Basque)
Currently translated at 87.8% (648 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2022-12-01 23:23:07 +01:00
Weblate Admin
e06b6eb829 Added translation using Weblate (Portuguese (Brazil)) 2022-12-01 23:23:07 +01:00
José M
aefe27ace9 Translated using Weblate (Galician)
Currently translated at 99.8% (737 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2022-12-01 23:23:07 +01:00
Alexandre Aubin
94f21ea20e multimedia: fix edgecase where setfacl crashes because of broken symlinks 2022-12-01 23:22:46 +01:00
yunohost-bot
36d2456a87 [CI] Format code with Black 2022-12-01 21:18:47 +00:00
Alexandre Aubin
0f9d938853
groups: add mail-aliases management (#1539) 2022-12-01 21:34:36 +01:00
Augustin Trancart
f49c121b8c Better error message when psql is not there for database_exists (#992) 2022-11-29 22:23:35 +01:00
Alexandre Aubin
30a18a4ec0 domains: propagate mail/xmpp enable/disable toggle to actual system configurations 2022-11-27 15:51:20 +01:00
Alexandre Aubin
1202d11fd5 Hmf for some reason settings_list return a string for ints.. 2022-11-27 15:50:42 +01:00
Alexandre Aubin
a5a2a15351 Merge branch 'dev_on_muc' of github.com:larchange/yunohost into larchange-dev_on_muc 2022-11-27 03:02:42 +01:00
Alexandre Aubin
867632d355 domains: propagate mail/xmpp enable/disable toggle to actual system configurations 2022-11-27 02:54:35 +01:00
YunoHost Bot
e8963d3473
[CI] Format code with Black (#1540) 2022-11-27 01:01:58 +01:00
Alexandre Aubin
70bf38ce25 settings: fix output format for 'yunohost settings list' 2022-11-27 00:32:08 +01:00
Alexandre Aubin
080988d20e Fixes for the linter overlords 2022-11-26 23:56:27 +01:00
Alexandre Aubin
dc5fbd5555 Fix OCSP stapling ... but using Google resolver :| 2022-11-26 23:47:50 +01:00
axolotle
dcf4b85b21 app_manifest: return base64 screenshot to API 2022-11-26 15:48:18 +01:00
axolotle
d766e74a6a app_install: return post_install notifs to API 2022-11-26 13:52:19 +01:00
axolotle
f096a14189 app_config_get: do not raise error if no config panel found on API 2022-11-26 12:46:11 +01:00
axolotle
2d3546247a [kindafix] app_install: override manifest name by given label 2022-11-26 12:45:05 +01:00
Alexandre Aubin
ae5941116d
Allow apps to be installed on a path sharing a common base, eg /foo and /foo2 (#1537) 2022-11-26 00:17:26 +01:00
Kay0u
21c72ad1c5
fix linter 2022-11-24 17:30:05 +01:00
Kay0u
dda5095157
add actionsmap parameters 2022-11-24 15:14:06 +01:00
Kay0u
af1c1d8c02
check if the shell exists 2022-11-24 15:13:59 +01:00
Kay0u
7372dc2079
be able to change the loginShell of a user 2022-11-24 14:42:43 +01:00
axolotle
a54e976e21 app_install: update notifications display with helpers 2022-11-23 16:12:24 +01:00
axolotle
d0faf8a64a tools_update: add hydrated pre/post upgrade notifications 2022-11-23 16:12:24 +01:00
axolotle
c4432b7823 app_upgrade: display pre and post notifications 2022-11-23 16:12:24 +01:00
axolotle
cdcd967eb1 app: add notifications helpers 2022-11-23 16:12:24 +01:00
axolotle
ea3826fb8d add new type 'simple' to cli _ask_confirmation 2022-11-23 16:12:24 +01:00
axolotle
cbaa26f472 AppUpgrade: ask confirmation when not enough ram 2022-11-23 16:12:24 +01:00
axolotle
f405bfb613 [fix] catalog: default values for categories & antifeatures 2022-11-23 16:12:24 +01:00
axolotle
d3d18c5ff2 add locales & fix multi_instance check 2022-11-23 16:12:24 +01:00
axolotle
e202df4793 update checks for app requirements as generator 2022-11-23 16:12:24 +01:00
axolotle
727bef92e5 add ask_confirmation helper 2022-11-23 16:12:24 +01:00
axolotle
c45c0a98f2 add app quality, antifeatures and alternative to base manifest 2022-11-23 16:12:24 +01:00
axolotle
56de320a9a add antifeatures and alternatives to catalog's apps manifest 2022-11-23 16:12:24 +01:00
axolotle
eeec30d78c add antifeatures to app catalog 2022-11-23 16:12:24 +01:00
Alexandre Aubin
70a8225b1d diagnosis: make the dnsrecord diagnoser not complain about the damn 128 vs 0 stuff in CAA records 2022-11-21 18:53:09 +01:00
Alexandre Aubin
4aaa88968a
yunoprompt: don't display postinstall tip to members of all_users group (because they can't check if /etc/yunohost/installed exists, but if they're member of the all_users group, then postinstall was already done) 2022-11-20 19:56:47 +01:00
Alexandre Aubin
9bd981620c regenconf: fix yunohost hook incorectly tweaking mdns.yml ownership 2022-11-20 19:41:08 +01:00
Alexandre Aubin
68c6e58e9c
Fix tip to regen slapd conf 2022-11-20 18:12:28 +01:00
Alexandre Aubin
afdc2ad5b4 nginx: fix broken postinstall, yunohost_http_errors.conf.inc was not actually copied to /etc/nginx/conf.d. Moving to plain/ subfolder where all files in this folder are copied during nginx regenconf 2022-11-19 20:20:26 +01:00
YunoHost Bot
ad1748fa52
[CI] Format code with Black (#1536) 2022-11-19 19:11:47 +01:00
Axolotle
07d61a83ae
do not fetch catalogs registered with no url (#1535)
Do not fetch catalogs registered with no `url`
2022-11-19 18:53:54 +01:00
tituspijean
079c3fab00
Fix docker-image-extract script name (#1532)
* Fix docker-image-extract script name

* Update docker-image-extract

Use code from 95b3db8af8
2022-11-18 20:11:58 +01:00
Alexandre Aubin
a772153b64 Improve dpkg_is_broken instruction to also mention dpkg --audit 2022-11-18 20:03:02 +01:00
YunoHost Bot
5fc75d063c
[CI] Format code with Black (#1531) 2022-11-16 17:12:31 +01:00
Alexandre Aubin
ac6d68711c tools_update: add --allow-releaseinfo-change option to apt update to prevent the classic nightmare when debian changes from stable to oldstable 2022-11-16 17:01:04 +01:00
tituspijean
5063e12835
Add 502 custom error page (#1530) 2022-11-14 23:24:08 +01:00
mod242
c50f3771da
Add Webgo as Registrar (#1529)
Add Webgo as Registrar to support it via Lexicon
2022-11-14 19:57:49 +01:00
Alexandre Aubin
d6952046fc diagnosis: fix old typo in ip diagnoser 2022-11-06 19:35:20 +01:00
Alexandre Aubin
4f5cc166e2 ldap: re-allow member of the admins group to edit ldap db 2022-11-06 15:38:42 +01:00
Alexandre Aubin
fb7b780833
Merge pull request #1528 from YunoHost/ci-auto-update-n-v9.0.1
Upgrade n to version 9.0.1
2022-11-05 14:21:56 +01:00
yunohost-bot
c255c03193 Upgrade n to v9.0.1 2022-11-05 05:13:40 +00:00
Alexandre Aubin
3574e5a9bc doc: fix generate_helper_doc.py crashing because of vendor folder 2022-11-04 15:29:28 +01:00
Alexandre Aubin
a5ac82e25a Update changelog for 11.1.0.2 2022-11-04 13:14:32 +01:00
Alexandre Aubin
db30e9dd49
Merge pull request #1525 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2022-11-04 13:12:48 +01:00
Florian Masy
3bf144686f Translated using Weblate (French)
Currently translated at 97.0% (716 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2022-11-01 18:31:14 +01:00
Florian Masy
fea3ba1270 Translated using Weblate (French)
Currently translated at 96.6% (713 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2022-11-01 18:12:25 +01:00
ppr
9a6ae7814b Translated using Weblate (French)
Currently translated at 96.4% (712 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2022-11-01 18:05:38 +01:00
ppr
6b74f897fd Translated using Weblate (French)
Currently translated at 91.5% (676 of 738 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2022-11-01 15:50:47 +01:00
Weblate Admin
8ac760c2a9 Added translation using Weblate (Hebrew) 2022-10-31 16:49:10 +01:00
Alexandre Aubin
5394790f91 postfix: fix permission issue preventing to properly create sasl_passwd.db 2022-10-31 14:53:34 +01:00
Alexandre Aubin
cd43c8bd0d postfix: fix relay conf not triggered because new setting system now returns '1' and not 'True' 2022-10-31 14:53:10 +01:00
Alexandre Aubin
372a602378
Mypy gods are unhappy 2022-10-29 18:49:25 +02:00
Alexandre Aubin
ac1251a94b
Merge pull request #1522 from YunoHost/doc-sponsors
Add sponsors to the README
2022-10-29 17:41:01 +02:00
Alexandre Aubin
6c40b0cc9a
Merge pull request #1524 from YunoHost/ci-format-dev
[CI] Format code with Black
2022-10-27 18:08:24 +02:00
yunohost-bot
a2f82aba12 [CI] Format code with Black 2022-10-27 16:00:06 +00:00
Alexandre Aubin
8e4ddc00dc
Merge pull request #1521 from Salamandar/fix_domain_page
domain_info: Some apps don't have path
2022-10-27 16:26:53 +02:00
Alexandre Aubin
f3750598e3 global setting: make sure to run migration 25 prior to the regenconf 2022-10-27 16:20:08 +02:00
Alexandre Aubin
0026de50f9 Update changelog for 11.1.0.1 2022-10-27 15:49:15 +02:00
Alexandre Aubin
80cff4bfb6 Merge tag 'debian/11.0.10.2' into dev 2022-10-27 15:48:21 +02:00
Alexandre Aubin
0a24ceec5e Update changelog for 11.0.10.2 2022-10-27 15:47:03 +02:00
Alexandre Aubin
6f640c08a6 Add another trick to autorestart yunohost-api at the end of the upgrade when ran from the api itself... 2022-10-27 15:46:04 +02:00
Tagada
0b5d7bb899
Update README.md 2022-10-26 22:12:04 +02:00
Félix Piédallu
f952c4bcf7 domain_info: Some apps don't have path (non-web apps like synapse/borg), it triggers a KeyError. 2022-10-26 20:45:49 +02:00
Tagada
79274846f3
Update README.md 2022-10-26 19:06:20 +02:00
Tagada
2ddf4f5153
Update README.md 2022-10-26 19:05:55 +02:00
Tagada
6c52c91fe0
Update README.md 2022-10-26 19:05:29 +02:00
Tagada
485c6bb295
Update README.md 2022-10-26 19:05:13 +02:00
Tagada
5dfd2e2688
Update README.md 2022-10-26 19:04:29 +02:00
Tagada
749ddc238f
Update README.md 2022-10-26 19:03:56 +02:00
Tagada
92a4c033b1
test 2022-10-26 19:01:19 +02:00
Tagada
c695d059f5
test 2022-10-26 18:48:40 +02:00
Tagada
2d196f7b95
ça donne quoi ? 2022-10-26 18:46:39 +02:00
Alexandre Aubin
4d403ec86d Update changelog for 11.1 2022-10-25 22:43:08 +02:00
Alexandre Aubin
b27908a454
Merge pull request #1520 from YunoHost/ci-format-dev
[CI] Format code with Black
2022-10-25 01:07:48 +02:00
Alexandre Aubin
1971495f45 Cleanup stale i18n strings 2022-10-25 01:06:56 +02:00
yunohost-bot
7c05df05b7 [CI] Format code with Black 2022-10-24 16:59:10 +00:00
Alexandre Aubin
55baa2aa4a
Merge pull request #1502 from YunoHost/11.1
11.1
2022-10-24 17:58:04 +02:00
Alexandre Aubin
cd3bd89857 Fix missing i18n strings 2022-10-23 21:08:50 +02:00
Alexandre Aubin
db0e2ef3b2 Typo @_@ 2022-10-21 23:01:09 +02:00
Alexandre Aubin
5cfa0d3be8 questions: improve support for group question used in manifestv2 2022-10-18 20:10:42 +02:00
Alexandre Aubin
556e75ef08 catalog: autoreplace app level '?' to -1 for easier quality computation 2022-10-18 18:01:16 +02:00
Alexandre Aubin
933603ae1e Update changelog for 11.0.10.1 2022-10-17 23:57:44 +02:00
Alexandre Aubin
78a4cbacd1
Merge pull request #1519 from YunoHost/ci-format-dev
[CI] Format code with Black
2022-10-17 23:52:29 +02:00
yunohost-bot
85b501c9eb [CI] Format code with Black 2022-10-17 21:39:14 +00:00
Alexandre Aubin
472e925077 Fix trigger for yunohost-api restart after self-upgrade 2022-10-17 23:24:34 +02:00
Alexandre Aubin
2bf161e522 Update changelog for 11.0.10 2022-10-17 17:00:06 +02:00
Alexandre Aubin
0adff31dcb diagnosis: add reports when apt is configured with the 'testing' channel for yunohost, or with the 'stable' codename for debian 2022-10-17 16:48:37 +02:00
Alexandre Aubin
86e45f9cbc tools_update: also yield a boolean to easily know if there's a major yunohost upgrade pending + list of pending migrations (cf change in webadmin to encourage people to check the release note on the forum before yoloupgrading) 2022-10-17 16:47:49 +02:00
Alexandre Aubin
6f03bb62ce
Merge pull request #1518 from YunoHost/ynh_add_config
Not need to force $YNH_APP_BASEDIR
2022-10-14 22:48:25 +02:00
yalh76
fc8f433573 Not need to force $YNH_APP_BASEDIR 2022-10-13 01:04:59 +02:00
Alexandre Aubin
dbd0981b25
Merge pull request #1517 from YunoHost/improve-mostused-password-list
Improve most used password check list
2022-10-10 19:03:47 +02:00
Alexandre Aubin
9c308b1b4b
Merge pull request #1516 from YunoHost/merge-firstname-and-lastname
Merge firstname and lastname
2022-10-10 18:59:37 +02:00
Alexandre Aubin
5d608766e1
Merge pull request #1515 from YunoHost/root-password-change-as-virtual-global-setting
Implement a new 'virtual global setting' to change root password from…
2022-10-10 18:59:18 +02:00
Alexandre Aubin
aaa3a901d0 domain: don't assert domain exists in _get_parent_domain_of 2022-10-10 16:47:45 +02:00
Alexandre Aubin
581fe631fd Merge remote-tracking branch 'origin/11.1' into merge-firstname-and-lastname 2022-10-09 21:56:28 +02:00
Alexandre Aubin
42bcd5e6d3 Propagate changes to user_create() function in other test modules 2022-10-09 21:56:24 +02:00
Alexandre Aubin
928c8694b1 Merge remote-tracking branch 'origin/11.1' into root-password-change-as-virtual-global-setting 2022-10-09 21:02:11 +02:00
Alexandre Aubin
c5ab620673 Fix tests 2022-10-09 21:02:02 +02:00
Alexandre Aubin
e32fe7aa41 Moar oopsies 2022-10-09 20:52:20 +02:00
Alexandre Aubin
4822afb9d6 Fix postinstall test 2022-10-09 19:40:44 +02:00
Alexandre Aubin
b9036abcbc Improve most used password check list 2022-10-09 19:04:58 +02:00
Alexandre Aubin
3e8b05b971 Drop CONTRIBUTORS.md, unmaintained for 6 years... 2022-10-09 18:41:04 +02:00
Alexandre Aubin
bd7081baf2 maintenance: cleanup .py file headers + automate boring copyright headers... 2022-10-09 18:38:34 +02:00
Alexandre Aubin
f03b992c6a Friskies 2022-10-09 18:03:18 +02:00
Alexandre Aubin
e64e5b9c14 Big oopsie 2022-10-09 18:02:45 +02:00
Alexandre Aubin
2b3ec3ace8 helpers: fix issue parsing yunohost requirement from manifest 2022-10-09 17:02:41 +02:00
Alexandre Aubin
5347c6afeb Merge firstname and lastname info 2022-10-09 17:01:57 +02:00
Alexandre Aubin
a355f48580 domains: simplify domain config panel cert section 2022-10-08 19:21:36 +02:00
Alexandre Aubin
5addb2f68f Implement a new 'virtual global setting' to change root password from webadmin 2022-10-08 18:30:17 +02:00
axolotle
403efe4873 actionmap: add missing key in '/settings' api route 2022-10-07 21:06:59 +02:00
Alexandre Aubin
4b9c7922a7 i18n: moar wording tweaking 2022-10-07 17:59:05 +02:00
Alexandre Aubin
e968e748b6 i18n: moar wording tweaking 2022-10-07 17:51:04 +02:00
Alexandre Aubin
fe2ae7d591 i18n: define registrar_infos key 2022-10-07 17:04:15 +02:00
Alexandre Aubin
43b7a1a9a0
Merge pull request #1514 from YunoHost/get-parent
call _get_parent_domain_of to ensure getting any level parent
2022-10-07 17:03:18 +02:00
Alexandre Aubin
1fe507651b
domain: i18n for config panel section 2022-10-07 17:03:07 +02:00
axolotle
5cfbcd4c49 domaindns: update _get_parent_domain_of defaults and calls to 2022-10-07 18:08:25 +02:00
axolotle
0930548640 add title to DNS registrar section 2022-10-07 18:03:51 +02:00
Alexandre Aubin
3079f2f708 i18n: fix fr string for compress_tar_archives, full description is now in the _help 2022-10-07 16:52:54 +02:00
Alexandre Aubin
ef742124ea
Merge pull request #1434 from YunoHost/enh-domains
Ability to "list" domain as a tree structure, + add a new domain_info endpoint
2022-10-07 15:25:51 +02:00
Alexandre Aubin
b30962a44f domain_info: add 'topest_parent' info + fix small bug with return_self option for _get_parent_domain_of 2022-10-07 15:07:48 +02:00
Alexandre Aubin
435084c20b domain: _get_parent_domain_of call tweaking 2022-10-07 14:48:02 +02:00
Alexandre Aubin
4d025010c4 domain: add proper panel names in config panel 2022-10-07 14:21:21 +02:00
Alexandre Aubin
73a7f93740 domains: make the domain cache expire after 15 seconds to prevent inconsistencies between CLI and API 2022-10-07 14:19:15 +02:00
Alexandre Aubin
23b83b5ef7 Unused import 2022-10-07 13:59:54 +02:00
Alexandre Aubin
551095aa70
Merge pull request #1513 from YunoHost/ci-remove-stale-translated-strings-dev
[CI] Reformat / remove stale translated strings
2022-10-07 12:10:48 +02:00
yunohost-bot
19ca6f9855 [CI] Reformat / remove stale translated strings 2022-10-07 10:05:11 +00:00
Alexandre Aubin
f920ca7d6b
Merge pull request #1511 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2022-10-07 11:53:49 +02:00
Jose Riha
6f500c2145 Translated using Weblate (Slovak)
Currently translated at 33.4% (232 of 693 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2022-10-06 22:50:50 +02:00
Alexandre Aubin
6171379cfb
Merge pull request #1509 from YunoHost/upgrade_replace
Able to replace sources
2022-10-06 22:50:44 +02:00
Alexandre Aubin
5b3f0440be --replace -> --full_replace 2022-10-06 19:38:50 +02:00
Dante
0252a6fd53 [fix] Config panel nested bind statements 2022-10-06 14:20:49 +02:00
Alexandre Aubin
caf1534ce6 Typomg 2022-10-05 15:37:03 +02:00
Alexandre Aubin
1a543fe416 Fix acme_status / ACME_eligible 2022-10-05 15:35:51 +02:00
Alexandre Aubin
96233ea600 Rework domain_info 2022-10-05 15:07:03 +02:00
axolotle
81b90d79cb remove previous _get_parent_domain_of() 2022-10-05 16:14:07 +02:00
axolotle
7b7c5f0b13 changed cert acme status to a string to add 'unknown' status (when not diagnosed) 2022-10-05 16:14:07 +02:00
axolotle
d848837bc6 add new domain_info() command to get a domain's dns, certs and apps infos 2022-10-05 16:14:07 +02:00
axolotle
77471c4140 add tree option on domain_list() 2022-10-05 16:14:07 +02:00
axolotle
6001b0f7af rework domains cache logic 2022-10-05 16:14:07 +02:00
Alexandre Aubin
65d001c835
Merge branch 'dev' into 11.1 2022-10-05 14:28:51 +02:00
Alexandre Aubin
031e7c482e Merge remote-tracking branch 'origin/dev' into 11.1 2022-10-05 14:25:01 +02:00
Alexandre Aubin
e2838455e0 Moar i18n friskies 2022-10-05 14:18:21 +02:00
Alexandre Aubin
d1d203726b Merge remote-tracking branch 'origin/enh-actions' into 11.1 2022-10-04 22:33:28 +02:00
Alexandre Aubin
fe4f8b4d5e
not foo -> foo is None 2022-10-04 22:27:23 +02:00
Alexandre Aubin
a1795364b7
Merge pull request #1510 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2022-10-04 22:25:39 +02:00
Alexandre Aubin
463d76f867 domain/certs: fix bug where a self-signed cert would not get identified as a self-signed cert 2022-10-04 22:21:23 +02:00
Alexandre Aubin
702156554a Add more info during selsigned cert generation error to debug CI 2022-10-04 21:24:51 +02:00
Alexandre Aubin
1c06fd5017 configpanels: i18n for domain cert config panel 2022-10-04 17:29:54 +02:00
axolotle
6295374fdb configpanels: auto add i18n help for an arg if present in locales 2022-10-04 19:27:04 +02:00
axolotle
e4df838d9d cert: raise errors for cert install/renew 2022-10-04 18:12:10 +02:00
Alexandre Aubin
6fe8c1ad8f
Merge pull request #1408 from YunoHost/admins
Drop the 'admin' user, have 'admins' be a group of Yunohost users instead
2022-10-04 16:06:19 +02:00
Alexandre Aubin
35ab8a7c98 Unused imports 2022-10-04 16:05:45 +02:00
Alexandre Aubin
85b6d8554d Fix i18n issues / also we don't need operation logger for domain_action_run, already handled in subcalls 2022-10-04 13:04:30 +02:00
Alexandre Aubin
d7067c0b22 Friskies m0ar 2022-10-04 12:38:33 +02:00
Alexandre Aubin
ae73e94c3e Friskies pl0x? 2022-10-04 02:00:40 +02:00
Alexandre Aubin
6512bbf70c Moaaar friskies 2022-10-03 18:03:00 +02:00
Alexandre Aubin
aad576fdd0 mypy won't guess that 'question' does have an 'enabled' attr in that context é_è 2022-10-03 17:12:53 +02:00
Alexandre Aubin
18f64ce80b Moar friskies 2022-10-03 17:03:13 +02:00
axolotle
f1003939a9 configpanel: add 'enabled' prop evaluation for button 2022-10-03 16:13:30 +02:00
axolotle
3d4909bbf5 configpanel: misc fix + add section visible evaluation 2022-10-02 17:10:05 +02:00
ppr
d236113e40 Translated using Weblate (French)
Currently translated at 97.9% (679 of 693 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2022-10-01 22:19:29 +02:00
axolotle
9a3d65c313 update arg 'time' validation regex to allow 24 hours format 2022-10-01 20:19:51 +02:00
axolotle
35bac35bb0 add readonly prop for config panel arg to display a value 2022-10-01 20:18:32 +02:00
yalh76
37c2f941de Able to replace sources 2022-10-01 17:15:21 +02:00
Alexandre Aubin
acb0993bc9 Unhappy linter gods are unhappy 2022-09-30 19:35:15 +02:00
Alexandre Aubin
87447def38 admins/ldapauth: attempt to fix tests, root auth gets broken during slapd restart test 2022-09-30 19:31:04 +02:00
Alexandre Aubin
2199d60732 admins: change migration strategy, recreate 'admin' as a legacy regular user that will be encouraged to manually get rid of 2022-09-30 19:22:29 +02:00
Alexandre Aubin
70927d5e04 Update changelog for 11.0.9.15 2022-09-30 16:26:58 +02:00
Alexandre Aubin
14fb1cfd8d backup: Try to fix again the infamous issue where from_yunohost_version gets filled with 'BASH_XTRACEFD' 2022-09-30 16:20:52 +02:00
axolotle
3644937fff fix config domain syntax 2022-09-30 15:03:03 +02:00
axolotle
0838d443a1 normalize actionmap config API routes 2022-09-30 15:03:03 +02:00
Alexandre Aubin
0dc08c8f8c Apply suggestions from code review
Co-authored-by: Axolotle <nchesnais@mailoo.org>
2022-09-30 15:03:03 +02:00
Alexandre Aubin
40ad8ce25e configpanel: Implement 'hidden' domain_action_run route 2022-09-30 15:03:03 +02:00
Alexandre Aubin
c39f0ae3bc actionsmap: hide a bunch of technical commands from --help 2022-09-30 15:03:03 +02:00
Alexandre Aubin
47543b19b7 configpanels: Iterating on action POC to create a certificat section in domain config panels 2022-09-30 15:03:03 +02:00
Alexandre Aubin
90e3f3235c configpanels: Quick and dirty POC for config panel actions 2022-09-30 15:03:03 +02:00
Alexandre Aubin
b7bea608f6 Fix edge case where var would get undefined.. 2022-09-29 00:02:17 +02:00
Alexandre Aubin
784e454633
Merge pull request #1505 from YunoHost/docker_extract_image
Implement docker-image-extract
2022-09-28 17:21:47 +02:00
Alexandre Aubin
09e3cab52c Move docker-extract helper inside a 'full' vendor folder with LICENSE and README linking to original repo 2022-09-28 17:19:50 +02:00
Alexandre Aubin
68e2d01a85
Merge pull request #1503 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2022-09-28 16:06:00 +02:00
Alexandre Aubin
b0fd7ff856
Merge pull request #1507 from mooseyboots/en-corrections
edits to locales/en.json
2022-09-28 16:04:45 +02:00
Jose Riha
a289e4809d Translated using Weblate (Slovak)
Currently translated at 34.3% (238 of 693 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2022-09-26 22:58:32 +02:00
Alice Kile
f8b9563ac4 Translated using Weblate (Telugu)
Currently translated at 6.4% (45 of 693 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/te/
2022-09-25 20:04:45 +02:00
marty hiatt
5af946dbfe edits to locales/en.json -- up to the end of diagnosis 2022-09-20 11:51:34 +02:00
marty hiatt
51f95c8a5c edits to locales/en.json 2022-09-13 16:57:44 +02:00
Sedat Albayrak
9bc82d6b5f Translated using Weblate (Turkish)
Currently translated at 1.4% (10 of 693 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/tr/
2022-09-12 18:43:45 +02:00
Sedat Albayrak
df2a261d32 Translated using Weblate (Turkish)
Currently translated at 1.2% (9 of 693 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/tr/
2022-09-12 13:30:15 +02:00
ButterflyOfFire
7e8aa0a67d Translated using Weblate (Arabic)
Currently translated at 13.4% (93 of 693 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ar/
2022-09-12 13:30:15 +02:00
Alexandre Aubin
6294e1aa4f
Merge pull request #1506 from YunoHost/fix-lidswitch
[fix] Lidswitch if no reboot
2022-09-12 13:30:08 +02:00
ljf (zamentur)
b0411d5da9
[fix] Lidswitch if no reboot 2022-09-12 01:47:03 +02:00
yalh76
8f7a996800 Merge branch 'docker_extract_image' of https://github.com/YunoHost/yunohost into docker_extract_image 2022-09-07 20:02:47 +02:00
yalh76
18e4b010f0 Improving 2022-09-07 20:02:40 +02:00
yalh76
59dbeac5be
Update helpers/utils
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2022-09-07 19:37:20 +02:00
Alexandre Aubin
6a914fb2b5 Update changelog for 11.0.9.14 2022-09-07 13:09:35 +02:00
Alexandre Aubin
e51cdd987c helper ynh_get_ram: LANG= isn't enough to get en_US output, gotta use LC_ALL 2022-09-07 13:08:17 +02:00
yalh76
d0a0a8a9c9 Made myFile executable 2022-09-07 08:12:13 +02:00
yalh76
96d40556dd Simplification 2022-09-07 08:04:47 +02:00
yalh76
7695dede06 chmod +x 2022-09-07 07:44:25 +02:00
yalh76
102c6225ce Implement docker-image-extract 2022-09-07 07:22:04 +02:00
Alexandre Aubin
fc14f64821 admins: moar friskies? 2022-09-06 00:35:10 +02:00
Alexandre Aubin
98bd15ebf2 admins: moaaar fixes, moaaar 2022-09-05 18:37:22 +02:00
Alexandre Aubin
f6057d2572 dns: fix confusion on XMPP CNAME records for nohost.me & co domains 2022-09-05 18:23:37 +02:00
Alexandre Aubin
1d98604e88 admins: moar fixes 2022-09-05 17:39:08 +02:00
Alexandre Aubin
3758611d13 admins: bunch of fixes 2022-09-05 16:40:07 +02:00
Alexandre Aubin
888f1d8e55 admins: fix class decorator syntax? 2022-09-04 20:33:41 +02:00
Alexandre Aubin
1037508fb5
Merge branch '11.1' into admins 2022-09-04 20:28:59 +02:00
Alexandre Aubin
a2d0a1445d Merge branch 'dev' into admins 2022-09-04 20:25:42 +02:00
Alexandre Aubin
a2ac2005b5
Merge pull request #1289 from YunoHost/manifestv2
[enh] App manifest v2
2022-09-04 19:51:47 +02:00
Alexandre Aubin
dd59a85554 manifestv2: fix i18n 2022-09-04 19:51:16 +02:00
Alexandre Aubin
d01885ee06
Merge pull request #1459 from YunoHost/enh-global-settings-configpanel
[enh] Refactor global settings to use the new config panel framework
2022-09-04 19:42:28 +02:00
Alexandre Aubin
762aa937fd
Merge pull request #1477 from YunoHost/ci-auto-update-n-v9.0.0
Upgrade n to version 9.0.0
2022-09-04 19:41:55 +02:00
Alexandre Aubin
8e1e29bbd4 Update changelog for 11.0.9.13 2022-09-03 23:29:40 +02:00
Alexandre Aubin
a179b3dbf0 Merge branch 'buster' into dev 2022-09-03 23:24:48 +02:00
Alexandre Aubin
3c586159d2 Update changelog for 4.4.2.14 2022-09-03 23:20:20 +02:00
Alexandre Aubin
38234c9501
Merge branch 'dev' into enh-global-settings-configpanel 2022-09-03 22:33:46 +02:00
Alexandre Aubin
6f9e209315
Merge pull request #1500 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2022-09-03 22:26:29 +02:00
Alexandre Aubin
0d2cb690b3 manifestv2: moar test fixes 2022-09-03 16:35:09 +02:00
Alexandre Aubin
02b3a138b6 bullseye migration: improve autofix procedure for the libc6 hell 2022-09-03 12:41:09 +02:00
Alexandre Aubin
f6970ba403 manifestv2: Add doc about each resource type + script to create doc file 2022-09-03 01:19:16 +02:00
Alexandre Aubin
487ef303d8 Typo again ugh 2022-09-03 01:04:58 +02:00
xabirequejo
4cb075d0eb Translated using Weblate (Basque)
Currently translated at 100.0% (693 of 693 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2022-09-02 21:29:27 +00:00
José M
f3eafb1b33 Translated using Weblate (Galician)
Currently translated at 100.0% (693 of 693 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2022-09-02 21:29:27 +00:00
xabirequejo
c469757af9 Translated using Weblate (Basque)
Currently translated at 100.0% (693 of 693 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2022-09-02 21:29:27 +00:00
Alexandre Aubin
a92ed9afc1
Merge pull request #1501 from YunoHost/fix-delete-checksum-config
Fix ynh_delete_file_checksum in helpers/config
2022-09-02 23:29:15 +02:00
tituspijean
68b4d30986 Fix ynh_delete_file_checksum in helpers/config
no need for `--update_only`
2022-09-02 23:27:23 +02:00
Alexandre Aubin
74e745a291 Stupid typo >_> 2022-09-02 21:44:00 +02:00
Alexandre Aubin
28d0b6d891 Unused imports 2022-09-02 21:04:00 +02:00
Alexandre Aubin
ebe41411ad Unused imports 2022-09-02 21:03:25 +02:00
Alexandre Aubin
7bd5857b3c manifestv2: fix some FIXME, add some others @_@ 2022-09-02 21:01:39 +02:00
Alexandre Aubin
564c2de815 manifestv2: moar attempts to fix mypy errors 2022-09-02 20:34:41 +02:00
Alexandre Aubin
0610a1808b manifestv2: attempt to fix mypy errors é_è 2022-09-02 00:20:44 +02:00
Alexandre Aubin
e9190a6bd6 manifestv2: moar test fixes 2022-09-01 23:55:16 +02:00
Alexandre Aubin
4faeabefa2 manifestv2: moar test fixes 2022-09-01 21:51:48 +02:00
Alexandre Aubin
b77e811402 regenconf: add a timeout to curl inside dnsmasq regenconf to prevent being stuck too long when no network on the machine 2022-09-01 19:16:37 +02:00
Alexandre Aubin
f4cb20f081 manifestv2: try to fix a bunch of tests 2022-09-01 16:19:38 +02:00
Alexandre Aubin
6f0478b383 Merge branch 'dev' into manifestv2 2022-09-01 15:12:40 +02:00
Alexandre Aubin
e1cbe21cd1
Merge pull request #1499 from YunoHost/ci-remove-stale-translated-strings-dev
[CI] Reformat / remove stale translated strings
2022-09-01 13:08:43 +02:00
yunohost-bot
24f28ef87a [CI] Reformat / remove stale translated strings 2022-09-01 09:39:13 +00:00
Alexandre Aubin
796a00f692
Merge pull request #1498 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2022-09-01 11:27:26 +02:00
Jose Riha
c3eb455b5b Translated using Weblate (Slovak)
Currently translated at 33.9% (235 of 693 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2022-08-31 20:18:21 +00:00
Alexandre Aubin
7601492081 bullseye migration: remove derpy OVH repo... 2022-08-30 18:41:00 +02:00
Alexandre Aubin
503b90316f [fix] regenconf: fix a stupid issue with slapcat displaying an error message because grep -q breaks the pipe 2022-08-30 00:04:23 +02:00
Alexandre Aubin
f4219791a1 Update changelog for 4.4.2.13 2022-08-29 15:40:46 +02:00
Alexandre Aubin
b5fabc871b [fix] bullseye migration: a few annoying issues related to Sury 2022-08-29 15:36:29 +02:00
Alexandre Aubin
c0ceb66ad4
Merge pull request #1496 from YunoHost/ci-format-dev
[CI] Format code with Black
2022-08-28 17:57:44 +02:00
yunohost-bot
a0d19d88e6 [CI] Format code with Black 2022-08-28 15:43:54 +00:00
Alexandre Aubin
efe0e60182 [fix] defaultapp: domain may not exist in app_map dict output 2022-08-28 17:25:31 +02:00
Alexandre Aubin
b49e1bad53 Update changelog for 11.0.9.12 2022-08-28 14:51:57 +02:00
Alexandre Aubin
9b5478ee63 Update changelog for 4.4.2.12 2022-08-28 14:50:11 +02:00
Alexandre Aubin
c4b6dc2399 Aaaaand i managed to make a typo again 2022-08-28 14:49:44 +02:00
Alexandre Aubin
b9bb2e4de5 Update changelog for 4.4.2.12 2022-08-28 14:47:29 +02:00
Alexandre Aubin
36f910ed28 Aaaaand i managed to make a typo again 2022-08-27 19:38:05 +02:00
Alexandre Aubin
66d416a37a
Merge pull request #1497 from Salamandar/patch-1
tools_postinstall: list all partitions (not only physical ones)
2022-08-27 15:50:24 +02:00
Salamandar
8951eb38bc
tools_postinstall: list all partitions (not only physical ones)
This allows special installation cases such as in a container, where disk_partitions(all=False) would not show virtual mount points.
2022-08-27 11:23:28 +02:00
Alexandre Aubin
86e13b06a4 Update changelog for 11.0.9.11 2022-08-26 21:16:30 +02:00
Alexandre Aubin
995ea0ca94 Merge branch 'buster' into dev 2022-08-26 21:16:05 +02:00
Alexandre Aubin
190c1302b1 Update changelog for 4.4.2.11 2022-08-26 19:23:02 +02:00
Alexandre Aubin
f5d94509a1 bullseye migration: add trick to automagically find the likely log of a previously failed migration to ease support 2022-08-26 19:20:13 +02:00
Alexandre Aubin
907a1fa2bb Update changelog for 11.0.9.10 2022-08-26 16:34:34 +02:00
Alexandre Aubin
d87a0e3c83 Fix make_changelog script having irrelevant entrie about i18n (weblate commit message changed at some point) 2022-08-26 16:33:30 +02:00
Alexandre Aubin
53ecde1967
Merge pull request #1495 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2022-08-26 16:30:29 +02:00
Stephan Klein
ef5e2beb77 Translated using Weblate (French)
Currently translated at 100.0% (693 of 693 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2022-08-26 14:26:37 +00:00
Jose Riha
3f8982b75a Translated using Weblate (Slovak)
Currently translated at 32.1% (223 of 693 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2022-08-26 14:26:37 +00:00
xabirequejo
a3cd1d1121 Translated using Weblate (Basque)
Currently translated at 100.0% (693 of 693 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2022-08-26 14:26:37 +00:00
Leandro Noferini
b5a2e9f2b9 Translated using Weblate (Italian)
Currently translated at 95.5% (662 of 693 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2022-08-26 14:26:37 +00:00
liimee
1aeb3da962 Translated using Weblate (Indonesian)
Currently translated at 9.6% (67 of 693 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/id/
2022-08-26 14:26:37 +00:00
Alexandre Aubin
530bf04af5 [fix] logrotate helpers: getopts miserably explodes if 'legacy_args' is inconsistent with 'args_array' ... 2022-08-26 16:24:44 +02:00
Alexandre Aubin
ae92a0b8ea diagnosis: fix inaccurate message 2022-08-24 10:28:58 +02:00
Alexandre Aubin
c88af25949 Update changelog for 11.0.9.9 2022-08-22 10:33:11 +02:00
Alexandre Aubin
a497d986a1 Merge branch 'buster' into dev 2022-08-22 10:32:23 +02:00
Alexandre Aubin
97fd8f0c9b Update changelog for 4.4.2.10 2022-08-22 10:29:30 +02:00
Alexandre Aubin
6a594d0e1d bullseye migration: add proper explanations and advices after the damn 'The distribution is not Buster' message ... 2022-08-22 10:28:44 +02:00
Alexandre Aubin
2469b67515 Update changelog for 11.0.9.8 2022-08-19 20:51:30 +02:00
Alexandre Aubin
04ef48f9f2 Merge branch 'buster' into dev 2022-08-19 20:49:53 +02:00
Alexandre Aubin
18e041c405 php7.3->7.4: autopatch nginx configs during restore 2022-08-19 20:45:17 +02:00
Alexandre Aubin
ec271043cd Update changelog for 11.0.9.7 2022-08-17 19:25:18 +02:00
Alexandre Aubin
a2dfec499d lint: F541 f-string is missing placeholders 2022-08-17 19:24:09 +02:00
Alexandre Aubin
b0cc65aff6
Merge pull request #1493 from YunoHost/ci-format-dev
[CI] Format code with Black
2022-08-17 19:22:20 +02:00
Alexandre Aubin
56755ae8a3
Merge pull request #1494 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2022-08-17 19:21:40 +02:00
José M
016f5a418c Translated using Weblate (Galician)
Currently translated at 100.0% (693 of 693 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2022-08-17 17:19:18 +00:00
Tymofii-Lytvynenko
d9446d125e Translated using Weblate (Ukrainian)
Currently translated at 100.0% (693 of 693 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2022-08-17 17:19:18 +00:00
Éric Gaspar
ddf2f36166 Translated using Weblate (French)
Currently translated at 100.0% (693 of 693 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2022-08-17 17:19:18 +00:00
Alexandre Aubin
efa80304d2 Fix broken logrotate helper é_è 2022-08-17 19:18:53 +02:00
yunohost-bot
26665b231a [CI] Format code with Black 2022-08-17 00:34:05 +00:00
Alexandre Aubin
f443631292 Update changelog for 11.0.9.6 2022-08-17 01:27:38 +02:00
Alexandre Aubin
3614715c31 Merge branch 'buster' into dev 2022-08-17 01:26:11 +02:00
Alexandre Aubin
9eb123f8b1 [fix] Better handling of super shitty edge case where an app settings.yml is empty for some unexpected mystic reason ... 2022-08-16 23:01:11 +02:00
Alexandre Aubin
8d1c75e732 helpers: fix logrotate shitty inconsistent handling of 'supposedly legacy' --non-append option ... 2022-08-14 21:34:50 +02:00
Alexandre Aubin
030927cf03 Update changelog for 11.0.9.5 2022-08-14 19:43:18 +02:00
Alexandre Aubin
71e9981c1a Merge branch 'buster' into dev 2022-08-14 19:42:48 +02:00
Alexandre Aubin
1246fcf8f6 nginx: I'm tired of people reporting the 'Report-Only' error message they see in the console. This is useless. Just get rid of it. 2022-08-14 18:56:20 +02:00
Alexandre Aubin
4e39c70123 Update changelog for 11.0.9.4 2022-08-14 18:28:25 +02:00
Alexandre Aubin
c8031acee7 venv rebuild: synapse's folder is named matrix-synapse 2022-08-14 18:22:12 +02:00
Alexandre Aubin
df045a56ae Merge remote-tracking branch 'origin/buster' into dev 2022-08-14 18:21:37 +02:00
Alexandre Aubin
8d84c91e03 Update changelog for 11.0.9.3 2022-08-13 22:39:36 +02:00
Kay0u
3cb1a41aa8
fix linter in postgresql migration 2022-08-13 22:28:27 +02:00
Alexandre Aubin
7a928ba5ad
Merge pull request #1488 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2022-08-13 21:48:39 +02:00
Alexandre Aubin
337f4accee
Merge branch 'dev' into weblate-yunohost-core 2022-08-13 21:48:34 +02:00
Alexandre Aubin
46e36240a2
Update locales/fr.json 2022-08-13 21:47:46 +02:00
Alexandre Aubin
0505de301d
Merge pull request #1491 from YunoHost/ci-remove-stale-translated-strings-dev
[CI] Reformat / remove stale translated strings
2022-08-13 21:47:25 +02:00
punkrockgirl
7684e219a9 Translated using Weblate (Basque)
Currently translated at 100.0% (694 of 694 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2022-08-13 19:47:14 +00:00
Éric Gaspar
27e5031ad7 Translated using Weblate (French)
Currently translated at 100.0% (694 of 694 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2022-08-13 19:47:14 +00:00
José M
af637362f7 Translated using Weblate (Galician)
Currently translated at 100.0% (694 of 694 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2022-08-13 19:47:14 +00:00
José M
42d893e1e7 Translated using Weblate (Galician)
Currently translated at 99.1% (688 of 694 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2022-08-13 19:47:14 +00:00
Alexandre Aubin
3cf4bec763
Merge pull request #1492 from YunoHost/ci-format-dev
[CI] Format code with Black
2022-08-13 21:46:59 +02:00
Alexandre Aubin
9ce2bf98ab Update changelog for 11.0.9.2 2022-08-13 20:10:10 +02:00
Alexandre Aubin
da7efd73cf Merge branch 'buster' into dev 2022-08-13 20:07:41 +02:00
Alexandre Aubin
d161da039a postgresql 11->13 migration: skip if no yunohost app depend on postgresql 2022-08-13 20:04:45 +02:00
yunohost-bot
f7fc609abe [CI] Format code with Black 2022-08-13 17:54:50 +00:00
Alexandre Aubin
625eb79ca3 bullseye migration: add fix for stupid dnsmasq not picking new init script 2022-08-13 19:38:28 +02:00
Alexandre Aubin
3f0b19d17d bullseye migration: add the patch for the build-essential / libc6-dev / libgcc-8-dev hell ... 2022-08-13 19:34:35 +02:00
Alexandre Aubin
98506d6a73 bullseye migration: add critical fix for RPi failing to get network on reboot 2022-08-13 19:04:54 +02:00
Alexandre Aubin
d2a6dcd41a venv rebuild: migration should have an empty disclaimer when in auto mode 2022-08-13 18:41:52 +02:00
Alexandre Aubin
31aacb3361 diagnosis: add complains if some app installed are still requiring only yunohost 3.x 2022-08-13 17:38:47 +02:00
yunohost-bot
c7a907bdc9 [CI] Reformat / remove stale translated strings 2022-08-13 12:37:32 +00:00
Alexandre Aubin
771922da76
Merge pull request #1490 from ericgaspar/patch-1
Update en.json
2022-08-13 14:21:47 +02:00
Éric Gaspar
273f0fed77
Update en.json
Capitalize Python
2022-08-13 08:34:33 +02:00
Alexandre Aubin
64e35815db apt helpers: simplify ynh_remove_app_dependencies, we don't need to care about removing php-fpm services from yunohost, because 'yunohost service' now dynamically check what relevant phpX.Y-fpm service exist on the system 2022-08-13 03:57:34 +02:00
ljf (zamentur)
5d90971b58 [fix] -f and --force are not thje same with yunohos app upgrade 2022-08-12 23:31:19 +02:00
Alexandre Aubin
016e0e105b Update changelog for 11.0.9.1 2022-08-11 16:00:56 +02:00
Alexandre Aubin
18442b2449 /opt may not exist ... 2022-08-11 15:59:48 +02:00
Alexandre Aubin
a45d199896 Merge remote-tracking branch 'origin/buster' into dev 2022-08-11 15:58:33 +02:00
Alexandre Aubin
ab747f0aee Merge remote-tracking branch 'origin/buster' into dev 2022-08-10 00:23:08 +02:00
Alexandre Aubin
18f33417ef Merge remote-tracking branch 'origin/dev' into manifestv2 2022-08-09 18:41:26 +02:00
Alexandre Aubin
899342057d Rename admin group migration from 24 to 26 (25 gonna be global settings) 2022-08-09 18:33:38 +02:00
Alexandre Aubin
87abbe678d Merge remote-tracking branch 'origin/dev' into admins 2022-08-09 18:29:59 +02:00
Alexandre Aubin
324c03e6ae Move setting migration to 0025 instead of 0024 because of the new python venv migration 2022-08-09 16:41:20 +02:00
Alexandre Aubin
025df08ac0 Merge remote-tracking branch 'origin/dev' into enh-global-settings-configpanel 2022-08-09 16:39:26 +02:00
Alexandre Aubin
d642d8507d
Merge pull request #1481 from YunoHost/ci-format-dev
[CI] Format code with Black
2022-08-09 14:30:29 +02:00
yunohost-bot
8cef37d704 [CI] Format code with Black 2022-08-08 16:59:42 +00:00
Alexandre Aubin
8a9ed1ed7a Update changelog for 11.0.9 2022-08-07 23:29:44 +02:00
Alexandre Aubin
c3d63ca667 Merge branch 'buster' into dev 2022-08-07 23:27:13 +02:00
Alexandre Aubin
5c6356459c
Merge pull request #1486 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2022-08-07 23:17:17 +02:00
Éric Gaspar
bb87891cb6 Translated using Weblate (French)
Currently translated at 100.0% (686 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2022-08-07 21:15:28 +00:00
Alexandre Aubin
4251976c48 Unused import 2022-08-07 23:15:24 +02:00
Alexandre Aubin
a4fca12ebf venv rebuild: moar logic fixes 2022-08-07 23:15:24 +02:00
Alexandre Aubin
5f265d0c16 Typo :| 2022-08-07 23:15:24 +02:00
Alexandre Aubin
0a737c4e9b venv rebuild: various improvements in the migration code 2022-08-07 23:15:24 +02:00
ljf
1d84e07988 [enh] Add disclaimer and manual or automatic mode on python migrations 2022-08-07 23:15:24 +02:00
ljf
3b8e49dc64 [enh] Split python rebuild migrations 2022-08-07 23:15:24 +02:00
Alexandre Aubin
51804925f6 services: Skip php 7.3 which is most likely dead after buster->bullseye migration because users get spooked 2022-08-07 23:04:21 +02:00
Alexandre Aubin
ad9b6661c2 Merge remote-tracking branch 'origin/buster' into dev 2022-08-07 19:11:49 +02:00
Kayou
ebc24362b2
Fixing path in the generating doc script 2022-08-07 14:10:59 +02:00
Alexandre Aubin
4496996c34 Update changelog for 11.0.8.1 2022-08-07 12:42:15 +02:00
Alexandre Aubin
7fa67b2b22 Zbleuarg 2022-08-07 12:41:18 +02:00
Alexandre Aubin
92467b5e59 Update changelog for 11.0.8 2022-08-07 11:33:33 +02:00
Alexandre Aubin
26c6827601 Merge remote-tracking branch 'origin/buster' into dev 2022-08-07 11:23:50 +02:00
Alexandre Aubin
66901e4f73 global settings: drop the support old DSA hostkey support 2022-08-06 13:05:54 +02:00
Alexandre Aubin
133d8b60c1 global settings: misc naming/ui/ux/i18n improvements 2022-08-06 13:03:28 +02:00
Alexandre Aubin
0ed05e221a i18n: fix weird phrasing for fr translation... 2022-08-06 12:37:12 +02:00
Alexandre Aubin
92a751ed84
Merge pull request #1478 from theo-is-taken/tag-fix
App Config Panel : Don't restrict choices if there's no choices specified
2022-08-06 10:54:33 +02:00
Alexandre Aubin
df4af20b6a
Merge pull request #1482 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2022-08-05 23:27:25 +02:00
Alexandre Aubin
03eaad4a32 Rename i18n keys for global settings in translations to not loose previous work 2022-08-05 17:28:57 +02:00
ButterflyOfFire
5535896efa Translated using Weblate (Arabic)
Currently translated at 13.1% (90 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ar/
2022-08-05 15:05:47 +00:00
Alexandre Aubin
ed865dd3c0 global settings: various fixes 2022-08-05 15:47:13 +02:00
Alexandre Aubin
fded695b45 Adapt script for missing i18n key following the change in setting nomenclature 2022-08-05 14:09:14 +02:00
Alexandre Aubin
73ed031661 global settings: fix moar tests ... disabling the failing ones because it's apparently sort-of a feature that those work though debattable ... (though they dont when you're in interactive mode ..) 2022-08-04 23:18:30 +02:00
Alexandre Aubin
7f45b3890e Fix logic bug, bool('False') in fact equals True é_è 2022-08-04 22:03:06 +02:00
Alexandre Aubin
9482373e90 Fix tests for global settings 2022-08-04 19:26:41 +02:00
Alexandre Aubin
ce0362eef8 black settings.py 2022-08-04 19:10:52 +02:00
Alexandre Aubin
76238db4bb config_settings.toml -> config_global.toml 2022-08-04 19:09:47 +02:00
Alexandre Aubin
5d685cebf0 Unused imports, black 2022-08-04 18:32:27 +02:00
Alexandre Aubin
cae7e5b5af Merge branch 'dev' into enh-global-settings-configpanel 2022-08-04 18:27:12 +02:00
Alexandre Aubin
91b5618743
Set 'entity_type' as 'global' for global config panel 2022-08-04 18:24:47 +02:00
Alexandre Aubin
5494ce5def
Simplify code 2022-08-04 18:21:24 +02:00
Alexandre Aubin
7c97045fb6
More explicit setting description 2022-08-04 18:20:02 +02:00
Alexandre Aubin
d3c213892f Merge branch 'dev' into manifestv2 2022-08-04 18:16:17 +02:00
Alexandre Aubin
470bc79d97 Undefined variable... 2022-08-04 18:16:00 +02:00
Alexandre Aubin
a7baea3070 Merge branch 'dev' into manifestv2 2022-08-04 18:13:34 +02:00
Alexandre Aubin
e29e9ca3f9 Missing import... 2022-08-04 18:08:01 +02:00
Alexandre Aubin
d7e87b34c7 Merge remote-tracking branch 'origin/dev' into manifestv2 2022-08-03 22:11:49 +02:00
Alexandre Aubin
0022abe896 manifestv2: switch to API v3 for catalog which includes v2 manifests 2022-08-03 22:11:17 +02:00
Alexandre Aubin
dc1f5725d0 manifestv2: fix v1/v2 conversion for maintainers 2022-08-03 21:47:02 +02:00
Alexandre Aubin
9d39a2c0b4
regenconf dhclient/resolvconf: fix weird typo, probably meant 'search' (like in our rpi-image tweaking) 2022-08-03 16:09:47 +02:00
Alexandre Aubin
f6cd35d94b
configpanels: remove debug message because it floods the regenconf logs 2022-08-03 15:03:09 +02:00
Alexandre Aubin
cb5aa7006a
Merge pull request #1476 from YunoHost/fix-postinstall-127-password
[fix] Be able to redo postinstall after 128+ chars password
2022-08-03 14:55:47 +02:00
ljf (zamentur)
7c28edd255
[fix] Missing import 2022-08-03 14:53:56 +02:00
ljf (zamentur)
6d8a18e71b
[fix] Missing import 2022-08-03 14:52:17 +02:00
ljf (zamentur)
f705d81e17
[fix] Bad importation 2022-08-03 14:51:19 +02:00
ljf (zamentur)
fdaf9fc098
[fix] Import assert_password_is_compatible 2022-08-03 14:51:00 +02:00
Alexandre Aubin
9b307d02c6
Merge pull request #1480 from YunoHost/one_arg
Fixing app without arguments
2022-08-03 10:58:38 +02:00
Alexandre Aubin
da622915b1
Merge pull request #1473 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2022-08-03 10:56:02 +02:00
Meta Meta
d868d290c1 Translated using Weblate (German)
Currently translated at 100.0% (686 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2022-07-25 10:03:17 +00:00
Valentin von Guttenberg
b195cf50ad Translated using Weblate (German)
Currently translated at 100.0% (686 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2022-07-25 10:03:17 +00:00
Gregor
f6cb2075f0 Translated using Weblate (German)
Currently translated at 100.0% (686 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2022-07-25 10:03:17 +00:00
Jose Riha
898091d210 Translated using Weblate (Slovak)
Currently translated at 31.0% (213 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2022-07-25 10:03:17 +00:00
Jose Riha
1cf7c72721 Translated using Weblate (Slovak)
Currently translated at 29.3% (201 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2022-07-25 10:03:17 +00:00
Jose Riha
ddcc114d0c Translated using Weblate (Slovak)
Currently translated at 27.1% (186 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2022-07-25 10:03:17 +00:00
Kay0u
30e926f92c
do not change the nginx template conf, replace #sub_path_only and #root_path_only after ynh_add_config, otherwise it breaks the change_url script 2022-07-25 12:03:05 +02:00
yalh76
d63caa7776 Fixing app without arguments 2022-07-22 19:30:44 +02:00
theo@manjaro
31bbc026fd Don't restrict choices if there's no choices specified 2022-07-20 11:24:42 +02:00
yunohost-bot
6da5c21cff Upgrade n to v9.0.0 2022-07-16 05:14:00 +00:00
ljf
fdca9e1041 [fix] Be able to redo postinstall after 128+ chars password 2022-07-16 01:12:54 +02:00
theo@manjaro
129f5cce95 Linter fixes 2022-07-15 16:57:12 +02:00
theo@manjaro
e21c114b70 Better log redacting 2022-07-15 16:54:53 +02:00
theo@manjaro
bbc6dcc50b Better logging for domain dns push --auto 2022-07-15 16:30:57 +02:00
theo@manjaro
4f303de7a4 Removed the useless argument key from dyndns_subscribe 2022-07-15 15:56:33 +02:00
theo@manjaro
7deb3b3492 Let the dynette cool down 2022-07-15 15:29:04 +02:00
theo@manjaro
5f2785c6c9 Pleasing the linter 2022-07-15 15:11:45 +02:00
theo@manjaro
eb3c391624 Removed useless argument 2022-07-15 14:33:11 +02:00
theo@manjaro
863843a1cf The maximum number of subscribed DynDNS domains is configurable 2022-07-15 14:26:21 +02:00
theo@manjaro
f015767f50 Added some tests for subscribing and unsubscribing 2022-07-15 13:21:16 +02:00
theo@manjaro
02103c07a3 Don't flag sub-DynDNS domains as subscribed 2022-07-13 11:50:20 +02:00
theo@manjaro
0084ce757c Don't ask for the (un)subscribe options if this is a sub-subdomain 2022-07-13 11:34:04 +02:00
theo@manjaro
731f07817b Redact domain passwords in logs 2022-07-13 11:03:16 +02:00
theo@manjaro
f67eaef90b Ignore cache if "full" is specified 2022-07-12 10:45:35 +02:00
theo@manjaro
a2a1eefbed Small fix 2022-07-11 17:11:49 +02:00
theo@manjaro
ba061a49e4 Added a --full option to domain list 2022-07-11 15:48:30 +02:00
theo@manjaro
0b5c96e249 Added an API endpoint to check if a domain is a DynDNS one 2022-07-11 15:16:33 +02:00
theo@manjaro
06db6f7e04 Clearer locales 2022-07-08 09:21:08 +02:00
theo@manjaro
9e44b33401 Clarification 2022-07-06 15:57:17 +02:00
theo@manjaro
940af74c2d yunohost domain dns push now accepts an --auto option
Domains can be configured to be auto-pushed by a cron job
2022-07-06 15:52:27 +02:00
theo@manjaro
01dfb778e9 Added domain_dyndns_instruction_unclear 2022-07-06 09:32:25 +02:00
theo@manjaro
bc3521fd04 yunohost tools postinstall auto-detect DynDNS domains
and asks for a --subscribe or --no-subscribe option
2022-07-06 09:30:00 +02:00
theo@manjaro
7117c61bbf Removed useless error 2022-07-05 15:25:43 +02:00
theo@manjaro
3bd427afab Password is only asked once if we unsubscribe 2022-07-05 15:14:33 +02:00
theo@manjaro
840bed5222 yunohost domain remove auto-detects DynDNS domains
and now uses --unsubscribe and --no-unsubscribe
2022-07-05 15:10:04 +02:00
theo@manjaro
986b42fc1d yunohost domain add auto-detect DynDNS domains
and asks for a --subscribe or --no-subscribe option
2022-07-05 14:37:14 +02:00
theo@manjaro
e4c631c171 Added yunohost domain dyndns list command 2022-07-05 11:30:40 +02:00
theo@manjaro
cf6eaf364d Better password assert placement 2022-07-05 10:45:21 +02:00
theo@manjaro
ac60516638 Raise an actual error (instead of log) 2022-07-05 10:15:56 +02:00
theo@manjaro
dd51adcd3f Removed useless call to dns push 2022-07-05 10:02:58 +02:00
theo@manjaro
0903460fc4 Fix 2022-07-05 09:59:15 +02:00
theo-is-taken
e58aaa6db6
Update src/dyndns.py
Co-authored-by: ljf (zamentur) <zamentur@users.noreply.github.com>
2022-07-05 09:55:19 +02:00
theo-is-taken
ab37617f91
Update src/dns.py
Co-authored-by: ljf (zamentur) <zamentur@users.noreply.github.com>
2022-07-05 09:54:23 +02:00
theo@manjaro
273c10f17d Updated locales 2022-07-05 09:45:26 +02:00
theo@manjaro
11684675d7 Fix 2022-07-05 09:16:17 +02:00
theo@manjaro
fbfcec4873 yunohost domain dns push works with Dynette domains 2022-07-05 09:06:52 +02:00
theo@manjaro
9a11a93a3f Merge branch 'dev' of https://github.com/YunoHost/yunohost into dev 2022-07-04 11:09:46 +02:00
theo@manjaro
40fbc8d1ea Clarification 2022-07-04 10:09:08 +02:00
theo@manjaro
1506146450 Passwords can be set interactively 2022-07-04 10:07:30 +02:00
Alexandre Aubin
ee29d2e476
Merge pull request #1467 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2022-07-01 18:31:28 +02:00
theo@manjaro
02a4a5fecf The option -d is deprecated, -p is preferred 2022-07-01 14:40:52 +02:00
theo@manjaro
882c024bc8 yunohost domain remove now accepts a -p argument 2022-07-01 14:16:50 +02:00
Jose Riha
576e8e16b5 Translated using Weblate (Slovak)
Currently translated at 22.4% (154 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2022-07-01 11:50:59 +00:00
theo@manjaro
4f2a111470 We can now specify a password
using the yunohost domain add command
2022-07-01 10:38:25 +02:00
theo@manjaro
fdca22ca5b Fixed typo 2022-06-30 12:26:53 +02:00
theo@manjaro
4a9080bdfd Added a new command to delete dyndns records 2022-06-30 12:23:51 +02:00
theo@manjaro
f9afc19ed4 Added an optionnal "password" argument
to the "yunohost dyndns subscribe" command
2022-06-30 11:22:46 +02:00
Jose Riha
686c372baf Translated using Weblate (Slovak)
Currently translated at 20.8% (143 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2022-06-27 15:47:10 +00:00
Jose Riha
5067be6bb7 Translated using Weblate (Slovak)
Currently translated at 19.6% (135 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2022-06-24 21:36:05 +00:00
Jose Riha
83d0fd421c Translated using Weblate (Slovak)
Currently translated at 12.2% (84 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2022-06-23 13:13:16 +00:00
Jose Riha
bf181aaa90 Translated using Weblate (Slovak)
Currently translated at 12.0% (83 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2022-06-23 13:12:05 +00:00
Jose Riha
5e69c670bb Translated using Weblate (Slovak)
Currently translated at 11.9% (82 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2022-06-23 13:11:53 +00:00
Jose Riha
ab4cb2c29d Translated using Weblate (Slovak)
Currently translated at 9.7% (67 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2022-06-23 12:21:57 +00:00
Jose Riha
ae996b80f8 Translated using Weblate (Slovak)
Currently translated at 2.9% (20 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/sk/
2022-06-21 21:34:32 +00:00
Alice Kile
206401855a Translated using Weblate (Telugu)
Currently translated at 2.3% (16 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/te/
2022-06-21 21:34:32 +00:00
Éric Gaspar
921b4d9b77 Translated using Weblate (Telugu)
Currently translated at 0.1% (1 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/te/
2022-06-21 21:34:32 +00:00
Weblate
fe0b320397 Added translation using Weblate (Telugu) 2022-06-21 21:34:32 +00:00
Weblate
60883773f6 Added translation using Weblate (Slovak) 2022-06-21 21:34:32 +00:00
Alexandre Aubin
8895aee7a3
Merge pull request #1470 from jose1711/typofix
Fix typo (indefinite article in plural)
2022-06-21 23:30:45 +02:00
Alexandre Aubin
ea0c8e9162
Typo
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
2022-06-21 23:30:31 +02:00
Jose Riha
745aae208b Fix typo (indefinite article in plural) 2022-06-12 22:53:24 +02:00
Alexandre Aubin
98cfd0909b
Merge pull request #1469 from YunoHost/fix-ynh_user_exists
Escape username for ynh_user_exists
2022-06-07 12:49:11 +02:00
tituspijean
638a3e8b1c
Escape username for ynh_user_exists 2022-06-02 13:33:28 +02:00
yalh76
62613baad5
Merge pull request #1468 from YunoHost/yalh76-patch-1
better example
2022-05-30 14:47:10 +02:00
yalh76
19ed83100d
better example 2022-05-29 14:50:00 +02:00
Alexandre Aubin
d9e326f2cd manifestv2: print pre/post install notices during install in cli 2022-05-21 17:11:41 +02:00
Alexandre Aubin
2ccb0c8db6 manifestv2: add some i18n support for doc/notifications 2022-05-21 16:38:51 +02:00
Alexandre Aubin
8b1333a837 manifestv2: iterate on notifications/doc + implement tests for it 2022-05-21 14:23:11 +02:00
tituspijean
8a0a33a0de
Update changelog for 11.0.7 2022-05-17 23:26:18 +02:00
yunohost-bot
4155aa7486 [CI] Format code with Black 2022-05-17 23:11:50 +02:00
Alexandre Aubin
017313eda5
Merge pull request #1461 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2022-05-16 15:52:49 +02:00
Ilya
af343ed6ce Translated using Weblate (Russian)
Currently translated at 48.9% (336 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ru/
2022-05-16 13:51:55 +00:00
Ilya
660c77d0d5 Translated using Weblate (Russian)
Currently translated at 32.0% (220 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ru/
2022-05-16 13:51:55 +00:00
ppr
866d3dbd07 Translated using Weblate (French)
Currently translated at 99.8% (685 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2022-05-16 13:51:55 +00:00
Alexandre Aubin
100cd2fdd4
Merge pull request #1460 from YunoHost/fix-dns-suggest
[fix] Bad DNS conf suggestion
2022-05-16 15:51:48 +02:00
Alexandre Aubin
bd0f7a536a
Merge pull request #1462 from YunoHost/ci-format-dev
[CI] Format code with Black
2022-05-16 15:50:38 +02:00
Alexandre Aubin
d600cdf366
Merge pull request #1463 from YunoHost/ynh_add_config_template
ynh_add_config template
2022-05-16 15:50:23 +02:00
Alexandre Aubin
976b4ad298
Merge pull request #1464 from keomabrun/patch-1
Content Security Policies Report-Only and Websockets
2022-05-16 15:49:52 +02:00
Keoma Brun
b32bc3a034
Content Security Policies Report and Websockets
Add the `wss:` field so that Nginx does not create warning when using Websocket over TLS.

This modification only affects the `Report-Only` part of the CSP, that takes care of creating warnings in the logs.

Warning ex (fr only sorry):
```
Content Security Policy: Les paramètres de la page ont empêché le chargement d’une ressource à wss://your.website.tld (« default-src »). Un rapport CSP est en cours d’envoi.
```
2022-05-15 18:33:44 +02:00
Alexandre Aubin
9902d191aa manifestv2: improve permission resouce test 2022-05-14 00:15:42 +02:00
Alexandre Aubin
ddd10f630c manifestv2: implement test for permission ressource 2022-05-13 22:14:20 +02:00
yalh76
106e1fa801
ynh_add_config template 2022-05-09 19:50:58 +02:00
Alexandre Aubin
dd6c8976f8 manifestv2: drafty implementation for notifications/doc inside the manifest 2022-05-06 21:14:44 +02:00
Alexandre Aubin
3675daf26d Fix broken test, having install questions is mandatory 2022-05-06 18:03:52 +02:00
yunohost-bot
158dc7ae14 [CI] Format code with Black 2022-05-06 14:40:24 +00:00
ljf (zamentur)
ea5bfd1693
[fix] Allow lime2 to upgrade even if kernel is hold (#1452)
* [fix] Allow lime2 to upgrade even if kernel is hold

* [fix] Bad set operation
2022-05-06 16:25:54 +02:00
ljf (zamentur)
6f5bb03b2d
[fix] depreciation warning about unicode
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2022-05-06 15:36:28 +02:00
ljf (zamentur)
76661a3e6c
Add comment
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2022-05-06 15:31:12 +02:00
Alexandre Aubin
3d54adf8df
Merge pull request #1456 from YunoHost/ci-auto-update-n-v8.2.0
Upgrade n to version 8.2.0 and fix autoupdater
2022-04-28 22:29:03 +02:00
tituspijean
437c967098
Update nodejs helper for autoupdater 2022-04-28 21:42:46 +02:00
tituspijean
d05f192a4f
Update n checksum with autoupdater 2022-04-28 21:42:19 +02:00
tituspijean
9c804d1ca2
Update n checksum with autoupdater 2022-04-28 21:39:23 +02:00
Alexandre Aubin
3bc92abe36 Merge branch 'dev' into manifestv2 2022-04-28 00:49:53 +02:00
Alexandre Aubin
d5fcc38281 manifestv2: fix backup tests 2022-04-27 22:18:24 +02:00
Alexandre Aubin
61d7ba1e40 manifestv2: fix ports resource test 2022-04-27 22:06:50 +02:00
Alexandre Aubin
a3417d9864
Merge pull request #1453 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2022-04-27 21:28:49 +02:00
Jimmy Angel Pérez Díaz
ce93067229 Translated using Weblate (Spanish)
Currently translated at 100.0% (686 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/es/
2022-04-27 19:21:50 +00:00
Jimmy Angel Pérez Díaz
481aac5f80 Translated using Weblate (Spanish)
Currently translated at 95.3% (654 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/es/
2022-04-27 19:21:50 +00:00
Jimmy Angel Pérez Díaz
4a871943b8 Translated using Weblate (Spanish)
Currently translated at 88.0% (604 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/es/
2022-04-27 19:21:50 +00:00
Jimmy Angel Pérez Díaz
398f882ac2 Translated using Weblate (Spanish)
Currently translated at 87.3% (599 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/es/
2022-04-27 19:21:50 +00:00
Alexandre Aubin
209c8d9016
Merge pull request #1457 from YunoHost/ynh_apps
helpers: fix quoting issue in new ynh_install_apps helper
2022-04-27 21:21:45 +02:00
ljf
19769d8348 [fix] Bad DNS conf suggestion 2022-04-27 14:59:55 +02:00
Tagadda
c4d188200c wip tests 2022-04-26 17:26:48 +00:00
Tagadda
607a22de00 use moulinette instead of os.system, os.chown, os.chmod 2022-04-26 17:26:48 +00:00
Tagadda
dcb01a249b wip unit tests 2022-04-26 17:26:48 +00:00
Tagadda
2d92c93af1 settings: use the yml when necessary 2022-04-26 17:26:48 +00:00
Tagadda
0bad639b3d migration wip 2022-04-26 17:26:48 +00:00
Tagadda
fbadceb72a settings: use True and False for booleans 2022-04-26 17:26:48 +00:00
Tagadda
2bf3fed6e6 settings: password stength...what could go wrong ? 2022-04-26 17:26:48 +00:00
Tagadda
6563ebb1ca typo 2022-04-26 17:26:48 +00:00
Tagadda
133ba3f14f settings: backup settings.yml 2022-04-26 17:26:48 +00:00
Tagadda
f0bf8dd1fd settings: use email.smtp.smtp_relay_enabled 2022-04-26 17:26:48 +00:00
Tagadda
eb747cc15e Search and replace old settings, first pass 2022-04-26 17:26:48 +00:00
Tagadda
1d782b3a66 Update locales again 2022-04-26 17:26:48 +00:00
Tagadda
2156fb402b settings migration 2022-04-26 17:26:48 +00:00
Tagadda
f3349d4b3d settings migration wip 2022-04-26 17:26:48 +00:00
Tagadda
6428417aa0 clean unused code
and a typo :D
2022-04-26 17:26:48 +00:00
Tagadda
35c5015db2 Update locales 2022-04-26 17:26:48 +00:00
Tagadda
3fd14a420e wip 2022-04-26 17:26:48 +00:00
Tagadda
b6085fef8d wip 2022-04-26 17:26:48 +00:00
yalh76
1af8f9969b Fix argument 2022-04-20 23:40:24 +02:00
yunohost-bot
c0e9b3ba8e Upgrade n to v8.2.0 2022-04-20 19:38:22 +00:00
tituspijean
3f9fd91334
Fix n auto-updater base branch 2022-04-20 21:37:49 +02:00
tituspijean
d4007484f3
Fix n auto-updater 2022-04-20 21:32:46 +02:00
tituspijean
2d0f229a2a
Merge pull request #1437 from YunoHost/add-n-autoupdater
Add n auto-updater
2022-04-19 22:37:41 +02:00
ljf (zamentur)
d68bc4c0d4
Merge pull request #1445 from YunoHost/ynh_app
Implement install and removal of YunoHost apps
2022-04-19 22:20:33 +02:00
Alexandre Aubin
ccc83412c9
Merge pull request #1455 from YunoHost/enh-ynh_string_random
Improve ynh_string_random
2022-04-18 15:29:17 +02:00
tituspijean
57a8cb6e1a
Improve ynh_string_random
Allows to select which characters can be returned by the helper
2022-04-18 11:51:25 +02:00
Kay0u
5ca18c53f9
merge the specific php version section in the same place in ynh_install_app_dependencies (by doing this, we avoid calling ynh_remove_app_dependencies in ynh_remove_fpm_config function just after installing the new dependencies) 2022-04-08 20:54:30 +02:00
yalh76
c749c44110 typo 2022-04-05 22:49:14 +02:00
yalh76
c34bd72ef6 remove not needed true 2022-04-05 22:43:57 +02:00
yalh76
244b31f07f typo 2022-04-01 02:04:30 +02:00
yalh76
8810561825 renaming helper file 2022-03-31 20:41:53 +02:00
yalh76
1bcaa934ee Better resilience to ? used in password 2022-03-31 20:40:32 +02:00
Kay0u
e4369274fa
Update changelog for 11.0.6 2022-03-29 14:22:54 +02:00
Kay0u
7a5d6d67e6
Revert the attempt to fix the dpkg warning because I have no idea how to do it 2022-03-29 14:12:51 +02:00
Kay0u
3ba8846807
Merge branch 'dev' of github.com:YunoHost/yunohost into dev 2022-03-29 14:09:38 +02:00
Kay0u
90b914e478
Merge branch 'buster' into dev 2022-03-29 14:09:28 +02:00
Kayou
c60a27ae75
Merge pull request #1448 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2022-03-29 14:07:15 +02:00
3ole
b7530ab230 Translated using Weblate (German)
Currently translated at 100.0% (686 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2022-03-29 11:19:57 +00:00
Selyan Slimane Amiri
b136a4ab9a Translated using Weblate (Kabyle)
Currently translated at 1.7% (12 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/kab/
2022-03-29 11:19:57 +00:00
3ole
06f1c03c4b Translated using Weblate (German)
Currently translated at 100.0% (686 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2022-03-29 11:19:57 +00:00
Baloo
cb795dd32d Translated using Weblate (Arabic)
Currently translated at 10.2% (70 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ar/
2022-03-29 11:19:57 +00:00
Weblate
15a060bfbf Added translation using Weblate (Kabyle) 2022-03-29 11:19:57 +00:00
Kay0u
ec41b697dc
fix openssl conflict (oups) 2022-03-29 13:19:49 +02:00
Kay0u
4d814126b0
fix openssl conflict 2022-03-29 13:07:06 +02:00
Xavier Brochard
726e0467e9
fix case of flag value
same as previous commit on dovecot.sieve
2022-03-23 23:32:16 +01:00
Xavier Brochard
4359aad89f
Fix flag case sensitivity
AFAIK this value is case sensitive. It is written as "Yes" in rspamd/milter_headers.conf
2022-03-23 23:22:55 +01:00
Alexandre Aubin
859a091fae
Merge pull request #1449 from YunoHost/fix-configpanel-multiinstance
[fix] Config Panel edits partially config of the first instance
2022-03-23 01:43:24 +01:00
ljf
7c09142953 [fix] Config Panel edits partially config of the first instance 2022-03-23 01:08:28 +01:00
ljf
8296e35435 Revert "[fix] Config Panel edits partially config of the first instance"
This reverts commit 1b047ba049.
2022-03-23 01:06:40 +01:00
ljf
1b047ba049 [fix] Config Panel edits partially config of the first instance 2022-03-23 01:05:21 +01:00
yalh76
a07328c99d removal simplification 2022-03-17 19:24:03 +01:00
yalh76
85ddb4a8a0 better yunohost app list 2022-03-17 00:03:38 +01:00
yalh76
ca54e3a61d Better yunohost tools update 2022-03-16 23:48:47 +01:00
yalh76
700f671527 better yunohost app list 2022-03-16 23:45:43 +01:00
yalh76
5736aadd10 typo 2022-03-16 23:45:09 +01:00
yalh76
3bb8ca2e21
Update helpers/app
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2022-03-16 22:47:43 +01:00
yalh76
756e3b292b
Update helpers/app
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2022-03-16 22:47:33 +01:00
yalh76
1386466d7e
Update helpers/app
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2022-03-16 22:46:25 +01:00
yalh76
fb53a69dd0
Update helpers/app
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2022-03-16 22:45:42 +01:00
yalh76
756f561ddd
Update helpers/app
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2022-03-16 22:45:34 +01:00
Kay0u
33bf3b2a3a
Trying to fix the dpkg warning 2nd attempt 2022-03-08 19:49:16 +01:00
Kayou
58b11e8198
Merge pull request #1447 from YunoHost/ci-remove-stale-translated-strings-dev
[CI] Reformat / remove stale translated strings
2022-03-08 18:16:51 +01:00
yunohost-bot
f53e6af698 [CI] Reformat / remove stale translated strings 2022-03-08 17:14:37 +00:00
Kay0u
5e87f7d479
Trying to fix the dpkg warning: "/etc/bash_completion.d/yunohost is not a plain file or symlink" 2022-03-08 18:04:47 +01:00
Kay0u
93ed8efb17
fix tests 2022-03-08 17:48:27 +01:00
Alexandre Aubin
b79cbd466c
Merge pull request #1431 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2022-03-08 13:17:42 +01:00
Bartłomiej Garbiec
5d64954ada Translated using Weblate (Polish)
Currently translated at 1.4% (10 of 687 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pl/
2022-03-08 12:17:10 +00:00
punkrockgirl
e157a94de9 Translated using Weblate (Basque)
Currently translated at 100.0% (687 of 687 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2022-03-08 12:17:10 +00:00
José M
04909c9c58 Translated using Weblate (Galician)
Currently translated at 100.0% (687 of 687 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2022-03-08 12:17:10 +00:00
Tagada
e85660acf2 Translated using Weblate (French)
Currently translated at 100.0% (687 of 687 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2022-03-08 12:17:10 +00:00
Mico Hauataluoma
df87baf38b Translated using Weblate (Finnish)
Currently translated at 0.4% (3 of 687 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fi/
2022-03-08 12:17:10 +00:00
José M
a6c64b78d6 Translated using Weblate (Galician)
Currently translated at 100.0% (687 of 687 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2022-03-08 12:17:10 +00:00
Alexandre Aubin
d11f32141e
Merge pull request #1446 from YunoHost/ci-format-dev
[CI] Format code with Black
2022-03-08 13:17:07 +01:00
yunohost-bot
f13eec176c [CI] Format code with Black 2022-03-08 12:15:46 +00:00
Alexandre Aubin
0a0350f509 Update changelog for 11.0.5 2022-03-08 13:04:24 +01:00
Alexandre Aubin
dddc92949c
Merge pull request #1441 from Tagadda/small-fixes
Several FIXME fix 🚀
2022-03-08 13:00:40 +01:00
Tagadda
4db5da1fbe Revert "the -W flag doesn't exist for ping6"
This reverts commit 6d7e77b360.
2022-03-08 11:54:18 +00:00
yalh76
7e0f280b69 fix awk 2022-03-06 15:32:39 +01:00
yalh76
0b17cf754d Update app 2022-03-06 15:23:05 +01:00
Tagadda
114d070dc2 dns suggest: Adds missing newlines to the Extra category 2022-03-06 09:50:02 +01:00
Tagadda
6d7e77b360 the -W flag doesn't exist for ping6 2022-03-06 08:34:12 +00:00
yalh76
266e890c46 Update app 2022-03-05 14:31:02 +01:00
Kayou
676973a18e
Fix unbound variable in ynh_script_progression 2022-03-04 10:03:20 +01:00
yalh76
8828e1d8e2 Implement install and removal of YunoHost apps 2022-03-03 01:59:43 +01:00
Alexandre Aubin
0b132252c4
Merge pull request #1444 from pagiraud/patch-1
Always activate time when running inside CI tests
2022-03-02 23:38:56 +01:00
Melchisedech
bd6afe27ee
Put spaces between the brackets and values 2022-03-02 23:13:26 +01:00
Melchisedech
0f307d1fa7
Always activate time when running inside CI tests
This way, no need to specify the --time argument of ynh_script_progression if you’re testing your app package through Yunorunner and want to adjust weight.
2022-03-02 22:52:18 +01:00
Tagada
086a3d4fda
fix: extra extra lines o/ 2022-02-28 15:36:38 +01:00
Alexandre Aubin
680811eeff
Merge pull request #1442 from Tagadda/patch-1
fix ynh_exec_*: ensure the arg message is used
2022-02-27 14:21:12 +01:00
Tagada
f3837bae79
fix ynh_exec_*: ensure the arg message is used 2022-02-18 15:57:28 +01:00
Tagadda
d216d06c8c fix: move _list_upgradable_apps() logic from tools.py to apps.py 2022-02-16 22:24:17 +00:00
Tagadda
0ff9818ebf fix: config.py: add more properties for config_get?full 2022-02-16 21:06:15 +00:00
Tagadda
c99729d062 fix: config.py: Question.filter as None by default make more sense 2022-02-16 21:06:15 +00:00
Tagadda
a51738f1c3 fix: YNH_MAIN_DOMAINS env variable in regenconf
Also... `yunohost domain list --output-as plain` also print "#domain" and "#main"
so this used to create wierd files in /var/lib/metronome/
2022-02-16 12:34:22 +00:00
Alexandre Aubin
ab0b66425c
Merge pull request #1440 from ewilly/patch-1
Avoid grep issue with vmstat command
2022-02-13 21:25:36 +01:00
ewilly
ca8940b860
Avoid grep issue with vmstat command
due to localized vmstat in bullseye
2022-02-13 21:03:23 +01:00
Alexandre Aubin
1d3bd602eb Merge branch 'buster' into dev 2022-02-09 17:53:14 +01:00
Kayou
b13956c5ec
Merge pull request #1438 from kay0u/patch-1
[fix] postfix sni tls_server_chain_sni_maps -> tls_server_sni_maps
2022-02-09 13:36:58 +01:00
Kayou
08be0ee020
[fix] postfix sni tls_server_chain_sni_maps -> tls_server_sni_maps 2022-02-09 13:33:22 +01:00
tituspijean
8c7d57b486
Add n auto-updater 2022-02-07 21:58:49 +01:00
Alexandre Aubin
2308dea140
Merge pull request #1435 from ericgaspar/8.0.2
Update n to 8.0.2
2022-02-07 13:19:24 +01:00
Alexandre Aubin
8769ab231d
Merge pull request #1433 from YunoHost/hidepid
security: Enable proc-hidepid by default
2022-02-07 13:18:08 +01:00
ericgaspar
3c02fb7d4a
Update nodejs 2022-02-06 12:40:00 +01:00
Alexandre Aubin
de6844250f postinstall: migrate_to_bullseye should be skipped on bullseye 2022-02-01 15:43:03 +01:00
Alexandre Aubin
f9e15ff8a3 Add app-resources tests to ci 2022-02-01 15:36:13 +01:00
Alexandre Aubin
e4863830c9 Fix call to ask_questions_and_parse_answers 2022-02-01 15:32:34 +01:00
Alexandre Aubin
d8a9243532 Typo é_è 2022-02-01 15:26:45 +01:00
Alexandre Aubin
05a459d4df Fix tests 2022-02-01 15:01:11 +01:00
Alexandre Aubin
6316b94af4 helpers: missing ynh_requirement definition 2022-02-01 14:30:15 +01:00
Alexandre Aubin
8939ba66d3 Merge branch 'dev' into manifestv2 2022-02-01 14:24:21 +01:00
Alexandre Aubin
d6a6ca1db4 security: Enable proc-hidepid by default 2022-02-01 12:52:40 +01:00
Alexandre Aubin
83dfc0590d
Merge pull request #1430 from YunoHost/ci-format-dev
[CI] Format code with Black
2022-01-31 03:40:29 +01:00
yunohost-bot
d28f725762 [CI] Format code with Black 2022-01-31 02:32:46 +00:00
Alexandre Aubin
67a293e03b
Merge pull request #1429 from Tagadda/configpanel-filter-ast
configpanel: filter in AppQuestion
2022-01-31 03:13:48 +01:00
Tagadda
3de3205648 set default filter to always return true 2022-01-30 22:39:26 +00:00
Tagadda
f2b95e5fbe configpanel: filter as a simple_js_expression 2022-01-30 20:45:06 +00:00
Alexandre Aubin
ab5580cb11 Update changelof for 11.0.4 2022-01-29 19:23:07 +01:00
Alexandre Aubin
9ae7ec5930 php73_to_php74: stopping php7.3 before starting 7.4 should be more robust in case confs are conflicting 2022-01-29 19:19:29 +01:00
Alexandre Aubin
f0a01ba25d php73_to_php74: another search&replace for synapse 2022-01-29 19:19:29 +01:00
Alexandre Aubin
97e17bbddb
Merge pull request #1424 from YunoHost/ci-format-dev
[CI] Format code with Black
2022-01-29 19:13:33 +01:00
Alexandre Aubin
0a59f86329 configpanel: oopsies, super()._apply() was only called when changing the default app :P 2022-01-29 19:10:28 +01:00
yunohost-bot
e1ffe57282 [CI] Format code with Black 2022-01-29 17:48:05 +00:00
Alexandre Aubin
adb0e67b25 Aaand hasattr not working as expected 2022-01-29 18:28:07 +01:00
Alexandre Aubin
e46fe6b77b Typo: self.hasattr is not a thing /o\ 2022-01-29 18:05:23 +01:00
Alexandre Aubin
7377798385 Revert "Tmp fix to try to debug the CI @_@"
This reverts commit 3ca302b85d.
2022-01-29 17:50:03 +01:00
Alexandre Aubin
74e73c470f Revert "Moar tmp tweaks to try to debug the CI"
This reverts commit 16946372cc.
2022-01-29 17:49:59 +01:00
Alexandre Aubin
bf6252ac1d configpanels: optimize _get_toml for domains to not load the whole DNS section stuff when just getting a simple info from another section 2022-01-29 17:49:45 +01:00
Alexandre Aubin
16946372cc Moar tmp tweaks to try to debug the CI 2022-01-29 17:18:24 +01:00
Alexandre Aubin
3ca302b85d Tmp fix to try to debug the CI @_@ 2022-01-29 16:54:27 +01:00
Alexandre Aubin
345e50ae00 regenconf: make some systemctl enable/disable quiet² 2022-01-29 16:49:03 +01:00
Alexandre Aubin
bccff1b442 regenconf: make some systemctl enable/disable quiet 2022-01-29 15:52:20 +01:00
Alexandre Aubin
3a85b5201a
Merge pull request #1427 from Tagadda/fix-appinstall
[fix] Compute choices for the yunohost admin when installing an app
2022-01-29 15:45:38 +01:00
Alexandre Aubin
d88e4b0d45
Merge pull request #1422 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2022-01-29 15:38:12 +01:00
Alexandre Aubin
f92c11edaf
Merge pull request #1426 from ericgaspar/dev
Fix typo
2022-01-29 15:37:36 +01:00
Éric Gaspar
d79e3618de Translated using Weblate (French)
Currently translated at 100.0% (687 of 687 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2022-01-29 13:37:13 +00:00
Weblate
c9606d353b Added translation using Weblate (Danish) 2022-01-29 13:37:13 +00:00
Tymofii-Lytvynenko
fc3834bff5 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (687 of 687 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2022-01-29 13:37:13 +00:00
Alexandre Aubin
49b444e480 tools_upgrade: raise a Yunohost error, not a raw exception, when misusing args 2022-01-29 14:36:49 +01:00
Alexandre Aubin
9cb97640b9 manifestv2: misc fixes + add test for manifestv2 install 2022-01-28 22:12:01 +01:00
Alexandre Aubin
d9873e085d app resources: Support several ports 2022-01-28 21:21:41 +01:00
Tagadda
9486931674 Hydrate manifest with choices 2022-01-28 02:39:20 +00:00
Tagadda
740eaa43ae typos 2022-01-28 02:39:02 +00:00
ericgaspar
377558b54e
Fix typo 2022-01-27 12:15:09 +01:00
Alexandre Aubin
27f8809a2c
Merge pull request #1425 from YunoHost/enh-mdns
Enhance yunomdns service startup
2022-01-26 22:12:51 +01:00
tituspijean
67cce15d02 Enhance yunomdns service startup
Make it rely on network-online.target instead of network.target

Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2022-01-26 20:59:56 +00:00
Alexandre Aubin
99fd7f628e
Merge pull request #1423 from YunoHost/fix-bash_completion
fix bash_completion
2022-01-26 14:30:09 +01:00
Alexandre Aubin
4b78e8e327 [mod] certificate: drop unused 'staging' LE mode 2022-01-26 14:29:04 +01:00
Kay0u
dcf1a892bf
fix bash_completion 2022-01-26 14:19:09 +01:00
Alexandre Aubin
9b89f66bba Update changelog for 11.0.3 2022-01-25 13:09:19 +01:00
Alexandre Aubin
07396b8b34 [fix] When no main app permission found, fallback to default label instead of having a 'None' label to prevent the webadmin from displaying an empty app list 2022-01-25 13:04:06 +01:00
Alexandre Aubin
6d4220e9a0
Merge pull request #1419 from YunoHost/ci-format-dev
[CI] Format code with Black
2022-01-24 19:23:46 +01:00
yunohost-bot
71e73c7cf2 [CI] Format code with Black 2022-01-24 18:16:08 +00:00
Alexandre Aubin
981c7b5649
Merge pull request #1406 from Tagadda/enh-domain-default-app
Manage default application with DomainConfigPanel
2022-01-24 18:49:06 +01:00
Alexandre Aubin
fde01fafd7 app questions in config panel: handle choices with nice display names for webadmin 2022-01-24 18:40:20 +01:00
Alexandre Aubin
8836fdeeaa Merge branch 'dev' into enh-domain-default-app 2022-01-24 18:40:10 +01:00
Alexandre Aubin
68fffd7c6d
Merge pull request #1421 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2022-01-24 18:13:14 +01:00
Alexandre Aubin
3543821df0
Merge pull request #1420 from YunoHost/config-panel-choices
configpanels: config_get should return possible choices for domain, user questions (and other dynamic-choices questions)
2022-01-24 18:12:45 +01:00
Alexandre Aubin
9ed5b66bb4 Fixes /o\ 2022-01-22 16:33:46 +01:00
Alexandre Aubin
fb01202f8d Merge branch 'dev' into manifestv2 2022-01-22 15:56:43 +01:00
Alexandre Aubin
dfa021fbf7 Fix tests 2022-01-22 15:46:14 +01:00
Alexandre Aubin
2f7ec5b368 configpanels: config_get should return possible choices for domain, user questions (and other dynamic-choices questions) 2022-01-22 15:44:28 +01:00
José M
5565e6c55c Translated using Weblate (Galician)
Currently translated at 100.0% (686 of 686 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2022-01-22 04:13:26 +00:00
Alexandre Aubin
d23b54422b
Merge pull request #1418 from Tagadda/fix-diagnosis-order
[fix] reorder diagnosers
2022-01-21 18:34:15 +01:00
Tagadda
d5008bc656 [fix] reorder diagnosers
un-funkify the order 8)
2022-01-21 17:29:31 +00:00
Alexandre Aubin
5d0f8021b8 [fix] Do not save php-fpm services in services.yml 2022-01-21 18:28:16 +01:00
Alexandre Aubin
9a3a208809
Merge pull request #1413 from Tagadda/enh-sni
[enh] Add SNI support for postfix and dovecot
2022-01-21 18:22:40 +01:00
Alexandre Aubin
cc65217f58
Merge pull request #1417 from YunoHost/ci-format-dev
[CI] Format code with Black
2022-01-21 16:10:01 +01:00
yunohost-bot
5b30347dfa [CI] Format code with Black 2022-01-21 15:06:31 +00:00
Alexandre Aubin
4571c5b22f
services: fix a couple edge cases 2022-01-21 15:56:08 +01:00
Tagadda
cb7bfe7a66 fix for bullseye 2022-01-20 22:54:48 +00:00
Kay0u
ac47710584
remove of the default hard-coded branch in ci scripts 2022-01-20 20:34:56 +01:00
Kay0u
e2da7e406b
Merge branch 'dev' of github.com:YunoHost/yunohost into dev 2022-01-20 20:26:57 +01:00
Kay0u
98167e35e5
trying to fix autofix-translated-strings 2022-01-20 20:26:53 +01:00
Alexandre Aubin
2843c3b2a3
Merge pull request #1414 from YunoHost/fix-mdns-service
[mdns] Set the StandardOutput to journal
2022-01-20 20:24:44 +01:00
Alexandre Aubin
f8eb6f8e0d
Merge pull request #1416 from YunoHost/ci-remove-stale-translated-strings-dev
[CI] Reformat / remove stale translated strings
2022-01-20 19:58:18 +01:00
Alexandre Aubin
b9159dacbc
Merge pull request #1415 from YunoHost/ci-format-dev
[CI] Format code with Black
2022-01-20 19:57:25 +01:00
yunohost-bot
409cd48b42 [CI] Reformat / remove stale translated strings 2022-01-20 18:44:27 +00:00
yunohost-bot
b9060da750 [CI] Format code with Black 2022-01-20 18:43:33 +00:00
Kay0u
3779b9203a
oupsi add black again 2022-01-20 19:32:13 +01:00
Kay0u
cf97136237
fix autofix locale format path 2022-01-20 19:27:00 +01:00
Kay0u
7ee5565a83
another one 2022-01-20 19:23:45 +01:00
Kay0u
d6bbdfa5f4
fix tox 2022-01-20 19:22:40 +01:00
tituspijean
11b7e5c0f8
[mdns] Set the StandardOutput to journal 2022-01-20 11:46:01 +01:00
Tagadda
9ef3a1bfff [enh] Add SNI support to postfix and dovecot 2022-01-19 23:28:43 +00:00
Tagada
30983a4efd [enh] Manage default applications with DomainConfigPanel
[enh] makedefault with domain_config_set()

[enh] Allow webadmin to reverse makedefault

[legacy] translate legacy redirections to new domain config
2022-01-19 23:04:24 +00:00
Alexandre Aubin
140e50253f Update changelog for 11.0.2 2022-01-19 20:53:27 +01:00
Alexandre Aubin
e109f34a6b Merge branch 'dev' into bullseye 2022-01-19 20:50:40 +01:00
Alexandre Aubin
1e61883b2f Merge branch 'dev' into bullseye 2022-01-18 00:16:49 +01:00
Alexandre Aubin
89dda11b56 postgresql migration: Attempt to fix cluster upgrade, complaining that cluster for 13 already existed, suspecting a race condition maybe 2022-01-17 23:58:04 +01:00
Alexandre Aubin
ecb8419ee0 dyndns: fix dyndns_update, needs to construct the update object using the target zone, not the domain itself 2022-01-17 21:21:46 +01:00
Alexandre Aubin
011c2059a5 appresources: fixes /o\ 2022-01-16 03:34:53 +01:00
Alexandre Aubin
5479befabb [fix] helpers apt: Remove boring message about 'file.asc' wasnt deleted because it doesnt exists 2022-01-16 03:27:14 +01:00
Alexandre Aubin
8bc23e6f59 app resources: Yoloimplement some tests for each resources 2022-01-15 19:18:21 +01:00
Alexandre Aubin
b68e99b2c0 app resources: Yoloimplement support for db resources 2022-01-14 23:02:50 +01:00
Alexandre Aubin
13fb471f29 install_dir resource: automigrate from final path value 2022-01-14 21:58:11 +01:00
Alexandre Aubin
33d4dc9749 apt resources: Yoloimplement extras repo management 2022-01-14 21:41:02 +01:00
Alexandre Aubin
55963bef23 Cleanup 2022-01-14 21:06:05 +01:00
Alexandre Aubin
4c6786e8af manifestv2, appresources: Implement a more generic 'apply' mecanism with possible rollback 2022-01-13 00:45:40 +01:00
Alexandre Aubin
0f9560ffe0
Merge branch 'bullseye' into manifestv2 2022-01-12 22:33:59 +01:00
Alexandre Aubin
b1fe61ed68 codequality: fstring all the things! (well, not all but a lot :P) 2022-01-11 21:37:21 +01:00
Alexandre Aubin
3fe44ee73b ci: moar typoz, wtf @_@ 2022-01-11 19:50:43 +01:00
Alexandre Aubin
4cb8c91475 Draft migration for new admins group 2022-01-11 18:15:34 +01:00
Alexandre Aubin
9126beffc2 Prevent deletion of the new admins group 2022-01-11 17:11:45 +01:00
Alexandre Aubin
b84c1c24b4 Merge branch 'bullseye' into admins 2022-01-11 17:10:54 +01:00
Alexandre Aubin
ea6500ebfd ldap: having to repeat the base dn everytime we call search() is boring and inconsistent with other methods, let's use relative dns instead 2022-01-11 17:10:07 +01:00
Alexandre Aubin
a118a5a132 ci: typo 2022-01-11 16:14:20 +01:00
Alexandre Aubin
8af721993b
Merge branch 'bullseye' into admins 2022-01-11 16:12:23 +01:00
Alexandre Aubin
04a92e547d Merge branch 'dev' into bullseye 2022-01-11 16:10:51 +01:00
Alexandre Aubin
66cd35d304 ci: Propagate postinstall cli changes to install.gitlab-ci.yml 2022-01-11 15:24:26 +01:00
Alexandre Aubin
767b5c3d7e mail: Add ldap-groups virtual aliases 2022-01-11 15:09:01 +01:00
Alexandre Aubin
6cae524910 Drop the 'admin' user, have 'admins' be a group of Yunohost users instead 2022-01-11 14:53:04 +01:00
Alexandre Aubin
6315166749
Merge pull request #1394 from YunoHost/moar_session_management_changes
api: Move cookie session management logic to the authenticator for more flexibility
2022-01-11 12:58:38 +01:00
Alexandre Aubin
af1937c596
Typo 2022-01-11 12:57:53 +01:00
Alexandre Aubin
b63136da52 certificate: don't attempt to restart metronome if not installed 2022-01-09 18:41:44 +01:00
Kay0u
beadea5305
remove unused import 2022-01-07 10:47:03 +01:00
Alexandre Aubin
26b837b085 Merge branch 'dev' into bullseye 2022-01-07 02:54:55 +01:00
Alexandre Aubin
017de77405 debian/mdns: require python3-zeroconf >= 0.36 2022-01-03 20:20:27 +01:00
Alexandre Aubin
620da53fe7 postfix: move postmap to post regenconf, because the postfix user must be able to access the file, and cant anymore during pre because we moved the pending regenconf folder elsewhere 2022-01-03 20:14:36 +01:00
Alexandre Aubin
e12a0153bb Unused imports 2022-01-03 20:07:32 +01:00
Alexandre Aubin
63a84f5398 dyndns: replace dnssec-keygen and nsupdate with python code, drop legacy md5 stuff, drop unecessary dyndns 'private' key 2022-01-03 20:02:56 +01:00
Alexandre Aubin
dfc37a48c3 manifestv2: forget about webpath ressource, replace with permissions ressource 2022-01-02 03:30:57 +01:00
Alexandre Aubin
364a3bc70a manifestv2: fix many things, have resource system somewhat working for install/remove 2021-12-31 19:02:19 +01:00
Alexandre Aubin
858370dced Merge branch 'bullseye' into manifestv2 2021-12-31 15:27:42 +01:00
Alexandre Aubin
ddb1f86f23 Merge branch 'dev' into bullseye 2021-12-31 15:16:06 +01:00
Kay0u
fc0cf79123
Merge branch 'dev' into bullseye 2021-12-30 15:29:16 +01:00
Kay0u
270c2eb9c0
Trying to fix some lgtm warnings 2021-12-30 15:08:58 +01:00
Kay0u
ef44abae6e
some improvements 2021-12-30 15:08:58 +01:00
Kay0u
acd96f1382
remove unused lines 2021-12-30 15:08:58 +01:00
Kay0u
c177a6797e
Remove unused variable 2021-12-30 15:08:58 +01:00
Alexandre Aubin
6aaf47493d Not sure when that started to happen, but bottle will return an empty dict if no valid session cookie found, this shall trigger an exception 2021-12-23 16:55:12 +01:00
Alexandre Aubin
f49f03d11e api: Move cookie session management logic to the authenticator for more flexibility 2021-12-22 19:07:19 +01:00
Alexandre Aubin
83f7721fdd [fix] services: small issue when parsing installed php-fpm versions during buster->bullseye migration (or more generally, there could be no php-fpm installed) 2021-12-09 16:24:22 +01:00
Alexandre Aubin
dc426510f5 Merge branch 'migrate_to_bullseye' into bullseye 2021-12-08 22:19:03 +01:00
Alexandre Aubin
00d535a620 Stop using /home/yunohost.conf for regenconf / confbackup, /var/cache is fine, prevent confusing /home/yunohost.* folder 2021-12-06 18:38:54 +01:00
Alexandre Aubin
c8d4e4853b Merge branch 'bullseye' into manifestv2 2021-12-04 01:01:00 +01:00
Alexandre Aubin
8eaa701230 Fuckit I don't understand how to properly manage systemctl service with debian files while having flexibility on when the api restart happens, let's manage everything with the regen conf 2021-12-01 21:06:53 +01:00
Alexandre Aubin
613fc67bd1 Fix i18n strings 2021-12-01 20:35:51 +01:00
Alexandre Aubin
bc71e18cba Aleks broke everything again /o\ 2021-12-01 20:33:48 +01:00
Alexandre Aubin
94ac15e4de Update changelog for 11.0.1~alpha / bullseye alpha 2021-12-01 19:53:28 +01:00
Alexandre Aubin
7ebe92163d Merge remote-tracking branch 'origin/smarter-selfupgrade-mechanism' into bullseye 2021-12-01 19:47:36 +01:00
Alexandre Aubin
55937a933e
Typo 2021-12-01 19:44:42 +01:00
Alexandre Aubin
6622a9f264 Typo in conf/yunohost/services.yml ? 2021-12-01 19:08:16 +01:00
Alexandre Aubin
8feb63be0c Tweak definition of self-signed cert to cover cases where issuer is not the current main domain anymore 2021-12-01 18:37:59 +01:00
Alexandre Aubin
9488b419c3 Having an openssl.ca.cnf is needed to create domains 2021-12-01 00:24:31 +01:00
Alexandre Aubin
34b7e667a7 Aaaaand try again to fix certificate generation 2021-11-30 23:25:25 +01:00
Alexandre Aubin
76075909c9 Moar attempt to fix ssl cert generation + automigrate legacy + enforce sensible permissions 2021-11-30 21:29:11 +01:00
Alexandre Aubin
73da37f152 Attempt to fix the weird selfsigned certificate generation error 2021-11-30 20:46:43 +01:00
Alexandre Aubin
7206be0020 Tmp work on provision/deprovision apt and system user 2021-11-30 20:17:04 +01:00
Alexandre Aubin
c6df391a9a ci: Oopsies 2021-11-28 16:29:45 +01:00
Alexandre Aubin
45584b44a6 Merge branch 'dev' into bullseye 2021-11-28 16:27:22 +01:00
Alexandre Aubin
d831ccef4c ci: Try to fix mypy 2021-11-28 16:24:13 +01:00
Alexandre Aubin
bfa5092c10 ci: Yolorework i18n tests, add a maintenance/ folder 2021-11-28 16:17:38 +01:00
Alexandre Aubin
f43e567bf0 apps: Remove the 'HOME' var from hook_exec env, because it's often defined in CLI but not in API because yunohost-api runs in a systemd service 2021-11-28 16:17:37 +01:00
Alexandre Aubin
a399675f60 Fix location for specte meltdown checker script 2021-11-22 08:14:45 +01:00
Alexandre Aubin
10e00b3318 Fix old moulinette stuff not relevant anymore 2021-11-22 08:13:14 +01:00
Alexandre Aubin
9c28c07af4 Fix overly complex location for ssl workdir 2021-11-22 08:10:14 +01:00
Alexandre Aubin
799609c7a8 Fix most used password file path 2021-11-18 13:53:00 +01:00
Alexandre Aubin
a792ed6e41 Moar technical fixes 2021-11-18 03:54:25 +01:00
Alexandre Aubin
33d3db62b2 Fix i18n key test 2021-11-18 03:12:08 +01:00
Alexandre Aubin
23b8418ee6 Fix diagnosis category listing 2021-11-18 03:09:18 +01:00
Alexandre Aubin
124dc158fc Fix redeclaration of 'migrations' var 2021-11-18 02:33:37 +01:00
Alexandre Aubin
bc9a9414a2 Fix diagnosis/ vs. diagnosis.py ambiguity, breaking python imports 2021-11-18 01:23:00 +01:00
Alexandre Aubin
7bfa15d471 Propagate changes from moulinette 2021-11-17 20:12:18 +01:00
Alexandre Aubin
26e6b4a414 debian: another tweak to install actionsmap to the right place 2021-11-15 04:34:25 +01:00
Alexandre Aubin
01ff6c932c Attempt to fix debian install following repo structure change 2021-11-15 04:02:45 +01:00
Alexandre Aubin
467c04f382 codequality: Apply black on python script in bin/ 2021-11-15 04:00:47 +01:00
Alexandre Aubin
f824d9e0ea
Merge pull request #1377 from YunoHost/rework-dir-topology
Rework dir topology
2021-11-15 03:34:47 +01:00
Alexandre Aubin
5af6f34307 Merge branch 'bullseye' into rework-dir-topology 2021-11-15 03:34:10 +01:00
Alexandre Aubin
fef6b2dc46
Merge pull request #1369 from YunoHost/modules-sortof
Making mariadb, php and metronome optional + better integration for postgresql + add sury by default
2021-11-15 03:30:56 +01:00
Alexandre Aubin
42e86a80c5 debian: bump ssowat and moulinette requirements 2021-11-15 03:17:43 +01:00
Alexandre Aubin
6b9ac717de debian: fix metronome modules install 2021-11-14 23:15:08 +01:00
Alexandre Aubin
cbb6e9a367
Merge branch 'bullseye' into modules-sortof 2021-11-14 21:53:51 +01:00
Alexandre Aubin
a16edfc526 Merge branch 'bullseye' into rework-dir-topology 2021-11-14 21:48:54 +01:00
Alexandre Aubin
ced9670eba Merge branch 'migrate_to_bullseye' into bullseye 2021-11-14 21:48:00 +01:00
Alexandre Aubin
094c5f0807 Attempt to fix the CI again ... for some reason it complains that pytest ain't in the image despite being installed ... 2021-11-14 21:11:06 +01:00
Alexandre Aubin
8d5e69566b Fix error during mysql regenconf, no templates folder anymoar 2021-11-13 20:14:25 +01:00
Alexandre Aubin
244287bdd0 ci: Idk why dch ain't there by default anymore but meh, installing devscripts should solve the issue... 2021-11-12 21:31:41 +01:00
Alexandre Aubin
e19330b0c2 Aaaaand forgot to git add diagnosis/__init__.py 2021-11-10 19:56:59 +01:00
Alexandre Aubin
248d7f5678 data_migrations -> migrations 2021-11-10 19:53:05 +01:00
Alexandre Aubin
ebf9d522e0 Adapt diagnosers code to load them as python modules instead of hooks 2021-11-10 19:51:11 +01:00
Alexandre Aubin
05f25fa85f Propagate dir structure change to scripts etc 2021-11-10 18:25:37 +01:00
Alexandre Aubin
5de9e4fe6a Yolorework the repo dir structure 2021-11-10 17:56:02 +01:00
Alexandre Aubin
fca4cc7d3b Merge branch 'dev' into bullseye 2021-11-10 16:56:43 +01:00
Alexandre Aubin
fff1a8a4d6 [enh] Smarter API self-upgrade mechanics 2021-11-06 18:58:31 +01:00
Alexandre Aubin
744729713d Add notes for app resources logic 2021-11-03 22:06:32 +01:00
Alexandre Aubin
810534c661 Cleanup / refactor a bunch of utils into utils/system.py 2021-11-03 20:56:34 +01:00
Alexandre Aubin
6a437c0b4f Rework requirement checks to integrate architecture, multiinnstance, disk/ram, ... + drop disk/ram as resource, have them directly in 'integration' 2021-11-03 18:33:00 +01:00
Alexandre Aubin
eb14a2220f Merge branch 'dev' into manifestv2 2021-11-03 16:40:41 +01:00
Alexandre Aubin
0a750b7b61 Absolutely yolo iteration on app resources draft 2021-11-03 16:36:46 +01:00
Alexandre Aubin
c571516c68 i18n strings 2021-11-02 01:44:48 +01:00
Alexandre Aubin
b953ae9dd4 Typo + used existing ynh_package_is_installed helper 2021-11-02 01:43:31 +01:00
Alexandre Aubin
8a71fae732 manifestv2 upgrade: implement safety backup mecanism in the core 2021-11-01 22:41:31 +01:00
Alexandre Aubin
3084359155 Typos 2021-11-01 22:40:52 +01:00
Alexandre Aubin
56f7cd87ec regenconf apt: ynh_get_debian_release undefined + reorder for clarity 2021-11-01 21:00:35 +01:00
Alexandre Aubin
b46a94a41d Automagically run ynh_psql_if_first_run / regenconf upon postgresl install 2021-11-01 20:24:36 +01:00
Alexandre Aubin
4ccd718183 Improve handling of optional services/packages + dynamically handle the list of php-fpm versions 2021-11-01 19:59:35 +01:00
Alexandre Aubin
82f28efaaf Make php package always explicitly depend on the PHP version they're using, even if that's debian's default version 2021-11-01 18:44:12 +01:00
Alexandre Aubin
2282d0df61 Add sury by default in the core... 2021-11-01 18:35:36 +01:00
Alexandre Aubin
00bd7f16a5 Tweak regenconf scripts for mysql, metronome, add one for postgresql 2021-11-01 18:20:42 +01:00
Alexandre Aubin
93f1ab2b34 Tweak debian control file to make php, mysql, metronome ~optional (but recommended) 2021-11-01 18:19:23 +01:00
Alexandre Aubin
144126f56a Merge branch 'migrate_to_bullseye' into bullseye 2021-10-20 21:08:13 +02:00
Alexandre Aubin
93cc48ca68 Drop customization of my.cnf, keep default conf 2021-10-20 20:56:33 +02:00
Alexandre Aubin
44c972f2dd Merge branch 'migrate_to_bullseye' into bullseye 2021-10-19 19:50:15 +02:00
Alexandre Aubin
859b3b6f12 Yoloimplement some resources classes, not used for anything for now 2021-10-13 22:57:17 +02:00
Alexandre Aubin
fe6d9c2617 manifestv2: automatically trigger ynh_abort_if_errors (set -eu) for scripts except remove 2021-10-13 22:56:51 +02:00
Alexandre Aubin
8da35ca4c8 Merge branch 'dev' into manifestv2 2021-10-13 18:14:54 +02:00
Alexandre Aubin
0b4aa81f8c Merge branch 'migrate_to_bullseye' into bullseye 2021-10-13 15:12:56 +02:00
Alexandre Aubin
e3d862dc15
Merge branch 'dev' into dev_on_muc 2021-10-13 14:54:55 +02:00
Alexandre Aubin
fe6ebe8e66 Always define YNH_ACTION 2021-10-07 09:34:28 +02:00
Alexandre Aubin
56ac85af37 Misc tweaks to handle new install questions format 2021-10-07 09:30:33 +02:00
Alexandre Aubin
953eb0cc1d manifestv2: on-the-fly convert v1 manifest to v2 2021-10-07 09:12:59 +02:00
Alexandre Aubin
54a7f7a570 manifestv2: auto-save install settings, auto-load all settings 2021-10-07 09:12:49 +02:00
Kay0u
b677157924
fix mypy test 2021-10-04 15:17:59 +02:00
Kayou
7411abde24
Merge branch 'dev' into bullseye 2021-10-04 15:15:10 +02:00
Alexandre Aubin
8375ef7d5b Re-drop app_fetchlist legacy 2021-10-02 20:49:26 +02:00
Alexandre Aubin
38ea29afd1 Merge branch 'dev' into bullseye 2021-10-02 20:46:36 +02:00
Alexandre Aubin
bf21f9d0f2 Stale i18n string 2021-10-02 20:46:34 +02:00
Alexandre Aubin
3591a01fdb Merge branch 'dev' into bullseye 2021-10-02 20:08:36 +02:00
Alexandre Aubin
f597bfe556 No sbin anymore 2021-09-21 16:32:00 +02:00
Alexandre Aubin
2318ffc493 regenconf: drop old legacy code 2021-09-21 16:13:54 +02:00
Alexandre Aubin
a6c72566a5 services.py: drop legacy hack for glances 2021-09-21 16:09:06 +02:00
Alexandre Aubin
9bcb7e0b9e certificate.py: drop legacy 000-acmechallenge.conf stuff 2021-09-21 16:08:24 +02:00
Alexandre Aubin
ae08698253 Merge branch 'migrate_to_bullseye' into bullseye 2021-09-21 16:04:32 +02:00
Alexandre Aubin
47cef90efd
Merge branch 'dev' into bullseye 2021-09-05 15:09:18 +02:00
Kay0u
4218e6e0f0
Merge branch 'dev' into bullseye 2021-09-02 13:09:13 +02:00
Kay0u
70bff61749
Merge branch 'dev' into bullseye 2021-09-01 17:14:21 +02:00
Alexandre Aubin
16b0411ea9 Re-add legacy_permission_label so that we don't break the old legacy permission settings 2021-08-11 15:45:35 +02:00
Alexandre Aubin
29532696a9 Merge branch 'dev' into bullseye 2021-08-11 15:41:58 +02:00
Alexandre Aubin
713612a689 Get rid of legacy script to reset ldap password 2021-07-09 21:50:54 +02:00
Alexandre Aubin
a274b6a8fc
fix: Remove legacy --installed / filter for app_list in actionmap 2021-07-03 18:14:24 +02:00
Kayou
f1644ee1d2
Merge branch 'dev' into bullseye 2021-06-22 10:52:46 +02:00
Alexandre Aubin
624ce3462b Merge branch 'migrate_to_bullseye' into bullseye 2021-06-12 19:05:44 +02:00
Alexandre Aubin
20b5843b42 Remove php7.3-fpm from service list 2021-06-12 18:06:22 +02:00
Alexandre Aubin
0843d35cc5 Remove old hack for vpnclient 2021-06-12 18:02:16 +02:00
Alexandre Aubin
82812bac2f Change service status hack for postgresql, 11 -> 13 2021-06-12 18:01:43 +02:00
Alexandre Aubin
653d7e8127 Switch to backups from 4.2 2021-06-12 16:23:40 +02:00
Alexandre Aubin
870bece358
Merge pull request #1240 from YunoHost/bullseye-legacy-cleanup
Bullseye: legacy cleanup
2021-06-07 22:09:19 +02:00
Alexandre Aubin
c32305234c
Merge branch 'bullseye' into bullseye-legacy-cleanup 2021-06-07 22:09:02 +02:00
Alexandre Aubin
f6857625de Stupid encoding issue in migration 0023 2021-06-07 22:06:54 +02:00
Alexandre Aubin
0d8b8f6ca3 (Re)Drop legacy --others_var 2021-06-07 19:22:15 +02:00
Alexandre Aubin
e22c683c34 Fix conflict issue on redis-server because bullseye version changed 2021-06-07 19:17:31 +02:00
Alexandre Aubin
8952c0d7ea Merge branch 'migrate_to_bullseye' into bullseye 2021-06-07 18:16:34 +02:00
Alexandre Aubin
a24ea4dafa Stupid python3 issue in helpers 2021-06-07 16:39:06 +02:00
Alexandre Aubin
8e25895cbf Fix helpers test: SimpleHTTPServer was python2 only, use http.server for python3/bullseye 2021-06-07 16:31:39 +02:00
Alexandre Aubin
7b7595c476 Merge branch 'migrate_to_bullseye' into bullseye 2021-06-07 16:19:10 +02:00
Alexandre Aubin
918d462946 Merge branch 'migrate_to_bullseye' into bullseye 2021-06-04 18:32:24 +02:00
Alexandre Aubin
11a638ed70 Fix 'apps' undefined 2021-06-04 18:22:48 +02:00
Alexandre Aubin
b233c7c08c Stale strings 2021-06-04 17:35:29 +02:00
Alexandre Aubin
4e2e54676a Yolo postgresql 11 -> 13 cluster migration 2021-06-04 17:23:09 +02:00
Alexandre Aubin
24211a90bc Yolo php7.3 -> php7.4 migration 2021-06-04 17:17:27 +02:00
Alexandre Aubin
d6baad6f45 Postgresql version is 13 in bullseye 2021-05-31 19:02:05 +02:00
Alexandre Aubin
c794e63f67 Re-add missing nginx dependency in debian/control ..\! 2021-05-31 16:00:23 +02:00
Alexandre Aubin
ba2428d9b9 equivs-build now sends its logs to stderr but we don't really care about what it says, redirect to debug 2021-05-30 19:07:30 +02:00
Alexandre Aubin
5046e49c8b Many app explicitly specify YNH_PHP_VERSION=7.3, then trying to install php7.3-foo which doesn't exist ... so gotta yolopatch that definition ... 2021-05-30 19:03:44 +02:00
Alexandre Aubin
cb129e2bf1 Fix compat issue in equivs helper 2021-05-30 18:48:26 +02:00
Alexandre Aubin
e2a3a0bedf Fix 'from_version' issue because of ~alpha in current bullseye version name 2021-05-30 17:55:39 +02:00
Alexandre Aubin
91d3d15c32 Bump conflict version for openssl because version in bullseye repo is now 1.1.1k 2021-05-28 17:22:55 +02:00
Alexandre Aubin
1051dbb3cc Misc legacy cleanup 2021-05-28 02:17:40 +02:00
Alexandre Aubin
3fa96fc91b Naive attempt to fix test by adding an apt update 2021-05-28 01:32:33 +02:00
Kay0u
7ff1ce5432 change python version in tests from 3.7 to 3.9 2021-05-28 01:05:06 +02:00
Kay0u
8aae994720 dirty patch to wait for services to finish reloading 2021-05-28 01:03:30 +02:00
Kay0u
b7703c32a1 publicsuffix -> publicsuffix2 2021-05-28 01:02:38 +02:00
Kay0u
a27a4c26df yaml load -> safe_load 2021-05-28 01:02:38 +02:00
Kay0u
c70420438a add python-is-python3 dependency 2021-05-28 01:02:10 +02:00
Kay0u
1f284d74c4 php 7.3 -> 7.4 2021-05-28 01:02:10 +02:00
Kayou
0659667590 Update the conflict version of redis-server 2021-05-28 01:01:04 +02:00
Kayou
ffea5e4048 php-gettext -> php-php-gettext 2021-05-28 01:01:04 +02:00
Kayou
70174af974 bump conflict 2021-05-28 01:01:04 +02:00
Alexandre Aubin
726f4605d2 Bullseye: idk what i'm doing but let's try to bump compat to 13 2021-05-28 01:01:04 +02:00
Alexandre Aubin
876ce48837 Update changelog for 11.0 2021-05-28 01:01:04 +02:00
Alexandre Aubin
ad6d31ce81 Bullseye: Misc updates in control file 2021-05-28 01:00:15 +02:00
Gabriel
dbf19b585c [locales] add "domain_cannot_add_muc_upload" string to en.json 2021-02-23 20:17:53 +01:00
Gabriel
1fb42bb8af [muc subdomain] forbid admin to add a muc subdomain (reserved to xmpp) 2021-02-09 18:54:31 +01:00
Gabriel
4432d28c09 [muc subdomain] add to domain's certificate the alt subdomain muc 2021-02-04 20:40:36 +01:00
389 changed files with 35312 additions and 15859 deletions

View file

@ -1,2 +1,2 @@
[report] [report]
omit=src/yunohost/tests/*,src/yunohost/vendor/*,/usr/lib/moulinette/yunohost/* omit=src/tests/*,src/vendor/*,/usr/lib/moulinette/yunohost/*,/usr/lib/python3/dist-packages/yunohost/tests/*,/usr/lib/python3/dist-packages/yunohost/vendor/*

30
.github/workflows/autoblack.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Check / auto apply Black
on:
push:
branches: [ "dev" ]
jobs:
black:
name: Check / auto apply black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check files using the black formatter
uses: psf/black@stable
id: black
with:
options: "."
continue-on-error: true
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: "Format Python code with Black"
commit-message: ":art: Format Python code with Black"
body: |
This pull request uses the [psf/black](https://github.com/psf/black) formatter.
base: ${{ github.head_ref }} # Creates pull request onto pull request or commit branch
branch: actions/black

42
.github/workflows/codeql.yml vendored Normal file
View file

@ -0,0 +1,42 @@
name: "CodeQL"
on:
push:
branches: [ "dev" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "dev" ]
paths-ignore:
- 'src/tests/**'
schedule:
- cron: '43 12 * * 3'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'python' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: security-extended,security-and-quality
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"

39
.github/workflows/n_updater.yml vendored Normal file
View file

@ -0,0 +1,39 @@
# This workflow allows GitHub Actions to automagically update YunoHost NodeJS helper whenever a new release of n is detected.
name: Check for new n releases
on:
# Allow to manually trigger the workflow
workflow_dispatch:
# Run it every day at 5:00 UTC
schedule:
- cron: '0 5 * * *'
jobs:
updater:
runs-on: ubuntu-latest
steps:
- name: Fetch the source code
uses: actions/checkout@v4
- name: Run the updater script
id: run_updater
run: |
# Download n
wget https://raw.githubusercontent.com/tj/n/master/bin/n --output-document=helpers/vendor/n/n
echo "VERSION=$(sed -n 's/^VERSION=\"\(.*\)\"/\1/p' < helpers/vendor/n/n)" >> $GITHUB_ENV
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
id: cpr
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update n to ${{ env.VERSION }}
committer: 'yunohost-bot <yunohost-bot@users.noreply.github.com>'
author: 'yunohost-bot <yunohost-bot@users.noreply.github.com>'
signoff: false
base: dev
branch: ci-auto-update-n-${{ env.VERSION }}
delete-branch: true
title: 'Upgrade n to ${{ env.VERSION }}'
body: |
Upgrade `n` to ${{ env.VERSION }}
draft: false

11
.gitignore vendored
View file

@ -31,7 +31,14 @@ pip-log.txt
.mr.developer.cfg .mr.developer.cfg
# moulinette lib # moulinette lib
src/yunohost/locales src/locales
# Test # Test
src/yunohost/tests/apps src/tests/apps
# Tmp/local doc stuff
doc/bash-completion.sh
doc/bash_completion.d
doc/openapi.js
doc/openapi.json
doc/swagger

View file

@ -16,6 +16,9 @@ default:
code_quality: code_quality:
tags: tags:
- docker - docker
rules:
- if: $CI_COMMIT_TAG # Only for tags
code_quality_html: code_quality_html:
extends: code_quality extends: code_quality
@ -23,6 +26,9 @@ code_quality_html:
REPORT_FORMAT: html REPORT_FORMAT: html
artifacts: artifacts:
paths: [gl-code-quality-report.html] paths: [gl-code-quality-report.html]
rules:
- if: $CI_COMMIT_TAG # Only for tags
# see: https://docs.gitlab.com/ee/ci/yaml/#switch-between-branch-pipelines-and-merge-request-pipelines # see: https://docs.gitlab.com/ee/ci/yaml/#switch-between-branch-pipelines-and-merge-request-pipelines
workflow: workflow:
@ -30,14 +36,19 @@ workflow:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" # If we move to gitlab one day - if: $CI_PIPELINE_SOURCE == "merge_request_event" # If we move to gitlab one day
- if: $CI_PIPELINE_SOURCE == "external_pull_request_event" # For github PR - if: $CI_PIPELINE_SOURCE == "external_pull_request_event" # For github PR
- if: $CI_COMMIT_TAG # For tags - if: $CI_COMMIT_TAG # For tags
- if: $CI_COMMIT_REF_NAME == "ci-format-dev" # Ignore black formatting branch created by the CI - if: $CI_COMMIT_REF_NAME == "ci-format-$CI_DEFAULT_BRANCH" # Ignore black formatting branch created by the CI
when: never
- if: $CI_COMMIT_REF_NAME == "actions/black" # Ignore black formatting branch created by the CI
when: never when: never
- if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push" # If it's not the default branch and if it's a push, then do not trigger a build - if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push" # If it's not the default branch and if it's a push, then do not trigger a build
when: never when: never
- when: always - when: always
variables: variables:
YNH_BUILD_DIR: "ynh-build" GIT_CLONE_PATH: '$CI_BUILDS_DIR/$CI_COMMIT_SHA/$CI_JOB_ID'
YNH_SOURCE: "https://github.com/yunohost"
YNH_DEBIAN: "bullseye"
YNH_SKIP_DIAGNOSIS_DURING_UPGRADE: "true"
include: include:
- template: Code-Quality.gitlab-ci.yml - template: Code-Quality.gitlab-ci.yml

View file

@ -1,20 +1,22 @@
.build-stage: .build-stage:
stage: build stage: build
image: "before-install" image: "build-and-lint"
variables: variables:
YNH_SOURCE: "https://github.com/yunohost" YNH_BUILD_DIR: "$GIT_CLONE_PATH/build"
before_script: before_script:
- mkdir -p $YNH_BUILD_DIR - mkdir -p $YNH_BUILD_DIR
artifacts: artifacts:
paths: paths:
- $YNH_BUILD_DIR/*.deb - ./*.deb
.build_script: &build_script .build_script: &build_script
- cd $YNH_BUILD_DIR/$PACKAGE - cd $YNH_BUILD_DIR/$PACKAGE
- VERSION=$(dpkg-parsechangelog -S Version 2>/dev/null) - VERSION=$(dpkg-parsechangelog -S Version 2>/dev/null)
- VERSION_NIGHTLY="${VERSION}+$(date +%Y%m%d%H%M)" - VERSION_TIMESTAMPED="${VERSION}+$(date +%Y%m%d%H%M)"
- dch --package "${PACKAGE}" --force-bad-version -v "${VERSION_NIGHTLY}" -D "unstable" --force-distribution "Daily build." - dch --package "${PACKAGE}" --force-bad-version -v "${VERSION_TIMESTAMPED}" -D "unstable" --force-distribution "CI build."
- debuild --no-lintian -us -uc - debuild --no-lintian -us -uc
- cp $YNH_BUILD_DIR/*.deb ${CI_PROJECT_DIR}/
- cd ${CI_PROJECT_DIR}
######################################## ########################################
# BUILD DEB # BUILD DEB
@ -29,18 +31,16 @@ build-yunohost:
- mkdir -p $YNH_BUILD_DIR/$PACKAGE - mkdir -p $YNH_BUILD_DIR/$PACKAGE
- cat archive.tar.gz | tar -xz -C $YNH_BUILD_DIR/$PACKAGE - cat archive.tar.gz | tar -xz -C $YNH_BUILD_DIR/$PACKAGE
- rm archive.tar.gz - rm archive.tar.gz
- DEBIAN_FRONTEND=noninteractive apt --assume-yes -o Dpkg::Options::="--force-confold" build-dep $(pwd)/$YNH_BUILD_DIR/$PACKAGE - DEBIAN_FRONTEND=noninteractive apt --assume-yes -o Dpkg::Options::="--force-confold" build-dep $YNH_BUILD_DIR/$PACKAGE
- *build_script - *build_script
build-ssowat: build-ssowat:
extends: .build-stage extends: .build-stage
variables: variables:
PACKAGE: "ssowat" PACKAGE: "ssowat"
script: script:
- DEBIAN_DEPENDS=$(cat debian/control | tr "," "\n" | grep -Po "ssowat \([>,=,<]+ .*\)" | grep -Po "[0-9\.]+") - git clone $YNH_SOURCE/$PACKAGE -b $CI_COMMIT_REF_NAME $YNH_BUILD_DIR/$PACKAGE --depth 1 || git clone $YNH_SOURCE/$PACKAGE -b $YNH_DEBIAN $YNH_BUILD_DIR/$PACKAGE --depth 1 || git clone $YNH_SOURCE/$PACKAGE $YNH_BUILD_DIR/$PACKAGE --depth 1
- git clone $YNH_SOURCE/$PACKAGE -b $CI_COMMIT_REF_NAME $YNH_BUILD_DIR/$PACKAGE --depth 1 || git clone $YNH_SOURCE/$PACKAGE -b $DEBIAN_DEPENDS $YNH_BUILD_DIR/$PACKAGE --depth 1 || git clone $YNH_SOURCE/$PACKAGE $YNH_BUILD_DIR/$PACKAGE --depth 1 - DEBIAN_FRONTEND=noninteractive apt --assume-yes -o Dpkg::Options::="--force-confold" build-dep $YNH_BUILD_DIR/$PACKAGE
- DEBIAN_FRONTEND=noninteractive apt --assume-yes -o Dpkg::Options::="--force-confold" build-dep $(pwd)/$YNH_BUILD_DIR/$PACKAGE
- *build_script - *build_script
build-moulinette: build-moulinette:
@ -48,7 +48,6 @@ build-moulinette:
variables: variables:
PACKAGE: "moulinette" PACKAGE: "moulinette"
script: script:
- DEBIAN_DEPENDS=$(cat debian/control | tr "," "\n" | grep -Po "moulinette \([>,=,<]+ .*\)" | grep -Po "[0-9\.]+") - git clone $YNH_SOURCE/$PACKAGE -b $CI_COMMIT_REF_NAME $YNH_BUILD_DIR/$PACKAGE --depth 1 || git clone $YNH_SOURCE/$PACKAGE -b $YNH_DEBIAN $YNH_BUILD_DIR/$PACKAGE --depth 1 || git clone $YNH_SOURCE/$PACKAGE $YNH_BUILD_DIR/$PACKAGE --depth 1
- git clone $YNH_SOURCE/$PACKAGE -b $CI_COMMIT_REF_NAME $YNH_BUILD_DIR/$PACKAGE --depth 1 || git clone $YNH_SOURCE/$PACKAGE -b $DEBIAN_DEPENDS $YNH_BUILD_DIR/$PACKAGE --depth 1 || git clone $YNH_SOURCE/$PACKAGE $YNH_BUILD_DIR/$PACKAGE --depth 1 - DEBIAN_FRONTEND=noninteractive apt --assume-yes -o Dpkg::Options::="--force-confold" build-dep $YNH_BUILD_DIR/$PACKAGE
- DEBIAN_FRONTEND=noninteractive apt --assume-yes -o Dpkg::Options::="--force-confold" build-dep $(pwd)/$YNH_BUILD_DIR/$PACKAGE
- *build_script - *build_script

View file

@ -4,24 +4,28 @@
generate-helpers-doc: generate-helpers-doc:
stage: doc stage: doc
image: "before-install" image: "build-and-lint"
needs: [] needs: []
before_script: before_script:
- apt-get update -y && apt-get install git hub -y
- git config --global user.email "yunohost@yunohost.org" - git config --global user.email "yunohost@yunohost.org"
- git config --global user.name "$GITHUB_USER" - git config --global user.name "$GITHUB_USER"
script: script:
- cd doc - cd doc
- python3 generate_helper_doc.py - python3 generate_helper_doc.py 2
- python3 generate_helper_doc.py 2.1
- python3 generate_resource_doc.py > resources.md
- hub clone https://$GITHUB_TOKEN:x-oauth-basic@github.com/YunoHost/doc.git doc_repo - hub clone https://$GITHUB_TOKEN:x-oauth-basic@github.com/YunoHost/doc.git doc_repo
- cp helpers.md doc_repo/pages/04.contribute/04.packaging_apps/11.helpers/packaging_apps_helpers.md - cp helpers.v2.md doc_repo/pages/06.contribute/10.packaging_apps/20.scripts/10.helpers/packaging_app_scripts_helpers.md
- cp helpers.v2.1.md doc_repo/pages/06.contribute/10.packaging_apps/20.scripts/12.helpers21/packaging_app_scripts_helpers_v21.md
- cp resources.md doc_repo/pages/06.contribute/10.packaging_apps/10.manifest/10.appresources/packaging_app_manifest_resources.md
- cd doc_repo - cd doc_repo
# replace ${CI_COMMIT_REF_NAME} with ${CI_COMMIT_TAG} ? # replace ${CI_COMMIT_REF_NAME} with ${CI_COMMIT_TAG} ?
- hub checkout -b "${CI_COMMIT_REF_NAME}" - hub checkout -b "${CI_COMMIT_REF_NAME}"
- hub commit -am "[CI] Helper for ${CI_COMMIT_REF_NAME}" - hub commit -am "[CI] Update app helpers/resources for ${CI_COMMIT_REF_NAME}"
- hub pull-request -m "[CI] Helper for ${CI_COMMIT_REF_NAME}" -p # GITHUB_USER and GITHUB_TOKEN registered here https://gitlab.com/yunohost/yunohost/-/settings/ci_cd - hub pull-request -m "[CI] Update app helpers/resources for ${CI_COMMIT_REF_NAME}" -p # GITHUB_USER and GITHUB_TOKEN registered here https://gitlab.com/yunohost/yunohost/-/settings/ci_cd
artifacts: artifacts:
paths: paths:
- doc/helpers.md - doc/helpers.md
- doc/resources.md
only: only:
- tags - tags

View file

@ -14,16 +14,14 @@
upgrade: upgrade:
extends: .install-stage extends: .install-stage
image: "after-install" image: "core-tests"
script: script:
- apt-get update -o Acquire::Retries=3 - DEBIAN_FRONTEND=noninteractive SUDO_FORCE_REMOVE=yes apt --assume-yes -o Dpkg::Options::="--force-confold" --allow-downgrades install ${CI_PROJECT_DIR}/*.deb
- DEBIAN_FRONTEND=noninteractive SUDO_FORCE_REMOVE=yes apt --assume-yes -o Dpkg::Options::="--force-confold" --allow-downgrades install ./$YNH_BUILD_DIR/*.deb
install-postinstall: install-postinstall:
extends: .install-stage extends: .install-stage
image: "before-install" image: "before-install"
script: script:
- apt-get update -o Acquire::Retries=3 - DEBIAN_FRONTEND=noninteractive SUDO_FORCE_REMOVE=yes apt --assume-yes -o Dpkg::Options::="--force-confold" --allow-downgrades install ${CI_PROJECT_DIR}/*.deb
- DEBIAN_FRONTEND=noninteractive SUDO_FORCE_REMOVE=yes apt --assume-yes -o Dpkg::Options::="--force-confold" --allow-downgrades install ./$YNH_BUILD_DIR/*.deb - yunohost tools postinstall -d domain.tld -u syssa -F 'Syssa Mine' -p the_password --ignore-dyndns --force-diskspace
- yunohost tools postinstall -d domain.tld -p the_password --ignore-dyndns --force-diskspace

View file

@ -3,47 +3,24 @@
######################################## ########################################
# later we must fix lint and format-check jobs and remove "allow_failure" # later we must fix lint and format-check jobs and remove "allow_failure"
--- lint39:
lint37:
stage: lint stage: lint
image: "before-install" image: "build-and-lint"
needs: [] needs: []
allow_failure: true allow_failure: true
script: script:
- tox -e py37-lint - tox -e py39-lint
invalidcode37: invalidcode39:
stage: lint stage: lint
image: "before-install" image: "build-and-lint"
needs: [] needs: []
script: script:
- tox -e py37-invalidcode - tox -e py39-invalidcode
mypy: mypy:
stage: lint stage: lint
image: "before-install" image: "build-and-lint"
needs: [] needs: []
script: script:
- tox -e py37-mypy - tox -e py39-mypy
black:
stage: lint
image: "before-install"
needs: []
before_script:
- apt-get update -y && apt-get install git hub -y
- git config --global user.email "yunohost@yunohost.org"
- git config --global user.name "$GITHUB_USER"
- hub clone --branch ${CI_COMMIT_REF_NAME} "https://$GITHUB_TOKEN:x-oauth-basic@github.com/YunoHost/yunohost.git" github_repo
- cd github_repo
script:
# create a local branch that will overwrite distant one
- git checkout -b "ci-format-${CI_COMMIT_REF_NAME}" --no-track
- tox -e py37-black-run
- '[ $(git diff | wc -l) != 0 ] || exit 0' # stop if there is nothing to commit
- git commit -am "[CI] Format code with Black" || true
- git push -f origin "ci-format-${CI_COMMIT_REF_NAME}":"ci-format-${CI_COMMIT_REF_NAME}"
- hub pull-request -m "[CI] Format code with Black" -b Yunohost:dev -p || true # GITHUB_USER and GITHUB_TOKEN registered here https://gitlab.com/yunohost/yunohost/-/settings/ci_cd
only:
refs:
- dev

View file

@ -1,17 +1,16 @@
.install_debs: &install_debs .install_debs: &install_debs
- apt-get update -o Acquire::Retries=3 - DEBIAN_FRONTEND=noninteractive SUDO_FORCE_REMOVE=yes apt --assume-yes -o Dpkg::Options::="--force-confold" --allow-downgrades install ${CI_PROJECT_DIR}/*.deb
- DEBIAN_FRONTEND=noninteractive SUDO_FORCE_REMOVE=yes apt --assume-yes -o Dpkg::Options::="--force-confold" --allow-downgrades install ./$YNH_BUILD_DIR/*.deb
.test-stage: .test-stage:
stage: test stage: test
image: "after-install" image: "core-tests"
variables: variables:
PYTEST_ADDOPTS: "--color=yes" PYTEST_ADDOPTS: "--color=yes"
before_script: before_script:
- *install_debs - *install_debs
cache: cache:
paths: paths:
- src/yunohost/tests/apps - src/tests/apps
key: "$CI_JOB_STAGE-$CI_COMMIT_REF_SLUG" key: "$CI_JOB_STAGE-$CI_COMMIT_REF_SLUG"
needs: needs:
- job: build-yunohost - job: build-yunohost
@ -22,7 +21,6 @@
artifacts: true artifacts: true
- job: upgrade - job: upgrade
######################################## ########################################
# TESTS # TESTS
######################################## ########################################
@ -34,11 +32,10 @@ full-tests:
PYTEST_ADDOPTS: "--color=yes" PYTEST_ADDOPTS: "--color=yes"
before_script: before_script:
- *install_debs - *install_debs
- yunohost tools postinstall -d domain.tld -p the_password --ignore-dyndns --force-diskspace - pip install mock pip pyOpenSSL pytest pytest-cov pytest-mock pytest-sugar requests-mock "packaging<22"
- yunohost tools postinstall -d domain.tld -u syssa -F 'Syssa Mine' -p the_password --ignore-dyndns --force-diskspace
script: script:
- python3 -m pytest --cov=yunohost tests/ src/yunohost/tests/ data/hooks/diagnosis/ --junitxml=report.xml - python3 -m pytest --cov=yunohost tests/ src/tests/ --junitxml=report.xml
- cd tests
- bash test_helpers.sh
needs: needs:
- job: build-yunohost - job: build-yunohost
artifacts: true artifacts: true
@ -46,163 +43,158 @@ full-tests:
artifacts: true artifacts: true
- job: build-moulinette - job: build-moulinette
artifacts: true artifacts: true
coverage: '/TOTAL.*\s+(\d+%)/'
artifacts: artifacts:
reports: reports:
junit: report.xml junit: report.xml
test-i18n-keys:
extends: .test-stage
script:
- python3 -m pytest tests/test_i18n_keys.py
only:
changes:
- locales/en.json
- src/yunohost/*.py
- data/hooks/diagnosis/*.py
test-translation-format-consistency:
extends: .test-stage
script:
- python3 -m pytest tests/test_translation_format_consistency.py
only:
changes:
- locales/*
test-actionmap: test-actionmap:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest tests/test_actionmap.py - python3 -m pytest tests/test_actionmap.py
only: only:
changes: changes:
- data/actionsmap/*.yml - share/actionsmap.yml
test-helpers: test-helpers2:
extends: .test-stage extends: .test-stage
script: script:
- cd tests - cd tests
- bash test_helpers.sh - bash test_helpers.sh
only:
changes: test-helpers2.1:
- data/helpers.d/* extends: .test-stage
script:
- cd tests
- bash test_helpers.sh 2.1
test-domains: test-domains:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest src/yunohost/tests/test_domains.py - python3 -m pytest src/tests/test_domains.py
only: only:
changes: changes:
- src/yunohost/domain.py - src/domain.py
test-dns: test-dns:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest src/yunohost/tests/test_dns.py - python3 -m pytest src/tests/test_dns.py
only: only:
changes: changes:
- src/yunohost/dns.py - src/dns.py
- src/yunohost/utils/dns.py - src/utils/dns.py
test-apps: test-apps:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest src/yunohost/tests/test_apps.py - python3 -m pytest src/tests/test_apps.py
only: only:
changes: changes:
- src/yunohost/app.py - src/app.py
test-appscatalog: test-appscatalog:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest src/yunohost/tests/test_app_catalog.py - python3 -m pytest src/tests/test_app_catalog.py
only: only:
changes: changes:
- src/yunohost/app_calalog.py - src/app_calalog.py
test-appurl: test-appurl:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest src/yunohost/tests/test_appurl.py - python3 -m pytest src/tests/test_appurl.py
only: only:
changes: changes:
- src/yunohost/app.py - src/app.py
test-questions: test-questions:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest src/yunohost/tests/test_questions.py - python3 -m pytest src/tests/test_questions.py
only: only:
changes: changes:
- src/yunohost/utils/config.py - src/utils/config.py
test-app-config: test-app-config:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest src/yunohost/tests/test_app_config.py - python3 -m pytest src/tests/test_app_config.py
only: only:
changes: changes:
- src/yunohost/app.py - src/app.py
- src/yunohost/utils/config.py - src/utils/config.py
test-app-resources:
extends: .test-stage
script:
- python3 -m pytest src/tests/test_app_resources.py
only:
changes:
- src/app.py
- src/utils/resources.py
test-changeurl: test-changeurl:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest src/yunohost/tests/test_changeurl.py - python3 -m pytest src/tests/test_changeurl.py
only: only:
changes: changes:
- src/yunohost/app.py - src/app.py
test-backuprestore: test-backuprestore:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest src/yunohost/tests/test_backuprestore.py - python3 -m pytest src/tests/test_backuprestore.py
only: only:
changes: changes:
- src/yunohost/backup.py - src/backup.py
test-permission: test-permission:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest src/yunohost/tests/test_permission.py - python3 -m pytest src/tests/test_permission.py
only: only:
changes: changes:
- src/yunohost/permission.py - src/permission.py
test-settings: test-settings:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest src/yunohost/tests/test_settings.py - python3 -m pytest src/tests/test_settings.py
only: only:
changes: changes:
- src/yunohost/settings.py - src/settings.py
test-user-group: test-user-group:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest src/yunohost/tests/test_user-group.py - python3 -m pytest src/tests/test_user-group.py
only: only:
changes: changes:
- src/yunohost/user.py - src/user.py
test-regenconf: test-regenconf:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest src/yunohost/tests/test_regenconf.py - python3 -m pytest src/tests/test_regenconf.py
only: only:
changes: changes:
- src/yunohost/regenconf.py - src/regenconf.py
test-service: test-service:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest src/yunohost/tests/test_service.py - python3 -m pytest src/tests/test_service.py
only: only:
changes: changes:
- src/yunohost/service.py - src/service.py
test-ldapauth: test-ldapauth:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest src/yunohost/tests/test_ldapauth.py - python3 -m pytest src/tests/test_ldapauth.py
only: only:
changes: changes:
- src/yunohost/authenticators/*.py - src/authenticators/*.py

View file

@ -1,27 +1,34 @@
######################################## ########################################
# TRANSLATION # TRANSLATION
######################################## ########################################
test-i18n-keys:
stage: translation
script:
- python3 maintenance/missing_i18n_keys.py --check
only:
changes:
- locales/en.json
- src/*.py
- src/diagnosers/*.py
autofix-translated-strings: autofix-translated-strings:
stage: translation stage: translation
image: "before-install" image: "build-and-lint"
needs: [] needs: []
before_script: before_script:
- apt-get update -y && apt-get install git hub -y
- git config --global user.email "yunohost@yunohost.org" - git config --global user.email "yunohost@yunohost.org"
- git config --global user.name "$GITHUB_USER" - git config --global user.name "$GITHUB_USER"
- git remote set-url origin https://$GITHUB_TOKEN:x-oauth-basic@github.com/YunoHost/yunohost.git - hub clone --branch ${CI_COMMIT_REF_NAME} "https://$GITHUB_TOKEN:x-oauth-basic@github.com/YunoHost/yunohost.git" github_repo
- cd github_repo
script: script:
- cd tests # Maybe move this script location to another folder?
# create a local branch that will overwrite distant one # create a local branch that will overwrite distant one
- git checkout -b "ci-autofix-translated-strings-${CI_COMMIT_REF_NAME}" --no-track - git checkout -b "ci-autofix-translated-strings-${CI_COMMIT_REF_NAME}" --no-track
- python3 remove_stale_translated_strings.py - python3 maintenance/missing_i18n_keys.py --fix
- python3 autofix_locale_format.py - python3 maintenance/autofix_locale_format.py
- python3 reformat_locales.py - '[ $(git diff --ignore-blank-lines --ignore-all-space --ignore-space-at-eol --ignore-cr-at-eol | wc -l) != 0 ] || exit 0' # stop if there is nothing to commit
- '[ $(git diff -w | wc -l) != 0 ] || exit 0' # stop if there is nothing to commit
- git commit -am "[CI] Reformat / remove stale translated strings" || true - git commit -am "[CI] Reformat / remove stale translated strings" || true
- git push -f origin "HEAD":"ci-remove-stale-translated-strings-${CI_COMMIT_REF_NAME}" - git push -f origin "ci-autofix-translated-strings-${CI_COMMIT_REF_NAME}":"ci-remove-stale-translated-strings-${CI_COMMIT_REF_NAME}"
- hub pull-request -m "[CI] Reformat / remove stale translated strings" -b Yunohost:dev -p || true # GITHUB_USER and GITHUB_TOKEN registered here https://gitlab.com/yunohost/yunohost/-/settings/ci_cd - hub pull-request -m "[CI] Reformat / remove stale translated strings" -b Yunohost:$CI_COMMIT_REF_NAME -p || true # GITHUB_USER and GITHUB_TOKEN registered here https://gitlab.com/yunohost/yunohost/-/settings/ci_cd
only: only:
variables: variables:
- $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH - $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH

View file

@ -1,4 +0,0 @@
extraction:
python:
python_setup:
version: "3"

View file

@ -1,101 +0,0 @@
YunoHost core contributors
==========================
YunoHost is built and maintained by the YunoHost project community.
Everyone is encouraged to submit issues and changes, and to contribute in other ways -- see https://yunohost.org/contribute to find out how.
--
Initial YunoHost core was built by Kload & beudbeud, for YunoHost v2.
Most of code was written by Kload and jerome, with help of numerous contributors.
Translation is made by a bunch of lovely people all over the world.
We would like to thank anyone who ever helped the YunoHost project <3
YunoHost core Contributors
--------------------------
- Jérôme Lebleu
- Kload
- Laurent 'Bram' Peuch
- Julien 'ju' Malik
- opi
- Aleks
- Adrien 'beudbeud' Beudin
- M5oul
- Valentin 'zamentur' / 'ljf' Grimaud
- Jocelyn Delalande
- infertux
- Taziden
- ZeHiro
- Josue-T
- nahoj
- a1ex
- JimboJoe
- vetetix
- jellium
- Sebastien 'sebian' Badia
- lmangani
- Julien Vaubourg
- thardev
- zimo2001
YunoHost core Translators
-------------------------
If you want to help translation, please visit https://translate.yunohost.org/projects/yunohost/yunohost/
### Dutch
- DUBWiSE
- Jeroen Keerl
- marut
### English
- Bugsbane
- rokaz
### French
- aoz roon
- Genma
- Jean-Baptiste Holcroft
- Jean P.
- Jérôme Lebleu
- Lapineige
- paddy
### German
- david.bartke
- Fabian Gruber
- Felix Bartels
- Jeroen Keerl
- martin kistner
- Philip Gatzka
### Hindi
- Anmol
### Italian
- bricabrac
- Thomas Bille
### Portuguese
- Deleted User
- Trollken
### Spanish
- Juanu

View file

@ -5,12 +5,12 @@
<h1 align="center">YunoHost</h1> <h1 align="center">YunoHost</h1>
<div align="center"> <div align="center">
![Version](https://img.shields.io/github/v/tag/yunohost/yunohost?label=version&sort=semver) ![Version](https://img.shields.io/github/v/tag/yunohost/yunohost?label=version&sort=semver)
[![Build status](https://shields.io/gitlab/pipeline/yunohost/yunohost/dev)](https://gitlab.com/yunohost/yunohost/-/pipelines) [![Pipeline status](https://gitlab.com/yunohost/yunohost/badges/dev/pipeline.svg)](https://gitlab.com/yunohost/yunohost/-/pipelines)
![Test coverage](https://img.shields.io/gitlab/coverage/yunohost/yunohost/dev) ![Test coverage](https://gitlab.com/yunohost/yunohost/badges/dev/coverage.svg)
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/YunoHost/yunohost.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/YunoHost/yunohost/context:python) [![Project license](https://img.shields.io/gitlab/license/yunohost/yunohost)](https://github.com/YunoHost/yunohost/blob/dev/LICENSE)
[![GitHub license](https://img.shields.io/github/license/YunoHost/yunohost)](https://github.com/YunoHost/yunohost/blob/dev/LICENSE) [![CodeQL](https://github.com/yunohost/yunohost/workflows/CodeQL/badge.svg)](https://github.com/YunoHost/yunohost/security/code-scanning)
[![Mastodon Follow](https://img.shields.io/mastodon/follow/28084)](https://mastodon.social/@yunohost) [![Mastodon Follow](https://img.shields.io/mastodon/follow/28084)](https://mastodon.social/@yunohost)
</div> </div>
@ -19,28 +19,49 @@ YunoHost is an operating system aiming to simplify as much as possible the admin
This repository corresponds to the core code of YunoHost, mainly written in Python and Bash. This repository corresponds to the core code of YunoHost, mainly written in Python and Bash.
- [Project features](https://yunohost.org/#/whatsyunohost) - [Project features](https://yunohost.org/whatsyunohost)
- [Project website](https://yunohost.org) - [Project website](https://yunohost.org)
- [Install documentation](https://yunohost.org/install) - [Install documentation](https://yunohost.org/install)
- [Issue tracker](https://github.com/YunoHost/issues) - [Issue tracker](https://github.com/YunoHost/issues)
# Screenshots ## Screenshots
Webadmin ([Yunohost-Admin](https://github.com/YunoHost/yunohost-admin)) | Single sign-on user portal ([SSOwat](https://github.com/YunoHost/ssowat)) Webadmin ([Yunohost-Admin](https://github.com/YunoHost/yunohost-admin)) | Single sign-on user portal ([SSOwat](https://github.com/YunoHost/ssowat))
--- | --- --- | ---
![](https://raw.githubusercontent.com/YunoHost/doc/master/images/webadmin.png) | ![](https://raw.githubusercontent.com/YunoHost/doc/master/images/user_panel.png) ![Web admin insterface screenshot](https://raw.githubusercontent.com/YunoHost/doc/master/images/webadmin.png) | ![User portal screenshot](https://raw.githubusercontent.com/YunoHost/doc/master/images/user_panel.png)
## Contributing ## Contributing
- You can learn how to get started with developing on YunoHost by reading [this piece of documentation](https://yunohost.org/dev). - You can learn how to get started with developing on YunoHost by reading [this piece of documentation](https://yunohost.org/dev).
- Come chat with us on the [dev chatroom](https://yunohost.org/#/chat_rooms) ! - Come chat with us on the [dev chatroom](https://yunohost.org/chat_rooms)!
- You can help translate YunoHost on our [translation platform](https://translate.yunohost.org/engage/yunohost/?utm_source=widget) - You can help translate YunoHost on our [translation platform](https://translate.yunohost.org/engage/yunohost/?utm_source=widget).
<p align="center"> <p align="center">
<img src="https://translate.yunohost.org/widgets/yunohost/-/core/horizontal-auto.svg" alt="Translation status" /> <img alt="View of the translation rate for the different languages available in YunoHost" src="https://translate.yunohost.org/widgets/yunohost/-/core/horizontal-auto.svg" alt="Translation status" />
</p> </p>
## License ## License
As [other components of YunoHost](https://yunohost.org/#/faq_en), this repository is licensed under GNU AGPL v3. As [other components of YunoHost](https://yunohost.org/faq), this repository is licensed under GNU AGPL v3.
## They support us <3
We are thankful for our sponsors providing us with infrastructure and grants!
<div align="center">
<p style="margin-left:auto;margin-right:auto;">
<a style="padding: 5px;" href="https://nlnet.nl"><img alt="NLnet Foundation" src="https://user-images.githubusercontent.com/36127788/198088570-823c40bd-7ac3-44e3-a8ee-e7a9f14b47ac.png" width="150px"/></a>
<a style="padding: 5px;" href="https://www.ngi.eu"><img alt="Next Generation Internet" src="https://user-images.githubusercontent.com/36127788/198088663-daf587b9-fd09-4c00-aaf2-37c803939c94.png" width="130px"/></a>
<a style="padding: 5px;" href="https://www.codelutin.com"><img alt="Code Lutin" src="https://user-images.githubusercontent.com/36127788/198088737-d37b6674-379c-4be4-9d74-b93b6ad318d1.png" width="100px"/></a>
</p>
<p style="margin-left:auto;margin-right:auto;">
<a style="padding: 5px;" href="https://www.globenet.org"><img alt="Globenet" src="https://user-images.githubusercontent.com/36127788/198088794-751129ab-737d-4d99-9f35-5e01845dcdfe.png" width="150px"/></a>
<a style="padding: 5px;" href="https://www.gitoyen.net"><img alt="Gitoyen" src="https://user-images.githubusercontent.com/36127788/198088931-f16f4af4-57ae-42e9-8d42-fb3e2d8d7ee3.png" width="150px"/></a>
<a style="padding: 5px;" href="https://tetaneutral.net"><img alt="tetaneutral.net" src="https://user-images.githubusercontent.com/36127788/198088995-3ad9c34d-9807-4ead-934b-44df97d3c552.png" width="90px"/></a>
<a style="padding: 5px;" href="https://ldn-fai.net"><img alt="LDN (Lorraine Data Network)" src="https://user-images.githubusercontent.com/36127788/198089086-a4089d51-9173-4081-bd2e-fa1ac3378e49.png" width="120px"/></a>
<a style="padding: 5px;" href="https://www.nbs-system.com"><img alt="NBS System" src="https://user-images.githubusercontent.com/36127788/198089161-4cc0b7b7-bf56-4798-892e-a76112497921.png" width="130px"/></a>
</p>
</div>
This project was funded through the [NGI0 PET](https://nlnet.nl/PET) Fund, a fund established by NLnet with financial support from the European Commission's [Next Generation Internet](https://ngi.eu/) programme, under the aegis of DG Communications Networks, Content and Technology under grant agreement No 825310. If you're interested, [check out how to apply in this video](https://media.ccc.de/v/36c3-10795-ngi_zero_a_treasure_trove_of_it_innovation)!

View file

@ -1,67 +1,78 @@
#! /usr/bin/python3 #! /usr/bin/python3
# -*- coding: utf-8 -*-
import os import os
import sys import sys
import argparse import argparse
sys.path.insert(0, "/usr/lib/moulinette/")
import yunohost import yunohost
def _parse_cli_args(): def _parse_cli_args():
"""Parse additional arguments for the cli""" """Parse additional arguments for the cli"""
parser = argparse.ArgumentParser(add_help=False) parser = argparse.ArgumentParser(add_help=False)
parser.add_argument('--output-as', parser.add_argument(
choices=['json', 'plain', 'none'], default=None, "--output-as",
help="Output result in another format" choices=["json", "plain", "none"],
default=None,
help="Output result in another format",
) )
parser.add_argument('--debug', parser.add_argument(
action='store_true', default=False, "--debug",
help="Log and print debug messages" action="store_true",
default=False,
help="Log and print debug messages",
) )
parser.add_argument('--quiet', parser.add_argument(
action='store_true', default=False, "--quiet", action="store_true", default=False, help="Don't produce any output"
help="Don't produce any output"
) )
parser.add_argument('--timeout', parser.add_argument(
type=int, default=None, "--version", action="store_true", default=False, help="Display YunoHost packages versions (alias to 'yunohost tools versions')"
help="Number of seconds before this command will timeout because it can't acquire the lock (meaning that another command is currently running), by default there is no timeout and the command will wait until it can get the lock" )
parser.add_argument(
"--timeout",
type=int,
default=None,
help="Number of seconds before this command will timeout because it can't acquire the lock (meaning that another command is currently running), by default there is no timeout and the command will wait until it can get the lock",
) )
# deprecated arguments # deprecated arguments
parser.add_argument('--plain', parser.add_argument(
action='store_true', default=False, help=argparse.SUPPRESS "--plain", action="store_true", default=False, help=argparse.SUPPRESS
) )
parser.add_argument('--json', parser.add_argument(
action='store_true', default=False, help=argparse.SUPPRESS "--json", action="store_true", default=False, help=argparse.SUPPRESS
) )
opts, args = parser.parse_known_args() opts, args = parser.parse_known_args()
# output compatibility # output compatibility
if opts.plain: if opts.plain:
opts.output_as = 'plain' opts.output_as = "plain"
elif opts.json: elif opts.json:
opts.output_as = 'json' opts.output_as = "json"
return (parser, opts, args) return (parser, opts, args)
# Stupid PATH management because sometimes (e.g. some cron job) PATH is only /usr/bin:/bin ... # Stupid PATH management because sometimes (e.g. some cron job) PATH is only /usr/bin:/bin ...
default_path = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" default_path = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
if os.environ["PATH"] != default_path: if os.environ["PATH"] != default_path:
os.environ["PATH"] = default_path + ":" + os.environ["PATH"] os.environ["PATH"] = default_path + ":" + os.environ["PATH"]
# Main action ---------------------------------------------------------- # Main action ----------------------------------------------------------
if __name__ == '__main__': if __name__ == "__main__":
if os.geteuid() != 0: if os.geteuid() != 0:
sys.stderr.write("\033[1;31mError:\033[0m yunohost command must be " sys.stderr.write(
"run as root or with sudo.\n") "\033[1;31mError:\033[0m yunohost command must be "
"run as root or with sudo.\n"
)
sys.exit(1) sys.exit(1)
parser, opts, args = _parse_cli_args() parser, opts, args = _parse_cli_args()
if opts.version:
args = ["tools", "versions"]
# Execute the action # Execute the action
yunohost.cli( yunohost.cli(
debug=opts.debug, debug=opts.debug,
@ -69,5 +80,5 @@ if __name__ == '__main__':
output_as=opts.output_as, output_as=opts.output_as,
timeout=opts.timeout, timeout=opts.timeout,
args=args, args=args,
parser=parser parser=parser,
) )

View file

@ -1,44 +1,52 @@
#! /usr/bin/python3 #! /usr/bin/python3
# -*- coding: utf-8 -*-
import sys
import argparse import argparse
sys.path.insert(0, "/usr/lib/moulinette/")
import yunohost import yunohost
# Default server configuration # Default server configuration
DEFAULT_HOST = 'localhost' DEFAULT_HOST = "localhost"
DEFAULT_PORT = 6787 DEFAULT_PORT = 6787
def _parse_api_args(): def _parse_api_args():
"""Parse main arguments for the api""" """Parse main arguments for the api"""
parser = argparse.ArgumentParser(add_help=False, parser = argparse.ArgumentParser(
add_help=False,
description="Run the YunoHost API to manage your server.", description="Run the YunoHost API to manage your server.",
) )
srv_group = parser.add_argument_group('server configuration') srv_group = parser.add_argument_group("server configuration")
srv_group.add_argument('-h', '--host', srv_group.add_argument(
action='store', default=DEFAULT_HOST, "-h",
"--host",
action="store",
default=DEFAULT_HOST,
help="Host to listen on (default: %s)" % DEFAULT_HOST, help="Host to listen on (default: %s)" % DEFAULT_HOST,
) )
srv_group.add_argument('-p', '--port', srv_group.add_argument(
action='store', default=DEFAULT_PORT, type=int, "-p",
"--port",
action="store",
default=DEFAULT_PORT,
type=int,
help="Port to listen on (default: %d)" % DEFAULT_PORT, help="Port to listen on (default: %d)" % DEFAULT_PORT,
) )
glob_group = parser.add_argument_group('global arguments') glob_group = parser.add_argument_group("global arguments")
glob_group.add_argument('--debug', glob_group.add_argument(
action='store_true', default=False, "--debug",
action="store_true",
default=False,
help="Set log level to DEBUG", help="Set log level to DEBUG",
) )
glob_group.add_argument('--help', glob_group.add_argument(
action='help', help="Show this help message and exit", "--help",
action="help",
help="Show this help message and exit",
) )
return parser.parse_args() return parser.parse_args()
if __name__ == '__main__': if __name__ == "__main__":
opts = _parse_api_args() opts = _parse_api_args()
# Run the server # Run the server
yunohost.api(debug=opts.debug, host=opts.host, port=opts.port) yunohost.api(debug=opts.debug, host=opts.host, port=opts.port)

View file

@ -21,8 +21,20 @@ def get_network_local_interfaces() -> Dict[str, Dict[str, List[str]]]:
interfaces = { interfaces = {
adapter.name: { adapter.name: {
"ipv4": [ip.ip for ip in adapter.ips if ip.is_IPv4 and ip_address(ip.ip).is_private and not ip_address(ip.ip).is_link_local], "ipv4": [
"ipv6": [ip.ip[0] for ip in adapter.ips if ip.is_IPv6 and ip_address(ip.ip[0]).is_private and not ip_address(ip.ip[0]).is_link_local], ip.ip
for ip in adapter.ips
if ip.is_IPv4
and ip_address(ip.ip).is_private
and not ip_address(ip.ip).is_link_local
],
"ipv6": [
ip.ip[0]
for ip in adapter.ips
if ip.is_IPv6
and ip_address(ip.ip[0]).is_private
and not ip_address(ip.ip[0]).is_link_local
],
} }
for adapter in ifaddr.get_adapters() for adapter in ifaddr.get_adapters()
if adapter.name != "lo" if adapter.name != "lo"
@ -33,7 +45,6 @@ def get_network_local_interfaces() -> Dict[str, Dict[str, List[str]]]:
# Listener class, to detect duplicates on the network # Listener class, to detect duplicates on the network
# Stores the list of servers in its list property # Stores the list of servers in its list property
class Listener: class Listener:
def __init__(self): def __init__(self):
self.list = [] self.list = []
@ -66,14 +77,18 @@ def main() -> bool:
return False return False
if "interfaces" not in config: if "interfaces" not in config:
config["interfaces"] = [interface config["interfaces"] = [
for interface, local_ips in interfaces.items() interface
if local_ips["ipv4"]] for interface, local_ips in interfaces.items()
if local_ips["ipv4"]
]
if "ban_interfaces" in config: if "ban_interfaces" in config:
config["interfaces"] = [interface config["interfaces"] = [
for interface in config["interfaces"] interface
if interface not in config["ban_interfaces"]] for interface in config["interfaces"]
if interface not in config["ban_interfaces"]
]
# Let's discover currently published .local domains accross the network # Let's discover currently published .local domains accross the network
zc = Zeroconf() zc = Zeroconf()
@ -103,14 +118,18 @@ def main() -> bool:
return domain_i return domain_i
config['domains'] = [find_domain_not_already_published(domain) for domain in config['domains']] config["domains"] = [
find_domain_not_already_published(domain) for domain in config["domains"]
]
zcs: Dict[Zeroconf, List[ServiceInfo]] = {} zcs: Dict[Zeroconf, List[ServiceInfo]] = {}
for interface in config["interfaces"]: for interface in config["interfaces"]:
if interface not in interfaces: if interface not in interfaces:
print(f"Interface {interface} listed in config file is not present on system.") print(
f"Interface {interface} listed in config file is not present on system."
)
continue continue
# Only broadcast IPv4 because IPv6 is buggy ... because we ain't using python3-ifaddr >= 0.1.7 # Only broadcast IPv4 because IPv6 is buggy ... because we ain't using python3-ifaddr >= 0.1.7
@ -149,7 +168,9 @@ def main() -> bool:
print("Registering...") print("Registering...")
for zc, infos in zcs.items(): for zc, infos in zcs.items():
for info in infos: for info in infos:
zc.register_service(info, allow_name_change=True, cooperating_responders=True) zc.register_service(
info, allow_name_change=True, cooperating_responders=True
)
try: try:
print("Registered. Press Ctrl+C or stop service to stop.") print("Registered. Press Ctrl+C or stop service to stop.")

View file

@ -1,77 +1,34 @@
#!/bin/bash #!/usr/bin/env python3
set -e import sys
set -u import requests
import json
PASTE_URL="https://paste.yunohost.org" SERVER_URL = "https://paste.yunohost.org"
TIMEOUT = 3
_die() { def create_snippet(data):
printf "Error: %s\n" "$*" try:
exit 1 url = SERVER_URL + "/documents"
} response = requests.post(url, data=data.encode('utf-8'), timeout=TIMEOUT)
response.raise_for_status()
dockey = json.loads(response.text)['key']
return SERVER_URL + "/raw/" + dockey
except requests.exceptions.RequestException as e:
print("\033[31mError: {}\033[0m".format(e))
sys.exit(1)
check_dependencies() {
curl -V > /dev/null 2>&1 || _die "This script requires curl."
}
paste_data() { def main():
json=$(curl -X POST -s -d "$1" "${PASTE_URL}/documents") output = sys.stdin.read()
[[ -z "$json" ]] && _die "Unable to post the data to the server."
key=$(echo "$json" \ if not output:
| python -c 'import json,sys;o=json.load(sys.stdin);print o["key"]' \ print("\033[31mError: No input received from stdin.\033[0m")
2>/dev/null) sys.exit(1)
[[ -z "$key" ]] && _die "Unable to parse the server response."
echo "${PASTE_URL}/${key}" url = create_snippet(output)
}
usage() { print("\033[32mURL: {}\033[0m".format(url))
printf "Usage: ${0} [OPTION]...
Read from input stream and paste the data to the YunoHost if __name__ == "__main__":
Haste server. main()
For example, to paste the output of the YunoHost diagnosis, you
can simply execute the following:
yunohost diagnosis show | ${0}
It will return the URL where you can access the pasted data.
Options:
-h, --help show this help message and exit
"
}
main() {
# parse options
while (( ${#} )); do
case "${1}" in
--help|-h)
usage
exit 0
;;
*)
echo "Unknown parameter detected: ${1}" >&2
echo >&2
usage >&2
exit 1
;;
esac
shift 1
done
# check input stream
read -t 0 || {
echo -e "Invalid usage: No input is provided.\n" >&2
usage
exit 1
}
paste_data "$(cat)"
}
check_dependencies
main "${@}"

View file

@ -56,7 +56,7 @@ EOF
echo "$LOGO_AND_FINGERPRINTS" > /etc/issue echo "$LOGO_AND_FINGERPRINTS" > /etc/issue
if [[ ! -f /etc/yunohost/installed ]] if ! groups | grep -q all_users && [[ ! -f /etc/yunohost/installed ]]
then then
chvt 2 chvt 2
@ -69,7 +69,7 @@ then
You should now proceed with YunoHost post-installation. This is where you will You should now proceed with YunoHost post-installation. This is where you will
be asked for: be asked for:
- the main domain of your server; - the main domain of your server;
- the administration password. - the username and password for the first admin
You can perform this step: You can perform this step:
- from your web browser, by accessing: https://yunohost.local/ or ${local_ip} - from your web browser, by accessing: https://yunohost.local/ or ${local_ip}

View file

@ -10,7 +10,7 @@ mail_uid = 500
protocols = imap sieve {% if pop3_enabled == "True" %}pop3{% endif %} protocols = imap sieve {% if pop3_enabled == "True" %}pop3{% endif %}
mail_plugins = $mail_plugins quota mail_plugins = $mail_plugins quota notify push_notification
############################################################################### ###############################################################################
@ -21,9 +21,14 @@ ssl = required
ssl_cert = </etc/yunohost/certs/{{ main_domain }}/crt.pem ssl_cert = </etc/yunohost/certs/{{ main_domain }}/crt.pem
ssl_key = </etc/yunohost/certs/{{ main_domain }}/key.pem ssl_key = </etc/yunohost/certs/{{ main_domain }}/key.pem
{% for domain in domain_list.split() %}{% if domain != main_domain %}
local_name {{ domain }} {
ssl_cert = </etc/yunohost/certs/{{ domain }}/crt.pem
ssl_key = </etc/yunohost/certs/{{ domain }}/key.pem
}{% endif %}{% endfor %}
# curl https://ssl-config.mozilla.org/ffdhe2048.txt > /path/to/dhparam # curl https://ssl-config.mozilla.org/ffdhe2048.txt > /path/to/dhparam
ssl_dh = </usr/share/yunohost/other/ffdhe2048.pem ssl_dh = </usr/share/yunohost/ffdhe2048.pem
# intermediate configuration # intermediate configuration
ssl_min_protocol = TLSv1.2 ssl_min_protocol = TLSv1.2
@ -33,14 +38,26 @@ ssl_prefer_server_ciphers = no
############################################################################### ###############################################################################
# Regular Yunohost accounts
passdb { passdb {
args = /etc/dovecot/dovecot-ldap.conf args = /etc/dovecot/dovecot-ldap.conf
driver = ldap driver = ldap
} }
# Internally, allow authentication from apps system user who have "enable_email = true"
passdb {
driver = passwd-file
args = /etc/dovecot/app-senders-passwd
}
userdb { userdb {
args = /etc/dovecot/dovecot-ldap.conf
driver = ldap driver = ldap
args = /etc/dovecot/dovecot-ldap.conf
}
userdb {
driver = passwd-file
args = username_format=%n /etc/dovecot/app-senders-passwd
} }
protocol imap { protocol imap {
@ -48,13 +65,40 @@ protocol imap {
mail_plugins = $mail_plugins imap_quota antispam mail_plugins = $mail_plugins imap_quota antispam
} }
protocol lda { protocol lda {
auth_socket_path = /var/run/dovecot/auth-master auth_socket_path = /var/run/dovecot/auth-master
mail_plugins = quota sieve mail_plugins = quota sieve
postmaster_address = postmaster@{{ main_domain }} postmaster_address = postmaster@{{ main_domain }}
} }
namespace inbox {
inbox = yes
mailbox Drafts {
special_use = \Drafts
auto = subscribe
}
mailbox Junk {
special_use = \Junk
auto = subscribe
}
mailbox Trash {
special_use = \Trash
auto = subscribe
}
mailbox Sent {
special_use = \Sent
auto = subscribe
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox "Archive" {
special_use = \Archive
auto = subscribe
}
}
protocol sieve { protocol sieve {
} }
@ -102,8 +146,8 @@ plugin {
antispam_debug_target = syslog antispam_debug_target = syslog
antispam_verbose_debug = 0 antispam_verbose_debug = 0
antispam_backend = pipe antispam_backend = pipe
antispam_spam = Junk;SPAM antispam_spam_pattern_ignorecase = junk;spam
antispam_trash = Trash antispam_trash_pattern_ignorecase = trash;papierkorb;deleted messages
antispam_pipe_program = /usr/bin/rspamc antispam_pipe_program = /usr/bin/rspamc
antispam_pipe_program_args = -h;localhost:11334;-P;q1 antispam_pipe_program_args = -h;localhost:11334;-P;q1
antispam_pipe_program_spam_arg = learn_spam antispam_pipe_program_spam_arg = learn_spam

View file

@ -1,4 +1,4 @@
require "fileinto"; require "fileinto";
if header :contains "X-Spam-Flag" "YES" { if header :contains "X-Spam-Flag" "Yes" {
fileinto "Junk"; fileinto "Junk";
} }

View file

@ -0,0 +1,6 @@
# Fail2Ban filter for postfix authentication failures
[INCLUDES]
before = common.conf
[Definition]
_daemon = postfix/smtpd
failregex = ^%(__prefix_line)swarning: [-._\w]+\[<HOST>\]: SASL (?:LOGIN|PLAIN|(?:CRAM|DIGEST)-MD5) authentication failed(: [ A-Za-z0-9+/]*={0,2})?\s*$

View file

@ -8,6 +8,13 @@ enabled = true
[postfix] [postfix]
enabled = true enabled = true
[sasl]
enabled = true
port = smtp
filter = postfix-sasl
logpath = /var/log/mail.log
maxretry = 5
[dovecot] [dovecot]
enabled = true enabled = true

View file

@ -1,6 +1,7 @@
[Unit] [Unit]
Description=YunoHost mDNS service Description=YunoHost mDNS service
After=network.target Wants=network-online.target
After=network-online.target
[Service] [Service]
User=mdns User=mdns
@ -8,7 +9,7 @@ Group=mdns
Type=simple Type=simple
Environment=PYTHONUNBUFFERED=1 Environment=PYTHONUNBUFFERED=1
ExecStart=/usr/bin/yunomdns ExecStart=/usr/bin/yunomdns
StandardOutput=syslog StandardOutput=journal
[Install] [Install]
WantedBy=default.target WantedBy=default.target

View file

@ -0,0 +1,75 @@
VirtualHost "{{ domain }}"
enable = true
ssl = {
key = "/etc/yunohost/certs/{{ domain }}/key.pem";
certificate = "/etc/yunohost/certs/{{ domain }}/crt.pem";
}
authentication = "ldap2"
ldap = {
hostname = "localhost",
user = {
basedn = "ou=users,dc=yunohost,dc=org",
filter = "(&(objectClass=posixAccount)(mail=*@{{ domain }})(permission=cn=xmpp.main,ou=permission,dc=yunohost,dc=org))",
usernamefield = "mail",
namefield = "cn",
},
}
-- Discovery items
disco_items = {
{ "muc.{{ domain }}" },
{ "pubsub.{{ domain }}" },
{ "jabber.{{ domain }}" },
{ "vjud.{{ domain }}" },
{ "xmpp-upload.{{ domain }}" },
};
-- contact_info = {
-- abuse = { "mailto:abuse@{{ domain }}", "xmpp:admin@{{ domain }}" };
-- admin = { "mailto:root@{{ domain }}", "xmpp:admin@{{ domain }}" };
-- };
------ Components ------
-- You can specify components to add hosts that provide special services,
-- like multi-user conferences, and transports.
---Set up a MUC (multi-user chat) room server
Component "muc.{{ domain }}" "muc"
name = "{{ domain }} Chatrooms"
modules_enabled = {
"muc_limits";
"muc_log";
"muc_log_mam";
"muc_log_http";
"muc_vcard";
}
muc_event_rate = 0.5
muc_burst_factor = 10
room_default_config = {
logging = true,
persistent = true
};
---Set up a PubSub server
Component "pubsub.{{ domain }}" "pubsub"
name = "{{ domain }} Publish/Subscribe"
unrestricted_node_creation = true -- Anyone can create a PubSub node (from any server)
---Set up a HTTP Upload service
Component "xmpp-upload.{{ domain }}" "http_upload"
name = "{{ domain }} Sharing Service"
http_file_path = "/var/xmpp-upload/{{ domain }}/upload"
http_external_url = "https://xmpp-upload.{{ domain }}:443"
http_file_base_path = "/upload"
http_file_size_limit = 6*1024*1024
http_file_quota = 60*1024*1024
http_upload_file_size_limit = 100 * 1024 * 1024 -- bytes
http_upload_quota = 10 * 1024 * 1024 * 1024 -- bytes
---Set up a VJUD service
Component "vjud.{{ domain }}" "vjud"
vjud_disco_name = "{{ domain }} User Directory"

View file

@ -0,0 +1,123 @@
-- ** Metronome's config file example **
--
-- The format is exactly equal to Prosody's:
--
-- Lists are written { "like", "this", "one" }
-- Lists can also be of { 1, 2, 3 } numbers, etc.
-- Either commas, or semi-colons; may be used as seperators.
--
-- A table is a list of values, except each value has a name. An
-- example would be:
--
-- ssl = { key = "keyfile.key", certificate = "certificate.cert" }
--
-- Tip: You can check that the syntax of this file is correct when you have finished
-- by running: luac -p metronome.cfg.lua
-- If there are any errors, it will let you know what and where they are, otherwise it
-- will keep quiet.
-- Global settings go in this section
-- This is the list of modules Metronome will load on startup.
-- It looks for mod_modulename.lua in the plugins folder, so make sure that exists too.
modules_enabled = {
-- Generally required
"roster"; -- Allow users to have a roster. Recommended.
"saslauth"; -- Authentication for clients. Recommended if you want to log in.
"tls"; -- Add support for secure TLS on c2s/s2s connections
"disco"; -- Service discovery
-- Not essential, but recommended
"private"; -- Private XML storage (for room bookmarks, etc.)
"vcard"; -- Allow users to set vCards
"pep"; -- Allows setting of mood, tune, etc.
"pubsub"; -- Publish-subscribe XEP-0060
"posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
"bidi"; -- Enables Bidirectional Server-to-Server Streams.
-- Nice to have
"version"; -- Replies to server version requests
"uptime"; -- Report how long server has been running
"time"; -- Let others know the time here on this server
"ping"; -- Replies to XMPP pings with pongs
"register"; -- Allow users to register on this server using a client and change passwords
"stream_management"; -- Allows clients and servers to use Stream Management
"stanza_optimizations"; -- Allows clients to use Client State Indication and SIFT
"message_carbons"; -- Allows clients to enable carbon copies of messages
"mam"; -- Enable server-side message archives using Message Archive Management
"push"; -- Enable Push Notifications via PubSub using XEP-0357
"lastactivity"; -- Enables clients to know the last presence status of an user
"adhoc_cm"; -- Allow to set client certificates to login through SASL External via adhoc
"admin_adhoc"; -- administration adhoc commands
"bookmarks"; -- XEP-0048 Bookmarks synchronization between PEP and Private Storage
"sec_labels"; -- Allows to use a simplified version XEP-0258 Security Labels and related ACDFs.
"privacy"; -- Add privacy lists and simple blocking command support
-- Other specific functionality
--"admin_telnet"; -- administration console, telnet to port 5582
--"admin_web"; -- administration web interface
"bosh"; -- Enable support for BOSH clients, aka "XMPP over Bidirectional Streams over Synchronous HTTP"
--"compression"; -- Allow clients to enable Stream Compression
--"spim_block"; -- Require authorization via OOB form for messages from non-contacts and block unsollicited messages
--"gate_guard"; -- Enable config-based blacklisting and hit-based auto-banning features
--"incidents_handling"; -- Enable Incidents Handling support (can be administered via adhoc commands)
--"server_presence"; -- Enables Server Buddies extension support
--"service_directory"; -- Enables Service Directories extension support
--"public_service"; -- Enables Server vCard support for public services in directories and advertises in features
--"register_api"; -- Provides secure API for both Out-Of-Band and In-Band registration for E-Mail verification
"websocket"; -- Enable support for WebSocket clients, aka "XMPP over WebSockets"
};
-- Server PID
pidfile = "/var/run/metronome/metronome.pid"
-- HTTP server
http_ports = { 5290 }
http_interfaces = { "127.0.0.1", "::1" }
--https_ports = { 5291 }
--https_interfaces = { "127.0.0.1", "::1" }
-- Enable IPv6
use_ipv6 = true
-- BOSH configuration (mod_bosh)
consider_bosh_secure = true
cross_domain_bosh = true
-- WebSocket configuration (mod_websocket)
consider_websocket_secure = true
cross_domain_websocket = true
-- Disable account creation by default, for security
allow_registration = false
-- Use LDAP storage backend for all stores
storage = "ldap"
-- stanza optimization
csi_config_queue_all_muc_messages_but_mentions = false;
-- Logging configuration
log = {
info = "/var/log/metronome/metronome.log"; -- Change 'info' to 'debug' for verbose logging
error = "/var/log/metronome/metronome.err";
-- "*syslog"; -- Uncomment this for logging to syslog
-- "*console"; -- Log to the console, useful for debugging with daemonize=false
}
------ Components ------
-- You can specify components to add hosts that provide special services,
-- like multi-user conferences, and transports.
---Set up a local BOSH service
Component "localhost" "http"
modules_enabled = { "bosh" }
----------- Virtual hosts -----------
-- You need to add a VirtualHost entry for each domain you wish Metronome to serve.
-- Settings under each VirtualHost entry apply *only* to that host.
Include "conf.d/*.cfg.lua"

View file

@ -0,0 +1,90 @@
-- vim:sts=4 sw=4
-- Metronome IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
-- Copyright (C) 2012 Rob Hoelz
-- Copyright (C) 2015 YUNOHOST.ORG
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-- https://github.com/YunoHost/yunohost-config-metronome/blob/unstable/lib/modules/mod_auth_ldap2.lua
-- adapted to use common LDAP store on Metronome
local ldap = module:require 'ldap';
local new_sasl = require 'util.sasl'.new;
local jsplit = require 'util.jid'.split;
local log = module._log
if not ldap then
return;
end
function new_default_provider(host)
local provider = { name = "ldap2" };
log("debug", "initializing ldap2 authentication provider for host '%s'", host);
function provider.test_password(username, password)
return ldap.bind(username, password);
end
function provider.user_exists(username)
local params = ldap.getparams()
local filter = ldap.filter.combine_and(params.user.filter, params.user.usernamefield .. '=' .. username);
if params.user.usernamefield == 'mail' then
filter = ldap.filter.combine_and(params.user.filter, 'mail=' .. username .. '@*');
end
return ldap.singlematch {
base = params.user.basedn,
filter = filter,
};
end
function provider.get_password(username)
return nil, "Passwords unavailable for LDAP.";
end
function provider.set_password(username, password)
return nil, "Passwords unavailable for LDAP.";
end
function provider.create_user(username, password)
return nil, "Account creation/modification not available with LDAP.";
end
function provider.get_sasl_handler(session)
local testpass_authentication_profile = {
session = session,
plain_test = function(sasl, username, password, realm)
return provider.test_password(username, password), true;
end,
order = { "plain_test" },
};
return new_sasl(module.host, testpass_authentication_profile);
end
function provider.is_admin(jid)
local admin_config = ldap.getparams().admin;
if not admin_config then
return;
end
local ld = ldap:getconnection();
local username = jsplit(jid);
local filter = ldap.filter.combine_and(admin_config.filter, admin_config.namefield .. '=' .. username);
return ldap.singlematch {
base = admin_config.basedn,
filter = filter,
};
end
return provider;
end
module:add_item("auth-provider", new_default_provider(module.host));

View file

@ -0,0 +1,86 @@
-- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local st = require "util.stanza";
local t_concat = table.concat;
local secure_auth_only = module:get_option("c2s_require_encryption")
or module:get_option("require_encryption")
or not(module:get_option("allow_unencrypted_plain_auth"));
local sessionmanager = require "core.sessionmanager";
local usermanager = require "core.usermanager";
local nodeprep = require "util.encodings".stringprep.nodeprep;
local resourceprep = require "util.encodings".stringprep.resourceprep;
module:add_feature("jabber:iq:auth");
module:hook("stream-features", function(event)
local origin, features = event.origin, event.features;
if secure_auth_only and not origin.secure then
-- Sorry, not offering to insecure streams!
return;
elseif not origin.username then
features:tag("auth", {xmlns='http://jabber.org/features/iq-auth'}):up();
end
end);
module:hook("stanza/iq/jabber:iq:auth:query", function(event)
local session, stanza = event.origin, event.stanza;
if session.type ~= "c2s_unauthed" then
(session.sends2s or session.send)(st.error_reply(stanza, "cancel", "service-unavailable", "Legacy authentication is only allowed for unauthenticated client connections."));
return true;
end
if secure_auth_only and not session.secure then
session.send(st.error_reply(stanza, "modify", "not-acceptable", "Encryption (SSL or TLS) is required to connect to this server"));
return true;
end
local username = stanza.tags[1]:child_with_name("username");
local password = stanza.tags[1]:child_with_name("password");
local resource = stanza.tags[1]:child_with_name("resource");
if not (username and password and resource) then
local reply = st.reply(stanza);
session.send(reply:query("jabber:iq:auth")
:tag("username"):up()
:tag("password"):up()
:tag("resource"):up());
else
username, password, resource = t_concat(username), t_concat(password), t_concat(resource);
username = nodeprep(username);
resource = resourceprep(resource)
if not (username and resource) then
session.send(st.error_reply(stanza, "modify", "bad-request"));
return true;
end
if usermanager.test_password(username, session.host, password) then
-- Authentication successful!
local success, err = sessionmanager.make_authenticated(session, username);
if success then
local err_type, err_msg;
success, err_type, err, err_msg = sessionmanager.bind_resource(session, resource);
if not success then
session.send(st.error_reply(stanza, err_type, err, err_msg));
session.username, session.type = nil, "c2s_unauthed"; -- FIXME should this be placed in sessionmanager?
return true;
elseif resource ~= session.resource then -- server changed resource, not supported by legacy auth
session.send(st.error_reply(stanza, "cancel", "conflict", "The requested resource could not be assigned to this session."));
session:close(); -- FIXME undo resource bind and auth instead of closing the session?
return true;
end
end
session.send(st.reply(stanza));
else
session.send(st.error_reply(stanza, "auth", "not-authorized"));
end
end
return true;
end);

View file

@ -0,0 +1,243 @@
-- vim:sts=4 sw=4
-- Metronome IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
-- Copyright (C) 2012 Rob Hoelz
-- Copyright (C) 2015 YUNOHOST.ORG
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
----------------------------------------
-- Constants and such --
----------------------------------------
local setmetatable = setmetatable;
local get_config = require "core.configmanager".get;
local ldap = module:require 'ldap';
local vcardlib = module:require 'vcard';
local st = require 'util.stanza';
local gettime = require 'socket'.gettime;
local log = module._log
if not ldap then
return;
end
local CACHE_EXPIRY = 300;
----------------------------------------
-- Utility Functions --
----------------------------------------
local function ldap_record_to_vcard(record, format)
return vcardlib.create {
record = record,
format = format,
}
end
local get_alias_for_user;
do
local user_cache;
local last_fetch_time;
local function populate_user_cache()
local user_c = get_config(module.host, 'ldap').user;
if not user_c then return; end
local ld = ldap.getconnection();
local usernamefield = user_c.usernamefield;
local namefield = user_c.namefield;
user_cache = {};
for _, attrs in ld:search { base = user_c.basedn, scope = 'onelevel', filter = user_c.filter } do
user_cache[attrs[usernamefield]] = attrs[namefield];
end
last_fetch_time = gettime();
end
function get_alias_for_user(user)
if last_fetch_time and last_fetch_time + CACHE_EXPIRY < gettime() then
user_cache = nil;
end
if not user_cache then
populate_user_cache();
end
return user_cache[user];
end
end
----------------------------------------
-- Base LDAP store class --
----------------------------------------
local function ldap_store(config)
local self = {};
local config = config;
function self:get(username)
return nil, "Data getting is not available for this storage backend";
end
function self:set(username, data)
return nil, "Data setting is not available for this storage backend";
end
return self;
end
local adapters = {};
----------------------------------------
-- Roster Storage Implementation --
----------------------------------------
adapters.roster = function (config)
-- Validate configuration requirements
if not config.groups then return nil; end
local self = ldap_store(config)
function self:get(username)
local ld = ldap.getconnection();
local contacts = {};
local memberfield = config.groups.memberfield;
local namefield = config.groups.namefield;
local filter = memberfield .. '=' .. tostring(username);
local groups = {};
for _, config in ipairs(config.groups) do
groups[ config[namefield] ] = config.name;
end
log("debug", "Found %d group(s) for user %s", select('#', groups), username)
-- XXX this kind of relies on the way we do groups at INOC
for _, attrs in ld:search { base = config.groups.basedn, scope = 'onelevel', filter = filter } do
if groups[ attrs[namefield] ] then
local members = attrs[memberfield];
for _, user in ipairs(members) do
if user ~= username then
local jid = user .. '@' .. module.host;
local record = contacts[jid];
if not record then
record = {
subscription = 'both',
groups = {},
name = get_alias_for_user(user),
};
contacts[jid] = record;
end
record.groups[ groups[ attrs[namefield] ] ] = true;
end
end
end
end
return contacts;
end
function self:set(username, data)
log("warn", "Setting data in Roster LDAP storage is not supported yet")
return nil, "not supported";
end
return self;
end
----------------------------------------
-- vCard Storage Implementation --
----------------------------------------
adapters.vcard = function (config)
-- Validate configuration requirements
if not config.vcard_format or not config.user then return nil; end
local self = ldap_store(config)
function self:get(username)
local ld = ldap.getconnection();
local filter = config.user.usernamefield .. '=' .. tostring(username);
log("debug", "Retrieving vCard for user '%s'", username);
local match = ldap.singlematch {
base = config.user.basedn,
filter = filter,
};
if match then
match.jid = username .. '@' .. module.host
return st.preserialize(ldap_record_to_vcard(match, config.vcard_format));
else
return nil, "username not found";
end
end
function self:set(username, data)
log("warn", "Setting data in vCard LDAP storage is not supported yet")
return nil, "not supported";
end
return self;
end
----------------------------------------
-- Driver Definition --
----------------------------------------
cache = {};
local driver = { name = "ldap" };
function driver:open(store)
log("debug", "Opening ldap storage backend for host '%s' and store '%s'", module.host, store);
if not cache[module.host] then
log("debug", "Caching adapters for the host '%s'", module.host);
local ad_config = get_config(module.host, "ldap");
local ad_cache = {};
for k, v in pairs(adapters) do
ad_cache[k] = v(ad_config);
end
cache[module.host] = ad_cache;
end
local adapter = cache[module.host][store];
if not adapter then
log("info", "Unavailable adapter for store '%s'", store);
return nil, "unsupported-store";
end
return adapter;
end
function driver:stores(username, type, pattern)
return nil, "not implemented";
end
function driver:store_exists(username, type)
return nil, "not implemented";
end
function driver:purge(username)
return nil, "not implemented";
end
function driver:nodes(type)
return nil, "not implemented";
end
module:add_item("data-driver", driver);

View file

@ -135,28 +135,28 @@ function builder_methods:build()
end end
local function new_builder(params) local function new_builder(params)
local vcard_tag = st.stanza('vCard', { xmlns = VCARD_NS }); local vcard_tag = st.stanza('vCard', { xmlns = VCARD_NS });
local object = { local object = {
vcard = vcard_tag, vcard = vcard_tag,
__index = builder_methods, __index = builder_methods,
}; };
for k, v in pairs(params) do for k, v in pairs(params) do
object[k] = v; object[k] = v;
end end
setmetatable(object, object); setmetatable(object, object);
return object; return object;
end end
local _M = {}; local _M = {};
function _M.create(params) function _M.create(params)
local builder = new_builder(params); local builder = new_builder(params);
return builder:build(); return builder:build();
end end
return _M; return _M;

View file

@ -1,6 +1,6 @@
location ^~ '/.well-known/acme-challenge/' location ^~ '/.well-known/acme-challenge/'
{ {
default_type "text/plain"; default_type "text/plain";
alias /tmp/acme-challenge-public/; alias /var/www/.well-known/acme-challenge-public/;
gzip off; gzip off;
} }

View file

@ -0,0 +1,7 @@
error_page 502 /502.html;
location = /502.html {
root /usr/share/yunohost/html/;
}

View file

@ -0,0 +1,3 @@
location / {
return 302 https://$host/yunohost/admin;
}

View file

@ -18,7 +18,7 @@ ssl_prefer_server_ciphers off;
# Pre-defined FFDHE group (RFC 7919) # Pre-defined FFDHE group (RFC 7919)
# From https://ssl-config.mozilla.org/ffdhe2048.txt # From https://ssl-config.mozilla.org/ffdhe2048.txt
# https://security.stackexchange.com/a/149818 # https://security.stackexchange.com/a/149818
ssl_dhparam /usr/share/yunohost/other/ffdhe2048.pem; ssl_dhparam /usr/share/yunohost/ffdhe2048.pem;
{% endif %} {% endif %}
@ -26,10 +26,9 @@ ssl_dhparam /usr/share/yunohost/other/ffdhe2048.pem;
# https://wiki.mozilla.org/Security/Guidelines/Web_Security # https://wiki.mozilla.org/Security/Guidelines/Web_Security
# https://observatory.mozilla.org/ # https://observatory.mozilla.org/
{% if experimental == "True" %} {% if experimental == "True" %}
more_set_headers "Content-Security-Policy : upgrade-insecure-requests; default-src https: data: blob: ; object-src https: data: 'unsafe-inline'; style-src https: data: 'unsafe-inline' ; script-src https: data: 'unsafe-inline' 'unsafe-eval'"; more_set_headers "Content-Security-Policy : upgrade-insecure-requests; default-src https: data: blob: ; object-src https: data: 'unsafe-inline'; style-src https: data: 'unsafe-inline' ; script-src https: data: 'unsafe-inline' 'unsafe-eval'; worker-src 'self' blob:;";
{% else %} {% else %}
more_set_headers "Content-Security-Policy : upgrade-insecure-requests"; more_set_headers "Content-Security-Policy : upgrade-insecure-requests";
more_set_headers "Content-Security-Policy-Report-Only : default-src https: data: blob: ; object-src https: data: 'unsafe-inline'; style-src https: data: 'unsafe-inline' ; script-src https: data: 'unsafe-inline' 'unsafe-eval'";
{% endif %} {% endif %}
more_set_headers "X-Content-Type-Options : nosniff"; more_set_headers "X-Content-Type-Options : nosniff";
more_set_headers "X-XSS-Protection : 1; mode=block"; more_set_headers "X-XSS-Protection : 1; mode=block";

View file

@ -6,30 +6,34 @@ map $http_upgrade $connection_upgrade {
server { server {
listen 80; listen 80;
listen [::]:80; listen [::]:80;
server_name {{ domain }} xmpp-upload.{{ domain }}; server_name {{ domain }}{% if xmpp_enabled == "True" %} xmpp-upload.{{ domain }} muc.{{ domain }}{% endif %};
access_by_lua_file /usr/share/ssowat/access.lua; access_by_lua_file /usr/share/ssowat/access.lua;
include /etc/nginx/conf.d/acme-challenge.conf.inc; include /etc/nginx/conf.d/acme-challenge.conf.inc;
location ^~ '/.well-known/ynh-diagnosis/' { location ^~ '/.well-known/ynh-diagnosis/' {
alias /tmp/.well-known/ynh-diagnosis/; alias /var/www/.well-known/ynh-diagnosis/;
} }
{% if mail_enabled == "True" %}
location ^~ '/.well-known/autoconfig/mail/' { location ^~ '/.well-known/autoconfig/mail/' {
alias /var/www/.well-known/{{ domain }}/autoconfig/mail/; alias /var/www/.well-known/{{ domain }}/autoconfig/mail/;
} }
{% endif %}
{# Note that this != "False" is meant to be failure-safe, in the case the redrect_to_https would happen to contain empty string or whatever value. We absolutely don't want to disable the HTTPS redirect *except* when it's explicitly being asked to be disabled. #} {# Note that this != "False" is meant to be failure-safe, in the case the redrect_to_https would happen to contain empty string or whatever value. We absolutely don't want to disable the HTTPS redirect *except* when it's explicitly being asked to be disabled. #}
{% if redirect_to_https != "False" %} {% if redirect_to_https != "False" %}
location / { location / {
return 301 https://$http_host$request_uri; return 301 https://$host$request_uri;
} }
{# The app config snippets are not included in the HTTP conf unless HTTPS redirect is disabled, because app's location may blocks will conflict or bypass/ignore the HTTPS redirection. #} {# The app config snippets are not included in the HTTP conf unless HTTPS redirect is disabled, because app's location may blocks will conflict or bypass/ignore the HTTPS redirection. #}
{% else %} {% else %}
include /etc/nginx/conf.d/{{ domain }}.d/*.conf; include /etc/nginx/conf.d/{{ domain }}.d/*.conf;
{% endif %} {% endif %}
include /etc/nginx/conf.d/yunohost_http_errors.conf.inc;
access_log /var/log/nginx/{{ domain }}-access.log; access_log /var/log/nginx/{{ domain }}-access.log;
error_log /var/log/nginx/{{ domain }}-error.log; error_log /var/log/nginx/{{ domain }}-error.log;
} }
@ -44,21 +48,23 @@ server {
ssl_certificate /etc/yunohost/certs/{{ domain }}/crt.pem; ssl_certificate /etc/yunohost/certs/{{ domain }}/crt.pem;
ssl_certificate_key /etc/yunohost/certs/{{ domain }}/key.pem; ssl_certificate_key /etc/yunohost/certs/{{ domain }}/key.pem;
{% if domain_cert_ca != "Self-signed" %} {% if domain_cert_ca != "selfsigned" %}
more_set_headers "Strict-Transport-Security : max-age=63072000; includeSubDomains; preload"; more_set_headers "Strict-Transport-Security : max-age=63072000; includeSubDomains; preload";
{% endif %} {% endif %}
{% if domain_cert_ca == "Let's Encrypt" %} {% if domain_cert_ca == "letsencrypt" %}
# OCSP settings # OCSP settings
ssl_stapling on; ssl_stapling on;
ssl_stapling_verify on; ssl_stapling_verify on;
ssl_trusted_certificate /etc/yunohost/certs/{{ domain }}/crt.pem; ssl_trusted_certificate /etc/yunohost/certs/{{ domain }}/crt.pem;
resolver 127.0.0.1 127.0.1.1 valid=300s; resolver 1.1.1.1 9.9.9.9 valid=300s;
resolver_timeout 5s; resolver_timeout 5s;
{% endif %} {% endif %}
{% if mail_enabled == "True" %}
location ^~ '/.well-known/autoconfig/mail/' { location ^~ '/.well-known/autoconfig/mail/' {
alias /var/www/.well-known/{{ domain }}/autoconfig/mail/; alias /var/www/.well-known/{{ domain }}/autoconfig/mail/;
} }
{% endif %}
access_by_lua_file /usr/share/ssowat/access.lua; access_by_lua_file /usr/share/ssowat/access.lua;
@ -67,11 +73,13 @@ server {
include /etc/nginx/conf.d/yunohost_sso.conf.inc; include /etc/nginx/conf.d/yunohost_sso.conf.inc;
include /etc/nginx/conf.d/yunohost_admin.conf.inc; include /etc/nginx/conf.d/yunohost_admin.conf.inc;
include /etc/nginx/conf.d/yunohost_api.conf.inc; include /etc/nginx/conf.d/yunohost_api.conf.inc;
include /etc/nginx/conf.d/yunohost_http_errors.conf.inc;
access_log /var/log/nginx/{{ domain }}-access.log; access_log /var/log/nginx/{{ domain }}-access.log;
error_log /var/log/nginx/{{ domain }}-error.log; error_log /var/log/nginx/{{ domain }}-error.log;
} }
{% if xmpp_enabled == "True" %}
# vhost dedicated to XMPP http_upload # vhost dedicated to XMPP http_upload
server { server {
listen 443 ssl http2; listen 443 ssl http2;
@ -99,18 +107,19 @@ server {
ssl_certificate /etc/yunohost/certs/{{ domain }}/crt.pem; ssl_certificate /etc/yunohost/certs/{{ domain }}/crt.pem;
ssl_certificate_key /etc/yunohost/certs/{{ domain }}/key.pem; ssl_certificate_key /etc/yunohost/certs/{{ domain }}/key.pem;
{% if domain_cert_ca != "Self-signed" %} {% if domain_cert_ca != "selfsigned" %}
more_set_headers "Strict-Transport-Security : max-age=63072000; includeSubDomains; preload"; more_set_headers "Strict-Transport-Security : max-age=63072000; includeSubDomains; preload";
{% endif %} {% endif %}
{% if domain_cert_ca == "Let's Encrypt" %} {% if domain_cert_ca == "letsencrypt" %}
# OCSP settings # OCSP settings
ssl_stapling on; ssl_stapling on;
ssl_stapling_verify on; ssl_stapling_verify on;
ssl_trusted_certificate /etc/yunohost/certs/{{ domain }}/crt.pem; ssl_trusted_certificate /etc/yunohost/certs/{{ domain }}/crt.pem;
resolver 127.0.0.1 127.0.1.1 valid=300s; resolver 1.1.1.1 9.9.9.9 valid=300s;
resolver_timeout 5s; resolver_timeout 5s;
{% endif %} {% endif %}
access_log /var/log/nginx/xmpp-upload.{{ domain }}-access.log; access_log /var/log/nginx/xmpp-upload.{{ domain }}-access.log;
error_log /var/log/nginx/xmpp-upload.{{ domain }}-error.log; error_log /var/log/nginx/xmpp-upload.{{ domain }}-error.log;
} }
{% endif %}

View file

@ -7,9 +7,11 @@ location /yunohost/admin/ {
index index.html; index index.html;
{% if webadmin_allowlist_enabled == "True" %} {% if webadmin_allowlist_enabled == "True" %}
{% for ip in webadmin_allowlist.split(',') %} {% if webadmin_allowlist.strip() -%}
allow {{ ip }}; {% for ip in webadmin_allowlist.strip().split(',') -%}
{% endfor %} allow {{ ip.strip() }};
{% endfor -%}
{% endif -%}
deny all; deny all;
{% endif %} {% endif %}
@ -19,6 +21,10 @@ location /yunohost/admin/ {
more_set_headers "Cache-Control: no-store, no-cache, must-revalidate"; more_set_headers "Cache-Control: no-store, no-cache, must-revalidate";
} }
location /yunohost/admin/applogos/ {
alias /usr/share/yunohost/applogos/;
}
more_set_headers "Content-Security-Policy: upgrade-insecure-requests; default-src 'self'; connect-src 'self' https://paste.yunohost.org wss://$host; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; object-src 'none'; img-src 'self' data:;"; more_set_headers "Content-Security-Policy: upgrade-insecure-requests; default-src 'self'; connect-src 'self' https://paste.yunohost.org wss://$host; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; object-src 'none'; img-src 'self' data:;";
more_set_headers "Content-Security-Policy-Report-Only:"; more_set_headers "Content-Security-Policy-Report-Only:";
} }

View file

@ -4,7 +4,7 @@ location /yunohost/api/ {
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host; proxy_set_header Host $host;
{% if webadmin_allowlist_enabled == "True" %} {% if webadmin_allowlist_enabled == "True" %}
{% for ip in webadmin_allowlist.split(',') %} {% for ip in webadmin_allowlist.split(',') %}

View file

@ -23,8 +23,11 @@ smtpd_use_tls = yes
smtpd_tls_security_level = may smtpd_tls_security_level = may
smtpd_tls_auth_only = yes smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/yunohost/certs/{{ main_domain }}/crt.pem smtpd_tls_chain_files =
smtpd_tls_key_file = /etc/yunohost/certs/{{ main_domain }}/key.pem /etc/yunohost/certs/{{ main_domain }}/key.pem,
/etc/yunohost/certs/{{ main_domain }}/crt.pem
tls_server_sni_maps = hash:/etc/postfix/sni
{% if compatibility == "intermediate" %} {% if compatibility == "intermediate" %}
# generated 2020-08-18, Mozilla Guideline v5.6, Postfix 3.4.14, OpenSSL 1.1.1d, intermediate configuration # generated 2020-08-18, Mozilla Guideline v5.6, Postfix 3.4.14, OpenSSL 1.1.1d, intermediate configuration
@ -36,7 +39,7 @@ smtpd_tls_mandatory_ciphers = medium
# curl https://ssl-config.mozilla.org/ffdhe2048.txt > /path/to/dhparam.pem # curl https://ssl-config.mozilla.org/ffdhe2048.txt > /path/to/dhparam.pem
# not actually 1024 bits, this applies to all DHE >= 1024 bits # not actually 1024 bits, this applies to all DHE >= 1024 bits
smtpd_tls_dh1024_param_file = /usr/share/yunohost/other/ffdhe2048.pem smtpd_tls_dh1024_param_file = /usr/share/yunohost/ffdhe2048.pem
tls_medium_cipherlist = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384 tls_medium_cipherlist = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
{% else %} {% else %}
@ -78,7 +81,7 @@ alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases alias_database = hash:/etc/aliases
mydomain = {{ main_domain }} mydomain = {{ main_domain }}
mydestination = localhost mydestination = localhost
{% if relay_host == "" %} {% if relay_enabled != "True" %}
relayhost = relayhost =
{% else %} {% else %}
relayhost = [{{ relay_host }}]:{{ relay_port }} relayhost = [{{ relay_host }}]:{{ relay_port }}
@ -90,21 +93,25 @@ recipient_delimiter = +
inet_interfaces = all inet_interfaces = all
#### Fit to the maximum message size to 25mb, more than allowed by GMail or Yahoo #### #### Fit to the maximum message size to 25mb, more than allowed by GMail or Yahoo ####
# /!\ This size is the size of the attachment in base64. # /!\ This size is the size of the attachment in base64.
# BASE64_SIZE_IN_BYTE = ORIGINAL_SIZE_IN_MEGABYTE * 1,37 *1024*1024 + 980 # BASE64_SIZE_IN_BYTE = ORIGINAL_SIZE_IN_MEGABYTE * 1,37 *1024*1024 + 980
# See https://serverfault.com/questions/346895/postfix-mail-size-counting # See https://serverfault.com/questions/346895/postfix-mail-size-counting
message_size_limit = 35914708 message_size_limit = 35914708
# Virtual Domains Control # Virtual Domains Control
virtual_mailbox_domains = ldap:/etc/postfix/ldap-domains.cf virtual_mailbox_domains = ldap:/etc/postfix/ldap-domains.cf
virtual_mailbox_maps = ldap:/etc/postfix/ldap-accounts.cf virtual_mailbox_maps = ldap:/etc/postfix/ldap-accounts.cf,hash:/etc/postfix/app_senders_login_maps
virtual_mailbox_base = virtual_mailbox_base =
virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf,ldap:/etc/postfix/ldap-groups.cf
virtual_alias_domains = virtual_alias_domains =
virtual_minimum_uid = 100 virtual_minimum_uid = 100
virtual_uid_maps = static:vmail virtual_uid_maps = static:vmail
virtual_gid_maps = static:mail virtual_gid_maps = static:mail
smtpd_sender_login_maps= ldap:/etc/postfix/ldap-accounts.cf smtpd_sender_login_maps = unionmap:{
# Regular Yunohost accounts
ldap:/etc/postfix/ldap-accounts.cf,
# Extra maps for app system users who need to send emails
hash:/etc/postfix/app_senders_login_maps }
# Dovecot LDA # Dovecot LDA
virtual_transport = dovecot virtual_transport = dovecot
@ -195,7 +202,7 @@ smtpd_client_recipient_rate_limit=150
# and after to send spam # and after to send spam
disable_vrfy_command = yes disable_vrfy_command = yes
{% if relay_user != "" %} {% if relay_enabled == "True" %}
# Relay email through an other smtp account # Relay email through an other smtp account
# enable SASL authentication # enable SASL authentication
smtp_sasl_auth_enable = yes smtp_sasl_auth_enable = yes
@ -204,3 +211,11 @@ smtp_sasl_security_options = noanonymous
# where to find sasl_passwd # where to find sasl_passwd
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
{% endif %} {% endif %}
{% if backup_mx_domains != "" %}
# Backup MX (secondary MX)
relay_domains = $mydestination {{backup_mx_domains}}
relay_recipient_maps = hash:/etc/postfix/relay_recipients
maximal_queue_lifetime = 20d
{% endif %}

View file

@ -0,0 +1,7 @@
server_host = localhost
server_port = 389
search_base = dc=yunohost,dc=org
query_filter = (&(objectClass=groupOfNamesYnh)(mail=%s))
scope = sub
result_attribute = memberUid, mail
terminal_result_attribute = memberUid

4
conf/postfix/sni Normal file
View file

@ -0,0 +1,4 @@
# This maps domain to certificates to properly handle multi-domain context
# (also we need a comment in this file such that it's never empty to prevent regenconf issues)
{% for domain in domain_list.split() %}{{ domain }} /etc/yunohost/certs/{{ domain }}/key.pem /etc/yunohost/certs/{{ domain }}/crt.pem
{% endfor %}

2
conf/rspamd/redis.conf Normal file
View file

@ -0,0 +1,2 @@
# set redis server
servers = "127.0.0.1";

View file

@ -1,4 +1,4 @@
require ["fileinto"]; require ["fileinto"];
if header :is "X-Spam" "yes" { if header :is "X-Spam" "Yes" {
fileinto "Junk"; fileinto "Junk";
} }

View file

@ -10,7 +10,7 @@
# Config database customization: # Config database customization:
# 1. Edit this file as you want. # 1. Edit this file as you want.
# 2. Apply your modifications. For this just run this following command in a shell: # 2. Apply your modifications. For this just run this following command in a shell:
# $ /usr/share/yunohost/hooks/conf_regen/06-slapd apply_config # $ /usr/share/yunohost/hooks/conf_regen/06-slapd post true
# #
# Note that if you customize this file, YunoHost's regen-conf will NOT # Note that if you customize this file, YunoHost's regen-conf will NOT
# overwrite this file. But that also means that you should be careful about # overwrite this file. But that also means that you should be careful about
@ -130,7 +130,6 @@ olcSuffix: dc=yunohost,dc=org
# admin entry below # admin entry below
# These access lines apply to database #1 only # These access lines apply to database #1 only
olcAccess: {0}to attrs=userPassword,shadowLastChange olcAccess: {0}to attrs=userPassword,shadowLastChange
by dn.base="cn=admin,dc=yunohost,dc=org" write
by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" write by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" write
by anonymous auth by anonymous auth
by self write by self write
@ -140,7 +139,6 @@ olcAccess: {0}to attrs=userPassword,shadowLastChange
# owning it if they are authenticated. # owning it if they are authenticated.
# Others should be able to see it. # Others should be able to see it.
olcAccess: {1}to attrs=cn,gecos,givenName,mail,maildrop,displayName,sn olcAccess: {1}to attrs=cn,gecos,givenName,mail,maildrop,displayName,sn
by dn.base="cn=admin,dc=yunohost,dc=org" write
by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" write by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" write
by self write by self write
by * read by * read
@ -160,9 +158,8 @@ olcAccess: {2}to dn.base=""
# The admin dn has full write access, everyone else # The admin dn has full write access, everyone else
# can read everything. # can read everything.
olcAccess: {3}to * olcAccess: {3}to *
by dn.base="cn=admin,dc=yunohost,dc=org" write
by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" write by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" write
by group/groupOfNames/member.exact="cn=admin,ou=groups,dc=yunohost,dc=org" write by group/groupOfNamesYnh/member.exact="cn=admins,ou=groups,dc=yunohost,dc=org" write
by * read by * read
# #
olcAddContentAcl: FALSE olcAddContentAcl: FALSE

View file

@ -5,15 +5,6 @@ objectClass: organization
o: yunohost.org o: yunohost.org
dc: yunohost dc: yunohost
dn: cn=admin,ou=sudo,dc=yunohost,dc=org
cn: admin
objectClass: sudoRole
objectClass: top
sudoCommand: ALL
sudoUser: admin
sudoOption: !authenticate
sudoHost: ALL
dn: ou=users,dc=yunohost,dc=org dn: ou=users,dc=yunohost,dc=org
objectClass: organizationalUnit objectClass: organizationalUnit
objectClass: top objectClass: top
@ -39,27 +30,23 @@ objectClass: organizationalUnit
objectClass: top objectClass: top
ou: groups ou: groups
dn: cn=admins,ou=sudo,dc=yunohost,dc=org
cn: admins
objectClass: sudoRole
objectClass: top
sudoCommand: ALL
sudoUser: %admins
sudoHost: ALL
dn: ou=sudo,dc=yunohost,dc=org dn: ou=sudo,dc=yunohost,dc=org
objectClass: organizationalUnit objectClass: organizationalUnit
objectClass: top objectClass: top
ou: sudo ou: sudo
dn: cn=admin,dc=yunohost,dc=org
objectClass: organizationalRole
objectClass: posixAccount
objectClass: simpleSecurityObject
cn: admin
uid: admin
uidNumber: 1007
gidNumber: 1007
homeDirectory: /home/admin
loginShell: /bin/bash
userPassword: yunohost
dn: cn=admins,ou=groups,dc=yunohost,dc=org dn: cn=admins,ou=groups,dc=yunohost,dc=org
objectClass: posixGroup objectClass: posixGroup
objectClass: top objectClass: top
memberUid: admin objectClass: groupOfNamesYnh
gidNumber: 4001 gidNumber: 4001
cn: admins cn: admins

View file

@ -89,4 +89,7 @@ olcObjectClasses: ( 1.3.6.1.4.1.40328.1.1.2.3
NAME 'mailGroup' SUP top AUXILIARY NAME 'mailGroup' SUP top AUXILIARY
DESC 'Mail Group' DESC 'Mail Group'
MUST ( mail ) MUST ( mail )
MAY (
mailalias $ maildrop
)
) )

View file

@ -21,7 +21,7 @@ SLAPD_PIDFILE=
# sockets. # sockets.
# Example usage: # Example usage:
# SLAPD_SERVICES="ldap://127.0.0.1:389/ ldaps:/// ldapi:///" # SLAPD_SERVICES="ldap://127.0.0.1:389/ ldaps:/// ldapi:///"
SLAPD_SERVICES="ldap://127.0.0.1:389/ ldaps:/// ldapi:///" SLAPD_SERVICES="ldap://localhost:389/ ldaps:/// ldapi:///"
# If SLAPD_NO_START is set, the init script will not start or restart # If SLAPD_NO_START is set, the init script will not start or restart
# slapd (but stop will still work). Uncomment this if you are # slapd (but stop will still work). Uncomment this if you are

View file

@ -3,7 +3,7 @@
Protocol 2 Protocol 2
# PLEASE: if you wish to change the ssh port properly in YunoHost, use this command: # PLEASE: if you wish to change the ssh port properly in YunoHost, use this command:
# yunohost settings set security.ssh.port -v <port> # yunohost settings set security.ssh.ssh_port -v <port>
Port {{ port }} Port {{ port }}
{% if ipv6_enabled == "true" %}ListenAddress ::{% endif %} {% if ipv6_enabled == "true" %}ListenAddress ::{% endif %}
@ -56,7 +56,7 @@ ChallengeResponseAuthentication no
UsePAM yes UsePAM yes
# PLEASE: if you wish to force everybody to authenticate using ssh keys, run this command: # PLEASE: if you wish to force everybody to authenticate using ssh keys, run this command:
# yunohost settings set security.ssh.password_authentication -v no # yunohost settings set security.ssh.ssh_password_authentication -v no
{% if password_authentication == "False" %} {% if password_authentication == "False" %}
PasswordAuthentication no PasswordAuthentication no
{% else %} {% else %}
@ -64,7 +64,7 @@ PasswordAuthentication no
{% endif %} {% endif %}
# Post-login stuff # Post-login stuff
Banner /etc/issue.net # Banner none
PrintMotd no PrintMotd no
PrintLastLog yes PrintLastLog yes
ClientAliveInterval 60 ClientAliveInterval 60
@ -84,7 +84,7 @@ Subsystem sftp internal-sftp
# Apply following instructions to user with sftp perm only # Apply following instructions to user with sftp perm only
Match Group sftp.main,!ssh.main Match Group sftp.main,!ssh.main
ForceCommand internal-sftp ForceCommand internal-sftp -u 0002
# We can't restrict to /home/%u because the chroot base must be owned by root # We can't restrict to /home/%u because the chroot base must be owned by root
# So we chroot only on /home # So we chroot only on /home
# See https://serverfault.com/questions/584986/bad-ownership-or-modes-for-chroot-directory-component # See https://serverfault.com/questions/584986/bad-ownership-or-modes-for-chroot-directory-component
@ -97,7 +97,7 @@ Match Group sftp.main,!ssh.main
PermitUserRC no PermitUserRC no
Match Group sftp.app,!ssh.app Match Group sftp.app,!ssh.app
ForceCommand internal-sftp ForceCommand internal-sftp -u 0002
ChrootDirectory %h ChrootDirectory %h
AllowTcpForwarding no AllowTcpForwarding no
AllowStreamLocalForwarding no AllowStreamLocalForwarding no

View file

@ -5,7 +5,7 @@
# This definition stops the following lines choking if HOME isn't # This definition stops the following lines choking if HOME isn't
# defined. # defined.
HOME = /usr/share/yunohost/yunohost-config/ssl HOME = /usr/share/yunohost/ssl
RANDFILE = $ENV::HOME/.rnd RANDFILE = $ENV::HOME/.rnd
# Extra OBJECT IDENTIFIER info: # Extra OBJECT IDENTIFIER info:
@ -34,7 +34,7 @@ default_ca = Yunohost # The default ca section
#################################################################### ####################################################################
[ Yunohost ] [ Yunohost ]
dir = /usr/share/yunohost/yunohost-config/ssl/yunoCA # Where everything is kept dir = /usr/share/yunohost/ssl # Where everything is kept
certs = $dir/certs # Where the issued certs are kept certs = $dir/certs # Where the issued certs are kept
crl_dir = $dir/crl # Where the issued crl are kept crl_dir = $dir/crl # Where the issued crl are kept
database = $dir/index.txt # database index file. database = $dir/index.txt # database index file.

View file

@ -12,24 +12,31 @@ metronome:
log: [/var/log/metronome/metronome.log,/var/log/metronome/metronome.err] log: [/var/log/metronome/metronome.log,/var/log/metronome/metronome.err]
needs_exposed_ports: [5222, 5269] needs_exposed_ports: [5222, 5269]
category: xmpp category: xmpp
ignore_if_package_is_not_installed: metronome
mysql: mysql:
log: [/var/log/mysql.log,/var/log/mysql.err,/var/log/mysql/error.log] log: [/var/log/mysql.log,/var/log/mysql.err,/var/log/mysql/error.log]
actual_systemd_service: mariadb actual_systemd_service: mariadb
category: database category: database
ignore_if_package_is_not_installed: mariadb-server
nginx: nginx:
log: /var/log/nginx log: /var/log/nginx
test_conf: nginx -t test_conf: nginx -t
needs_exposed_ports: [80, 443] needs_exposed_ports: [80, 443]
category: web category: web
php7.3-fpm: # Yunohost will dynamically add installed php-fpm services (7.3, 7.4, 8.0, ...) in services.py
log: /var/log/php7.3-fpm.log #php7.4-fpm:
test_conf: php-fpm7.3 --test # log: /var/log/php7.4-fpm.log
category: web # test_conf: php-fpm7.4 --test
# category: web
postfix: postfix:
log: [/var/log/mail.log,/var/log/mail.err] log: [/var/log/mail.log,/var/log/mail.err]
actual_systemd_service: postfix@- actual_systemd_service: postfix@-
needs_exposed_ports: [25, 587] needs_exposed_ports: [25, 587]
category: email category: email
postgresql:
actual_systemd_service: 'postgresql@13-main'
category: database
ignore_if_package_is_not_installed: postgresql-13
redis-server: redis-server:
log: /var/log/redis/redis-server.log log: /var/log/redis/redis-server.log
category: database category: database
@ -68,5 +75,6 @@ spamassassin: null
rmilter: null rmilter: null
php5-fpm: null php5-fpm: null
php7.0-fpm: null php7.0-fpm: null
php7.3-fpm: null
nslcd: null nslcd: null
avahi-daemon: null avahi-daemon: null

View file

@ -4,9 +4,7 @@ After=network.target
[Service] [Service]
Type=simple Type=simple
Environment=DAEMON_OPTS= ExecStart=/usr/bin/yunohost-api
EnvironmentFile=-/etc/default/yunohost-api
ExecStart=/usr/bin/yunohost-api $DAEMON_OPTS
Restart=always Restart=always
RestartSec=5 RestartSec=5
TimeoutStopSec=30 TimeoutStopSec=30

View file

@ -1,8 +0,0 @@
# -*- shell-script -*-
readonly XTRACE_ENABLE=$(set +o | grep xtrace) # This is a trick to later only restore set -x if it was set when calling this script
set +x
for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) ; do
[ -r $helper ] && . $helper || true
done
eval "$XTRACE_ENABLE"

View file

@ -1,104 +0,0 @@
#!/bin/bash
# Use logrotate to manage the logfile
#
# usage: ynh_use_logrotate [--logfile=/log/file] [--nonappend] [--specific_user=user/group]
# | arg: -l, --logfile= - absolute path of logfile
# | arg: -n, --nonappend - (optional) Replace the config file instead of appending this new config.
# | arg: -u, --specific_user= - run logrotate as the specified user and group. If not specified logrotate is runned as root.
#
# If no `--logfile` is provided, `/var/log/$app` will be used as default.
# `logfile` can point to a directory or a file.
#
# It's possible to use this helper multiple times, each config will be added to
# the same logrotate config file. Unless you use the option `--non-append`
#
# Requires YunoHost version 2.6.4 or higher.
# Requires YunoHost version 3.2.0 or higher for the argument `--specific_user`
ynh_use_logrotate() {
# Declare an array to define the options of this helper.
local legacy_args=lnuya
local -A args_array=([l]=logfile= [n]=nonappend [u]=specific_user= [y]=non [a]=append)
# [y]=non [a]=append are only for legacy purpose, to not fail on the old option '--non-append'
local logfile
local nonappend
local specific_user
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
logfile="${logfile:-}"
nonappend="${nonappend:-0}"
specific_user="${specific_user:-}"
# LEGACY CODE - PRE GETOPTS
if [ $# -gt 0 ] && [ "$1" == "--non-append" ]; then
nonappend=1
# Destroy this argument for the next command.
shift
elif [ $# -gt 1 ] && [ "$2" == "--non-append" ]; then
nonappend=1
fi
if [ $# -gt 0 ] && [ "$(echo ${1:0:1})" != "-" ]; then
# If the given logfile parameter already exists as a file, or if it ends up with ".log",
# we just want to manage a single file
if [ -f "$1" ] || [ "$(echo ${1##*.})" == "log" ]; then
local logfile=$1
# Otherwise we assume we want to manage a directory and all its .log file inside
else
local logfile=$1/*.log
fi
fi
# LEGACY CODE
local customtee="tee --append"
if [ "$nonappend" -eq 1 ]; then
customtee="tee"
fi
if [ -n "$logfile" ]; then
if [ ! -f "$1" ] && [ "$(echo ${logfile##*.})" != "log" ]; then # Keep only the extension to check if it's a logfile
local logfile="$logfile/*.log" # Else, uses the directory and all logfile into it.
fi
else
logfile="/var/log/${app}/*.log" # Without argument, use a defaut directory in /var/log
fi
local su_directive=""
if [[ -n $specific_user ]]; then
su_directive=" # Run logorotate as specific user - group
su ${specific_user%/*} ${specific_user#*/}"
fi
cat >./${app}-logrotate <<EOF # Build a config file for logrotate
$logfile {
# Rotate if the logfile exceeds 100Mo
size 100M
# Keep 12 old log maximum
rotate 12
# Compress the logs with gzip
compress
# Compress the log at the next cycle. So keep always 2 non compressed logs
delaycompress
# Copy and truncate the log to allow to continue write on it. Instead of move the log.
copytruncate
# Do not do an error if the log is missing
missingok
# Not rotate if the log is empty
notifempty
# Keep old logs in the same dir
noolddir
$su_directive
}
EOF
mkdir --parents $(dirname "$logfile") # Create the log directory, if not exist
cat ${app}-logrotate | $customtee /etc/logrotate.d/$app >/dev/null # Append this config to the existing config file, or replace the whole config file (depending on $customtee)
}
# Remove the app's logrotate config.
#
# usage: ynh_remove_logrotate
#
# Requires YunoHost version 2.6.4 or higher.
ynh_remove_logrotate() {
if [ -e "/etc/logrotate.d/$app" ]; then
rm "/etc/logrotate.d/$app"
fi
}

View file

@ -1,977 +0,0 @@
#!/bin/bash
YNH_APP_BASEDIR=${YNH_APP_BASEDIR:-$(realpath ..)}
# Handle script crashes / failures
#
# [internal]
#
# usage:
# ynh_exit_properly is used only by the helper ynh_abort_if_errors.
# You should not use it directly.
# Instead, add to your script:
# ynh_clean_setup () {
# instructions...
# }
#
# This function provide a way to clean some residual of installation that not managed by remove script.
#
# It prints a warning to inform that the script was failed, and execute the ynh_clean_setup function if used in the app script
#
# Requires YunoHost version 2.6.4 or higher.
ynh_exit_properly() {
local exit_code=$?
rm -rf "/var/cache/yunohost/download/"
if [ "$exit_code" -eq 0 ]; then
exit 0 # Exit without error if the script ended correctly
fi
trap '' EXIT # Ignore new exit signals
# Do not exit anymore if a command fail or if a variable is empty
set +o errexit # set +e
set +o nounset # set +u
# Small tempo to avoid the next message being mixed up with other DEBUG messages
sleep 0.5
if type -t ynh_clean_setup >/dev/null; then # Check if the function exist in the app script.
ynh_clean_setup # Call the function to do specific cleaning for the app.
fi
# Exit with error status
# We don't call ynh_die basically to avoid unecessary 10-ish
# debug lines about parsing args and stuff just to exit 1..
exit 1
}
# Exits if an error occurs during the execution of the script.
#
# usage: ynh_abort_if_errors
#
# This configure the rest of the script execution such that, if an error occurs
# or if an empty variable is used, the execution of the script stops immediately
# and a call to `ynh_clean_setup` is triggered if it has been defined by your script.
#
# Requires YunoHost version 2.6.4 or higher.
ynh_abort_if_errors() {
set -o errexit # set -e; Exit if a command fail
set -o nounset # set -u; And if a variable is used unset
trap ynh_exit_properly EXIT # Capturing exit signals on shell script
}
# Download, check integrity, uncompress and patch the source from app.src
#
# usage: ynh_setup_source --dest_dir=dest_dir [--source_id=source_id] [--keep="file1 file2"]
# | arg: -d, --dest_dir= - Directory where to setup sources
# | arg: -s, --source_id= - Name of the source, defaults to `app`
# | arg: -k, --keep= - Space-separated list of files/folders that will be backup/restored in $dest_dir, such as a config file you don't want to overwrite. For example 'conf.json secrets.json logs/'
#
# This helper will read `conf/${source_id}.src`, download and install the sources.
#
# The src file need to contains:
# ```
# SOURCE_URL=Address to download the app archive
# SOURCE_SUM=Control sum
# # (Optional) Program to check the integrity (sha256sum, md5sum...). Default: sha256
# SOURCE_SUM_PRG=sha256
# # (Optional) Archive format. Default: tar.gz
# SOURCE_FORMAT=tar.gz
# # (Optional) Put false if sources are directly in the archive root. Default: true
# # Instead of true, SOURCE_IN_SUBDIR could be the number of sub directories to remove.
# SOURCE_IN_SUBDIR=false
# # (Optionnal) Name of the local archive (offline setup support). Default: ${src_id}.${src_format}
# SOURCE_FILENAME=example.tar.gz
# # (Optional) If it set as false don't extract the source. Default: true
# # (Useful to get a debian package or a python wheel.)
# SOURCE_EXTRACT=(true|false)
# ```
#
# The helper will:
# - Check if there is a local source archive in `/opt/yunohost-apps-src/$APP_ID/$SOURCE_FILENAME`
# - Download `$SOURCE_URL` if there is no local archive
# - Check the integrity with `$SOURCE_SUM_PRG -c --status`
# - Uncompress the archive to `$dest_dir`.
# - If `$SOURCE_IN_SUBDIR` is true, the first level directory of the archive will be removed.
# - If `$SOURCE_IN_SUBDIR` is a numeric value, the N first level directories will be removed.
# - Patches named `sources/patches/${src_id}-*.patch` will be applied to `$dest_dir`
# - Extra files in `sources/extra_files/$src_id` will be copied to dest_dir
#
# Requires YunoHost version 2.6.4 or higher.
ynh_setup_source() {
# Declare an array to define the options of this helper.
local legacy_args=dsk
local -A args_array=([d]=dest_dir= [s]=source_id= [k]=keep=)
local dest_dir
local source_id
local keep
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
source_id="${source_id:-app}"
keep="${keep:-}"
local src_file_path="$YNH_APP_BASEDIR/conf/${source_id}.src"
# Load value from configuration file (see above for a small doc about this file
# format)
local src_url=$(grep 'SOURCE_URL=' "$src_file_path" | cut --delimiter='=' --fields=2-)
local src_sum=$(grep 'SOURCE_SUM=' "$src_file_path" | cut --delimiter='=' --fields=2-)
local src_sumprg=$(grep 'SOURCE_SUM_PRG=' "$src_file_path" | cut --delimiter='=' --fields=2-)
local src_format=$(grep 'SOURCE_FORMAT=' "$src_file_path" | cut --delimiter='=' --fields=2-)
local src_extract=$(grep 'SOURCE_EXTRACT=' "$src_file_path" | cut --delimiter='=' --fields=2-)
local src_in_subdir=$(grep 'SOURCE_IN_SUBDIR=' "$src_file_path" | cut --delimiter='=' --fields=2-)
local src_filename=$(grep 'SOURCE_FILENAME=' "$src_file_path" | cut --delimiter='=' --fields=2-)
# Default value
src_sumprg=${src_sumprg:-sha256sum}
src_in_subdir=${src_in_subdir:-true}
src_format=${src_format:-tar.gz}
src_format=$(echo "$src_format" | tr '[:upper:]' '[:lower:]')
src_extract=${src_extract:-true}
if [ "$src_filename" = "" ]; then
src_filename="${source_id}.${src_format}"
fi
# (Unused?) mecanism where one can have the file in a special local cache to not have to download it...
local local_src="/opt/yunohost-apps-src/${YNH_APP_ID}/${src_filename}"
mkdir -p /var/cache/yunohost/download/${YNH_APP_ID}/
src_filename="/var/cache/yunohost/download/${YNH_APP_ID}/${src_filename}"
if test -e "$local_src"; then
cp $local_src $src_filename
else
[ -n "$src_url" ] || ynh_die "Couldn't parse SOURCE_URL from $src_file_path ?"
# NB. we have to declare the var as local first,
# otherwise 'local foo=$(false) || echo 'pwet'" does'nt work
# because local always return 0 ...
local out
# Timeout option is here to enforce the timeout on dns query and tcp connect (c.f. man wget)
out=$(wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=$src_filename $src_url 2>&1) \
|| ynh_die --message="$out"
fi
# Check the control sum
echo "${src_sum} ${src_filename}" | ${src_sumprg} --check --status \
|| ynh_die --message="Corrupt source"
# Keep files to be backup/restored at the end of the helper
# Assuming $dest_dir already exists
rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
if [ -n "$keep" ] && [ -e "$dest_dir" ]; then
local keep_dir=/var/cache/yunohost/files_to_keep_during_setup_source/${YNH_APP_ID}
mkdir -p $keep_dir
local stuff_to_keep
for stuff_to_keep in $keep; do
if [ -e "$dest_dir/$stuff_to_keep" ]; then
mkdir --parents "$(dirname "$keep_dir/$stuff_to_keep")"
cp --archive "$dest_dir/$stuff_to_keep" "$keep_dir/$stuff_to_keep"
fi
done
fi
# Extract source into the app dir
mkdir --parents "$dest_dir"
if [ -n "${final_path:-}" ] && [ "$dest_dir" == "$final_path" ]; then
_ynh_apply_default_permissions $dest_dir
fi
if ! "$src_extract"; then
mv $src_filename $dest_dir
elif [ "$src_format" = "zip" ]; then
# Zip format
# Using of a temp directory, because unzip doesn't manage --strip-components
if $src_in_subdir; then
local tmp_dir=$(mktemp --directory)
unzip -quo $src_filename -d "$tmp_dir"
cp --archive $tmp_dir/*/. "$dest_dir"
ynh_secure_remove --file="$tmp_dir"
else
unzip -quo $src_filename -d "$dest_dir"
fi
ynh_secure_remove --file="$src_filename"
else
local strip=""
if [ "$src_in_subdir" != "false" ]; then
if [ "$src_in_subdir" == "true" ]; then
local sub_dirs=1
else
local sub_dirs="$src_in_subdir"
fi
strip="--strip-components $sub_dirs"
fi
if [[ "$src_format" =~ ^tar.gz|tar.bz2|tar.xz$ ]]; then
tar --extract --file=$src_filename --directory="$dest_dir" $strip
else
ynh_die --message="Archive format unrecognized."
fi
ynh_secure_remove --file="$src_filename"
fi
# Apply patches
if [ -d "$YNH_APP_BASEDIR/sources/patches/" ]; then
local patches_folder=$(realpath $YNH_APP_BASEDIR/sources/patches/)
if (($(find $patches_folder -type f -name "${source_id}-*.patch" 2>/dev/null | wc --lines) > "0")); then
(
cd "$dest_dir"
for p in $patches_folder/${source_id}-*.patch; do
echo $p
patch --strip=1 <$p
done
) || ynh_die --message="Unable to apply patches"
fi
fi
# Add supplementary files
if test -e "$YNH_APP_BASEDIR/sources/extra_files/${source_id}"; then
cp --archive $YNH_APP_BASEDIR/sources/extra_files/$source_id/. "$dest_dir"
fi
# Keep files to be backup/restored at the end of the helper
# Assuming $dest_dir already exists
if [ -n "$keep" ]; then
local keep_dir=/var/cache/yunohost/files_to_keep_during_setup_source/${YNH_APP_ID}
local stuff_to_keep
for stuff_to_keep in $keep; do
if [ -e "$keep_dir/$stuff_to_keep" ]; then
mkdir --parents "$(dirname "$dest_dir/$stuff_to_keep")"
cp --archive "$keep_dir/$stuff_to_keep" "$dest_dir/$stuff_to_keep"
fi
done
fi
rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
}
# Curl abstraction to help with POST requests to local pages (such as installation forms)
#
# usage: ynh_local_curl "page_uri" "key1=value1" "key2=value2" ...
# | arg: page_uri - Path (relative to `$path_url`) of the page where POST data will be sent
# | arg: key1=value1 - (Optionnal) POST key and corresponding value
# | arg: key2=value2 - (Optionnal) Another POST key and corresponding value
# | arg: ... - (Optionnal) More POST keys and values
#
# example: ynh_local_curl "/install.php?installButton" "foo=$var1" "bar=$var2"
#
# For multiple calls, cookies are persisted between each call for the same app
#
# `$domain` and `$path_url` should be defined externally (and correspond to the domain.tld and the /path (of the app?))
#
# Requires YunoHost version 2.6.4 or higher.
ynh_local_curl() {
# Define url of page to curl
local local_page=$(ynh_normalize_url_path $1)
local full_path=$path_url$local_page
if [ "${path_url}" == "/" ]; then
full_path=$local_page
fi
local full_page_url=https://localhost$full_path
# Concatenate all other arguments with '&' to prepare POST data
local POST_data=""
local arg=""
for arg in "${@:2}"; do
POST_data="${POST_data}${arg}&"
done
if [ -n "$POST_data" ]; then
# Add --data arg and remove the last character, which is an unecessary '&'
POST_data="--data ${POST_data::-1}"
fi
# Wait untils nginx has fully reloaded (avoid curl fail with http2)
sleep 2
local cookiefile=/tmp/ynh-$app-cookie.txt
touch $cookiefile
chown root $cookiefile
chmod 700 $cookiefile
# Temporarily enable visitors if needed...
local visitors_enabled=$(ynh_permission_has_user "main" "visitors" && echo yes || echo no)
if [[ $visitors_enabled == "no" ]]; then
ynh_permission_update --permission "main" --add "visitors"
fi
# Curl the URL
curl --silent --show-error --insecure --location --header "Host: $domain" --resolve $domain:443:127.0.0.1 $POST_data "$full_page_url" --cookie-jar $cookiefile --cookie $cookiefile
if [[ $visitors_enabled == "no" ]]; then
ynh_permission_update --permission "main" --remove "visitors"
fi
}
# Create a dedicated config file from a template
#
# usage: ynh_add_config --template="template" --destination="destination"
# | arg: -t, --template= - Template config file to use
# | arg: -d, --destination= - Destination of the config file
#
# examples:
# ynh_add_config --template=".env" --destination="$final_path/.env"
# ynh_add_config --template="../conf/.env" --destination="$final_path/.env"
# ynh_add_config --template="/etc/nginx/sites-available/default" --destination="etc/nginx/sites-available/mydomain.conf"
#
# The template can be by default the name of a file in the conf directory
# of a YunoHost Package, a relative path or an absolute path.
#
# The helper will use the template `template` to generate a config file
# `destination` by replacing the following keywords with global variables
# that should be defined before calling this helper :
# ```
# __PATH__ by $path_url
# __NAME__ by $app
# __NAMETOCHANGE__ by $app
# __USER__ by $app
# __FINALPATH__ by $final_path
# __PHPVERSION__ by $YNH_PHP_VERSION
# __YNH_NODE_LOAD_PATH__ by $ynh_node_load_PATH
# ```
# And any dynamic variables that should be defined before calling this helper like:
# ```
# __DOMAIN__ by $domain
# __APP__ by $app
# __VAR_1__ by $var_1
# __VAR_2__ by $var_2
# ```
#
# The helper will verify the checksum and backup the destination file
# if it's different before applying the new template.
#
# And it will calculate and store the destination file checksum
# into the app settings when configuration is done.
#
# Requires YunoHost version 4.1.0 or higher.
ynh_add_config() {
# Declare an array to define the options of this helper.
local legacy_args=tdv
local -A args_array=([t]=template= [d]=destination=)
local template
local destination
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
local template_path
if [ -f "$YNH_APP_BASEDIR/conf/$template" ]; then
template_path="$YNH_APP_BASEDIR/conf/$template"
elif [ -f "$template" ]; then
template_path=$template
else
ynh_die --message="The provided template $template doesn't exist"
fi
ynh_backup_if_checksum_is_different --file="$destination"
# Make sure to set the permissions before we copy the file
# This is to cover a case where an attacker could have
# created a file beforehand to have control over it
# (cp won't overwrite ownership / modes by default...)
touch $destination
chown root:root $destination
chmod 640 $destination
cp -f "$template_path" "$destination"
_ynh_apply_default_permissions $destination
ynh_replace_vars --file="$destination"
ynh_store_file_checksum --file="$destination"
}
# Replace variables in a file
#
# [internal]
#
# usage: ynh_replace_vars --file="file"
# | arg: -f, --file= - File where to replace variables
#
# The helper will replace the following keywords with global variables
# that should be defined before calling this helper :
# __PATH__ by $path_url
# __NAME__ by $app
# __NAMETOCHANGE__ by $app
# __USER__ by $app
# __FINALPATH__ by $final_path
# __PHPVERSION__ by $YNH_PHP_VERSION
# __YNH_NODE_LOAD_PATH__ by $ynh_node_load_PATH
#
# And any dynamic variables that should be defined before calling this helper like:
# __DOMAIN__ by $domain
# __APP__ by $app
# __VAR_1__ by $var_1
# __VAR_2__ by $var_2
#
# Requires YunoHost version 4.1.0 or higher.
ynh_replace_vars() {
# Declare an array to define the options of this helper.
local legacy_args=f
local -A args_array=([f]=file=)
local file
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
# Replace specific YunoHost variables
if test -n "${path_url:-}"; then
# path_url_slash_less is path_url, or a blank value if path_url is only '/'
local path_url_slash_less=${path_url%/}
ynh_replace_string --match_string="__PATH__/" --replace_string="$path_url_slash_less/" --target_file="$file"
ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file="$file"
fi
if test -n "${app:-}"; then
ynh_replace_string --match_string="__NAME__" --replace_string="$app" --target_file="$file"
ynh_replace_string --match_string="__NAMETOCHANGE__" --replace_string="$app" --target_file="$file"
ynh_replace_string --match_string="__USER__" --replace_string="$app" --target_file="$file"
fi
if test -n "${final_path:-}"; then
ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" --target_file="$file"
fi
if test -n "${YNH_PHP_VERSION:-}"; then
ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$YNH_PHP_VERSION" --target_file="$file"
fi
if test -n "${ynh_node_load_PATH:-}"; then
ynh_replace_string --match_string="__YNH_NODE_LOAD_PATH__" --replace_string="$ynh_node_load_PATH" --target_file="$file"
fi
# Replace others variables
# List other unique (__ __) variables in $file
local uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g"))
# Do the replacement
local delimit=@
for one_var in "${uniques_vars[@]}"; do
# Validate that one_var is indeed defined
# -v checks if the variable is defined, for example:
# -v FOO tests if $FOO is defined
# -v $FOO tests if ${!FOO} is defined
# More info: https://stackoverflow.com/questions/3601515/how-to-check-if-a-variable-is-set-in-bash/17538964#comment96392525_17538964
[[ -v "${one_var:-}" ]] || ynh_die --message="Variable \$$one_var wasn't initialized when trying to replace __${one_var^^}__ in $file"
# Escape delimiter in match/replace string
match_string="__${one_var^^}__"
match_string=${match_string//${delimit}/"\\${delimit}"}
replace_string="${!one_var}"
replace_string=${replace_string//\\/\\\\}
replace_string=${replace_string//${delimit}/"\\${delimit}"}
# Actually replace (sed is used instead of ynh_replace_string to avoid triggering an epic amount of debug logs)
sed --in-place "s${delimit}${match_string}${delimit}${replace_string}${delimit}g" "$file"
done
}
# Get a value from heterogeneous file (yaml, json, php, python...)
#
# usage: ynh_read_var_in_file --file=PATH --key=KEY
# | arg: -f, --file= - the path to the file
# | arg: -k, --key= - the key to get
#
# This helpers match several var affectation use case in several languages
# We don't use jq or equivalent to keep comments and blank space in files
# This helpers work line by line, it is not able to work correctly
# if you have several identical keys in your files
#
# Example of line this helpers can managed correctly
# .yml
# title: YunoHost documentation
# email: 'yunohost@yunohost.org'
# .json
# "theme": "colib'ris",
# "port": 8102
# "some_boolean": false,
# "user": null
# .ini
# some_boolean = On
# action = "Clear"
# port = 20
# .php
# $user=
# user => 20
# .py
# USER = 8102
# user = 'https://donate.local'
# CUSTOM['user'] = 'YunoHost'
#
# Requires YunoHost version 4.3 or higher.
ynh_read_var_in_file() {
# Declare an array to define the options of this helper.
local legacy_args=fka
local -A args_array=([f]=file= [k]=key= [a]=after=)
local file
local key
local after
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
after="${after:-}"
[[ -f $file ]] || ynh_die --message="File $file does not exists"
set +o xtrace # set +x
# Get the line number after which we search for the variable
local line_number=1
if [[ -n "$after" ]]; then
line_number=$(grep -n $after $file | cut -d: -f1)
if [[ -z "$line_number" ]]; then
set -o xtrace # set -x
return 1
fi
fi
local filename="$(basename -- "$file")"
local ext="${filename##*.}"
local endline=',;'
local assign="=>|:|="
local comments="#"
local string="\"'"
if [[ "$ext" =~ ^ini|env|toml|yml|yaml$ ]]; then
endline='#'
fi
if [[ "$ext" =~ ^ini|env$ ]]; then
comments="[;#]"
fi
if [[ "php" == "$ext" ]] || [[ "$ext" == "js" ]]; then
comments="//"
fi
local list='\[\s*['$string']?\w+['$string']?\]'
local var_part='^\s*((const|var|let)\s+)?\$?(\w+('$list')*(->|\.|\[))*\s*'
var_part+="[$string]?${key}[$string]?"
var_part+='\s*\]?\s*'
var_part+="($assign)"
var_part+='\s*'
# Extract the part after assignation sign
local expression_with_comment="$(tail +$line_number ${file} | grep -i -o -P $var_part'\K.*$' || echo YNH_NULL | head -n1)"
if [[ "$expression_with_comment" == "YNH_NULL" ]]; then
set -o xtrace # set -x
echo YNH_NULL
return 0
fi
# Remove comments if needed
local expression="$(echo "$expression_with_comment" | sed "s@${comments}[^$string]*\$@@g" | sed "s@\s*[$endline]*\s*]*\$@@")"
local first_char="${expression:0:1}"
if [[ "$first_char" == '"' ]]; then
echo "$expression" | grep -m1 -o -P '"\K([^"](\\")?)*[^\\](?=")' | head -n1 | sed 's/\\"/"/g'
elif [[ "$first_char" == "'" ]]; then
echo "$expression" | grep -m1 -o -P "'\K([^'](\\\\')?)*[^\\\\](?=')" | head -n1 | sed "s/\\\\'/'/g"
else
echo "$expression"
fi
set -o xtrace # set -x
}
# Set a value into heterogeneous file (yaml, json, php, python...)
#
# usage: ynh_write_var_in_file --file=PATH --key=KEY --value=VALUE
# | arg: -f, --file= - the path to the file
# | arg: -k, --key= - the key to set
# | arg: -v, --value= - the value to set
#
# Requires YunoHost version 4.3 or higher.
ynh_write_var_in_file() {
# Declare an array to define the options of this helper.
local legacy_args=fkva
local -A args_array=([f]=file= [k]=key= [v]=value= [a]=after=)
local file
local key
local value
local after
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
after="${after:-}"
[[ -f $file ]] || ynh_die --message="File $file does not exists"
set +o xtrace # set +x
# Get the line number after which we search for the variable
local line_number=1
if [[ -n "$after" ]]; then
line_number=$(grep -n $after $file | cut -d: -f1)
if [[ -z "$line_number" ]]; then
set -o xtrace # set -x
return 1
fi
fi
local range="${line_number},\$ "
local filename="$(basename -- "$file")"
local ext="${filename##*.}"
local endline=',;'
local assign="=>|:|="
local comments="#"
local string="\"'"
if [[ "$ext" =~ ^ini|env|toml|yml|yaml$ ]]; then
endline='#'
fi
if [[ "$ext" =~ ^ini|env$ ]]; then
comments="[;#]"
fi
if [[ "php" == "$ext" ]] || [[ "$ext" == "js" ]]; then
comments="//"
fi
local list='\[\s*['$string']?\w+['$string']?\]'
local var_part='^\s*((const|var|let)\s+)?\$?(\w+('$list')*(->|\.|\[))*\s*'
var_part+="[$string]?${key}[$string]?"
var_part+='\s*\]?\s*'
var_part+="($assign)"
var_part+='\s*'
# Extract the part after assignation sign
local expression_with_comment="$(tail +$line_number ${file} | grep -i -o -P $var_part'\K.*$' || echo YNH_NULL | head -n1)"
if [[ "$expression_with_comment" == "YNH_NULL" ]]; then
set -o xtrace # set -x
return 1
fi
# Remove comments if needed
local expression="$(echo "$expression_with_comment" | sed "s@${comments}[^$string]*\$@@g" | sed "s@\s*[$endline]*\s*]*\$@@")"
endline=${expression_with_comment#"$expression"}
endline="$(echo "$endline" | sed 's/\\/\\\\/g')"
value="$(echo "$value" | sed 's/\\/\\\\/g')"
local first_char="${expression:0:1}"
delimiter=$'\001'
if [[ "$first_char" == '"' ]]; then
# \ and sed is quite complex you need 2 \\ to get one in a sed
# So we need \\\\ to go through 2 sed
value="$(echo "$value" | sed 's/"/\\\\"/g')"
sed -ri "${range}s$delimiter"'(^'"${var_part}"'")([^"]|\\")*("[\s;,]*)(\s*'$comments'.*)?$'$delimiter'\1'"${value}"'"'"${endline}${delimiter}i" ${file}
elif [[ "$first_char" == "'" ]]; then
# \ and sed is quite complex you need 2 \\ to get one in a sed
# However double quotes implies to double \\ to
# So we need \\\\\\\\ to go through 2 sed and 1 double quotes str
value="$(echo "$value" | sed "s/'/\\\\\\\\'/g")"
sed -ri "${range}s$delimiter(^${var_part}')([^']|\\')*('"'[\s,;]*)(\s*'$comments'.*)?$'$delimiter'\1'"${value}'${endline}${delimiter}i" ${file}
else
if [[ "$value" == *"'"* ]] || [[ "$value" == *'"'* ]] || [[ "$ext" =~ ^php|py|json|js$ ]]; then
value='\"'"$(echo "$value" | sed 's/"/\\\\"/g')"'\"'
fi
if [[ "$ext" =~ ^yaml|yml$ ]]; then
value=" $value"
fi
sed -ri "${range}s$delimiter(^${var_part}).*\$$delimiter\1${value}${endline}${delimiter}i" ${file}
fi
set -o xtrace # set -x
}
# Render templates with Jinja2
#
# [internal]
#
# Attention : Variables should be exported before calling this helper to be
# accessible inside templates.
#
# usage: ynh_render_template some_template output_path
# | arg: some_template - Template file to be rendered
# | arg: output_path - The path where the output will be redirected to
ynh_render_template() {
local template_path=$1
local output_path=$2
mkdir -p "$(dirname $output_path)"
# Taken from https://stackoverflow.com/a/35009576
python3 -c 'import os, sys, jinja2; sys.stdout.write(
jinja2.Template(sys.stdin.read()
).render(os.environ));' <$template_path >$output_path
}
# Fetch the Debian release codename
#
# usage: ynh_get_debian_release
# | ret: The Debian release codename (i.e. jessie, stretch, ...)
#
# Requires YunoHost version 2.7.12 or higher.
ynh_get_debian_release() {
echo $(lsb_release --codename --short)
}
# Create a directory under /tmp
#
# [internal]
#
# Deprecated helper
#
# usage: ynh_mkdir_tmp
# | ret: the created directory path
ynh_mkdir_tmp() {
ynh_print_warn --message="The helper ynh_mkdir_tmp is deprecated."
ynh_print_warn --message="You should use 'mktemp -d' instead and manage permissions \
properly with chmod/chown."
local TMP_DIR=$(mktemp --directory)
# Give rights to other users could be a security risk.
# But for retrocompatibility we need it. (This helpers is deprecated)
chmod 755 $TMP_DIR
echo $TMP_DIR
}
_acceptable_path_to_delete() {
local file=$1
local forbidden_paths=$(ls -d / /* /{var,home,usr}/* /etc/{default,sudoers.d,yunohost,cron*})
# Legacy : A couple apps still have data in /home/$app ...
if [[ -n "$app" ]]
then
forbidden_paths=$(echo "$forbidden_paths" | grep -v "/home/$app")
fi
# Use realpath to normalize the path ..
# i.e convert ///foo//bar//..///baz//// to /foo/baz
file=$(realpath --no-symlinks "$file")
if [ -z "$file" ] || grep -q -x -F "$file" <<< "$forbidden_paths"; then
return 1
else
return 0
fi
}
# Remove a file or a directory securely
#
# usage: ynh_secure_remove --file=path_to_remove
# | arg: -f, --file= - File or directory to remove
#
# Requires YunoHost version 2.6.4 or higher.
ynh_secure_remove() {
# Declare an array to define the options of this helper.
local legacy_args=f
local -A args_array=([f]=file=)
local file
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
set +o xtrace # set +x
if [ $# -ge 2 ]; then
ynh_print_warn --message="/!\ Packager ! You provided more than one argument to ynh_secure_remove but it will be ignored... Use this helper with one argument at time."
fi
if [[ -z "$file" ]]; then
ynh_print_warn --message="ynh_secure_remove called with empty argument, ignoring."
elif [[ ! -e $file ]]; then
ynh_print_info --message="'$file' wasn't deleted because it doesn't exist."
elif ! _acceptable_path_to_delete "$file"; then
ynh_print_warn --message="Not deleting '$file' because it is not an acceptable path to delete."
else
rm --recursive "$file"
fi
set -o xtrace # set -x
}
# Extract a key from a plain command output
#
# [internal]
#
# (Deprecated, use --output-as json and jq instead)
ynh_get_plain_key() {
local prefix="#"
local found=0
# We call this key_ so that it's not caught as
# an info to be redacted by the core
local key_=$1
shift
while read line; do
if [[ "$found" == "1" ]]; then
[[ "$line" =~ ^${prefix}[^#] ]] && return
echo $line
elif [[ "$line" =~ ^${prefix}${key_}$ ]]; then
if [[ -n "${1:-}" ]]; then
prefix+="#"
key_=$1
shift
else
found=1
fi
fi
done
}
# Read the value of a key in a ynh manifest file
#
# usage: ynh_read_manifest --manifest="manifest.json" --key="key"
# | arg: -m, --manifest= - Path of the manifest to read
# | arg: -k, --key= - Name of the key to find
# | ret: the value associate to that key
#
# Requires YunoHost version 3.5.0 or higher.
ynh_read_manifest() {
# Declare an array to define the options of this helper.
local legacy_args=mk
local -A args_array=([m]=manifest= [k]=manifest_key=)
local manifest
local manifest_key
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
if [ ! -e "$manifest" ]; then
# If the manifest isn't found, try the common place for backup and restore script.
manifest="$YNH_APP_BASEDIR/manifest.json"
fi
jq ".$manifest_key" "$manifest" --raw-output
}
# Read the upstream version from the manifest or `$YNH_APP_MANIFEST_VERSION`
#
# usage: ynh_app_upstream_version [--manifest="manifest.json"]
# | arg: -m, --manifest= - Path of the manifest to read
# | ret: the version number of the upstream app
#
# If the `manifest` is not specified, the envvar `$YNH_APP_MANIFEST_VERSION` will be used.
#
# The version number in the manifest is defined by `<upstreamversion>~ynh<packageversion>`.
#
# For example, if the manifest contains `4.3-2~ynh3` the function will return `4.3-2`
#
# Requires YunoHost version 3.5.0 or higher.
ynh_app_upstream_version() {
# Declare an array to define the options of this helper.
local legacy_args=m
local -A args_array=([m]=manifest=)
local manifest
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
manifest="${manifest:-}"
if [[ "$manifest" != "" ]] && [[ -e "$manifest" ]]; then
version_key_=$(ynh_read_manifest --manifest="$manifest" --manifest_key="version")
else
version_key_=$YNH_APP_MANIFEST_VERSION
fi
echo "${version_key_/~ynh*/}"
}
# Read package version from the manifest
#
# usage: ynh_app_package_version [--manifest="manifest.json"]
# | arg: -m, --manifest= - Path of the manifest to read
# | ret: the version number of the package
#
# The version number in the manifest is defined by `<upstreamversion>~ynh<packageversion>`.
#
# For example, if the manifest contains `4.3-2~ynh3` the function will return `3`
#
# Requires YunoHost version 3.5.0 or higher.
ynh_app_package_version() {
# Declare an array to define the options of this helper.
local legacy_args=m
local -A args_array=([m]=manifest=)
local manifest
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
version_key_=$YNH_APP_MANIFEST_VERSION
echo "${version_key_/*~ynh/}"
}
# Checks the app version to upgrade with the existing app version and returns:
#
# usage: ynh_check_app_version_changed
# | ret: `UPGRADE_APP` if the upstream version changed, `UPGRADE_PACKAGE` otherwise.
#
# This helper should be used to avoid an upgrade of an app, or the upstream part
# of it, when it's not needed
#
# You can force an upgrade, even if the package is up to date, with the `--force` (or `-F`) argument :
# ```
# sudo yunohost app upgrade <appname> --force
# ```
# Requires YunoHost version 3.5.0 or higher.
ynh_check_app_version_changed() {
local return_value=${YNH_APP_UPGRADE_TYPE}
if [ "$return_value" == "UPGRADE_FULL" ] || [ "$return_value" == "UPGRADE_FORCED" ] || [ "$return_value" == "DOWNGRADE_FORCED" ]; then
return_value="UPGRADE_APP"
fi
echo $return_value
}
# Compare the current package version against another version given as an argument.
#
# usage: ynh_compare_current_package_version --comparison (lt|le|eq|ne|ge|gt) --version <X~ynhY>
# | arg: --comparison - Comparison type. Could be : `lt` (lower than), `le` (lower or equal), `eq` (equal), `ne` (not equal), `ge` (greater or equal), `gt` (greater than)
# | arg: --version - The version to compare. Need to be a version in the yunohost package version type (like `2.3.1~ynh4`)
# | ret: 0 if the evaluation is true, 1 if false.
#
# example: ynh_compare_current_package_version --comparison lt --version 2.3.2~ynh1
#
# This helper is usually used when we need to do some actions only for some old package versions.
#
# Generally you might probably use it as follow in the upgrade script :
# ```
# if ynh_compare_current_package_version --comparison lt --version 2.3.2~ynh1
# then
# # Do something that is needed for the package version older than 2.3.2~ynh1
# fi
# ```
#
# Requires YunoHost version 3.8.0 or higher.
ynh_compare_current_package_version() {
local legacy_args=cv
declare -Ar args_array=([c]=comparison= [v]=version=)
local version
local comparison
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
local current_version=$YNH_APP_CURRENT_VERSION
# Check the syntax of the versions
if [[ ! $version =~ '~ynh' ]] || [[ ! $current_version =~ '~ynh' ]]; then
ynh_die --message="Invalid argument for version."
fi
# Check validity of the comparator
if [[ ! $comparison =~ (lt|le|eq|ne|ge|gt) ]]; then
ynh_die --message="Invalid comparator must be : lt, le, eq, ne, ge, gt"
fi
# Return the return value of dpkg --compare-versions
dpkg --compare-versions $current_version $comparison $version
}
# Check if we should enforce sane default permissions (= disable rwx for 'others')
# on file/folders handled with ynh_setup_source and ynh_add_config
#
# [internal]
#
# Having a file others-readable or a folder others-executable(=enterable)
# is a security risk comparable to "chmod 777"
#
# Configuration files may contain secrets. Or even just being able to enter a
# folder may allow an attacker to do nasty stuff (maybe a file or subfolder has
# some write permission enabled for 'other' and the attacker may edit the
# content or create files as leverage for priviledge escalation ...)
#
# The sane default should be to set ownership to $app:$app.
# In specific case, you may want to set the ownership to $app:www-data
# for example if nginx needs access to static files.
#
_ynh_apply_default_permissions() {
local target=$1
local ynh_requirement=$(jq -r '.requirements.yunohost' $YNH_APP_BASEDIR/manifest.json | tr -d '>= ')
if [ -z "$ynh_requirement" ] || [ "$ynh_requirement" == "null" ] || dpkg --compare-versions $ynh_requirement ge 4.2; then
chmod o-rwx $target
chmod g-w $target
chown -R root:root $target
if ynh_system_user_exists $app; then
chown $app:$app $target
fi
fi
# Crons should be owned by root otherwise they probably don't run
if echo "$target" | grep -q '^/etc/cron'
then
chmod 400 $target
chown root:root $target
fi
}

View file

@ -1,61 +0,0 @@
#!/bin/bash
set -e
do_pre_regen() {
pending_dir=$1
mkdir --parents "${pending_dir}/etc/apt/preferences.d"
echo "
Package: php-common
Pin: origin \"packages.sury.org\"
Pin-Priority: 500" >>"${pending_dir}/etc/apt/preferences.d/extra_php_version"
packages_to_refuse_from_sury="php php-* openssl libssl1.1 libssl-dev"
for package in $packages_to_refuse_from_sury; do
echo "
Package: $package
Pin: origin \"packages.sury.org\"
Pin-Priority: -1" >>"${pending_dir}/etc/apt/preferences.d/extra_php_version"
done
echo "
# PLEASE READ THIS WARNING AND DON'T EDIT THIS FILE
# You are probably reading this file because you tried to install apache2 or
# bind9. These 2 packages conflict with YunoHost.
# Installing apache2 will break nginx and break the entire YunoHost ecosystem
# on your server, therefore don't remove those lines!
# You have been warned.
Package: apache2
Pin: release *
Pin-Priority: -1
Package: apache2-bin
Pin: release *
Pin-Priority: -1
# Also bind9 will conflict with dnsmasq.
# Same story as for apache2.
# Don't install it, don't remove those lines.
Package: bind9
Pin: release *
Pin-Priority: -1
" >>"${pending_dir}/etc/apt/preferences.d/ban_packages"
}
do_post_regen() {
regen_conf_files=$1
# Make sure php7.3 is the default version when using php in cli
update-alternatives --set php /usr/bin/php7.3
}
do_$1_regen ${@:2}

View file

@ -1,81 +0,0 @@
#!/bin/bash
set -e
. /usr/share/yunohost/helpers
do_pre_regen() {
pending_dir=$1
cd /usr/share/yunohost/templates/postfix
postfix_dir="${pending_dir}/etc/postfix"
mkdir -p "$postfix_dir"
default_dir="${pending_dir}/etc/default/"
mkdir -p "$default_dir"
# install plain conf files
cp plain/* "$postfix_dir"
# prepare main.cf conf file
main_domain=$(cat /etc/yunohost/current_host)
# Support different strategy for security configurations
export compatibility="$(yunohost settings get 'security.postfix.compatibility')"
# Add possibility to specify a relay
# Could be useful with some isp with no 25 port open or more complex setup
export relay_port=""
export relay_user=""
export relay_host="$(yunohost settings get 'smtp.relay.host')"
if [ -n "${relay_host}" ]; then
relay_port="$(yunohost settings get 'smtp.relay.port')"
relay_user="$(yunohost settings get 'smtp.relay.user')"
relay_password="$(yunohost settings get 'smtp.relay.password')"
# Avoid to display "Relay account paswword" to other users
touch ${postfix_dir}/sasl_passwd
chmod 750 ${postfix_dir}/sasl_passwd
# Avoid "postmap: warning: removing zero-length database file"
chown postfix ${pending_dir}/etc/postfix
chown postfix ${pending_dir}/etc/postfix/sasl_passwd
cat <<<"[${relay_host}]:${relay_port} ${relay_user}:${relay_password}" >${postfix_dir}/sasl_passwd
postmap ${postfix_dir}/sasl_passwd
fi
export main_domain
export domain_list="$YNH_DOMAINS"
ynh_render_template "main.cf" "${postfix_dir}/main.cf"
cat postsrsd \
| sed "s/{{ main_domain }}/${main_domain}/g" \
| sed "s/{{ domain_list }}/${YNH_DOMAINS}/g" \
>"${default_dir}/postsrsd"
# adapt it for IPv4-only hosts
ipv6="$(yunohost settings get 'smtp.allow_ipv6')"
if [ "$ipv6" == "False" ] || [ ! -f /proc/net/if_inet6 ]; then
sed -i \
's/ \[::ffff:127.0.0.0\]\/104 \[::1\]\/128//g' \
"${postfix_dir}/main.cf"
sed -i \
's/inet_interfaces = all/&\ninet_protocols = ipv4/' \
"${postfix_dir}/main.cf"
fi
}
do_post_regen() {
regen_conf_files=$1
if [ -e /etc/postfix/sasl_passwd ]; then
chmod 750 /etc/postfix/sasl_passwd*
chown postfix:root /etc/postfix/sasl_passwd*
fi
[[ -z "$regen_conf_files" ]] \
|| { systemctl restart postfix && systemctl restart postsrsd; }
}
do_$1_regen ${@:2}

View file

@ -1,55 +0,0 @@
version = "1.0"
i18n = "domain_config"
#
# Other things we may want to implement in the future:
#
# - maindomain handling
# - default app
# - autoredirect www in nginx conf
# - ?
#
[feature]
[feature.mail]
#services = ['postfix', 'dovecot']
[feature.mail.features_disclaimer]
type = "alert"
style = "warning"
icon = "warning"
[feature.mail.mail_out]
type = "boolean"
default = 1
[feature.mail.mail_in]
type = "boolean"
default = 1
#[feature.mail.backup_mx]
#type = "tags"
#default = []
#pattern.regexp = '^([^\W_A-Z]+([-]*[^\W_A-Z]+)*\.)+((xn--)?[^\W_]{2,})$'
#pattern.error = "pattern_error"
[feature.xmpp]
[feature.xmpp.xmpp]
type = "boolean"
default = 0
[dns]
[dns.registrar]
optional = true
# This part is automatically generated in DomainConfigPanel
# [dns.advanced]
#
# [dns.advanced.ttl]
# type = "number"
# min = 0
# default = 3600

View file

@ -1,75 +0,0 @@
VirtualHost "{{ domain }}"
enable = true
ssl = {
key = "/etc/yunohost/certs/{{ domain }}/key.pem";
certificate = "/etc/yunohost/certs/{{ domain }}/crt.pem";
}
authentication = "ldap2"
ldap = {
hostname = "localhost",
user = {
basedn = "ou=users,dc=yunohost,dc=org",
filter = "(&(objectClass=posixAccount)(mail=*@{{ domain }})(permission=cn=xmpp.main,ou=permission,dc=yunohost,dc=org))",
usernamefield = "mail",
namefield = "cn",
},
}
-- Discovery items
disco_items = {
{ "muc.{{ domain }}" },
{ "pubsub.{{ domain }}" },
{ "jabber.{{ domain }}" },
{ "vjud.{{ domain }}" },
{ "xmpp-upload.{{ domain }}" },
};
-- contact_info = {
-- abuse = { "mailto:abuse@{{ domain }}", "xmpp:admin@{{ domain }}" };
-- admin = { "mailto:root@{{ domain }}", "xmpp:admin@{{ domain }}" };
-- };
------ Components ------
-- You can specify components to add hosts that provide special services,
-- like multi-user conferences, and transports.
---Set up a MUC (multi-user chat) room server
Component "muc.{{ domain }}" "muc"
name = "{{ domain }} Chatrooms"
modules_enabled = {
"muc_limits";
"muc_log";
"muc_log_mam";
"muc_log_http";
"muc_vcard";
}
muc_event_rate = 0.5
muc_burst_factor = 10
room_default_config = {
logging = true,
persistent = true
};
---Set up a PubSub server
Component "pubsub.{{ domain }}" "pubsub"
name = "{{ domain }} Publish/Subscribe"
unrestricted_node_creation = true -- Anyone can create a PubSub node (from any server)
---Set up a HTTP Upload service
Component "xmpp-upload.{{ domain }}" "http_upload"
name = "{{ domain }} Sharing Service"
http_file_path = "/var/xmpp-upload/{{ domain }}/upload"
http_external_url = "https://xmpp-upload.{{ domain }}:443"
http_file_base_path = "/upload"
http_file_size_limit = 6*1024*1024
http_file_quota = 60*1024*1024
http_upload_file_size_limit = 100 * 1024 * 1024 -- bytes
http_upload_quota = 10 * 1024 * 1024 * 1024 -- bytes
---Set up a VJUD service
Component "vjud.{{ domain }}" "vjud"
vjud_disco_name = "{{ domain }} User Directory"

View file

@ -1,123 +0,0 @@
-- ** Metronome's config file example **
--
-- The format is exactly equal to Prosody's:
--
-- Lists are written { "like", "this", "one" }
-- Lists can also be of { 1, 2, 3 } numbers, etc.
-- Either commas, or semi-colons; may be used as seperators.
--
-- A table is a list of values, except each value has a name. An
-- example would be:
--
-- ssl = { key = "keyfile.key", certificate = "certificate.cert" }
--
-- Tip: You can check that the syntax of this file is correct when you have finished
-- by running: luac -p metronome.cfg.lua
-- If there are any errors, it will let you know what and where they are, otherwise it
-- will keep quiet.
-- Global settings go in this section
-- This is the list of modules Metronome will load on startup.
-- It looks for mod_modulename.lua in the plugins folder, so make sure that exists too.
modules_enabled = {
-- Generally required
"roster"; -- Allow users to have a roster. Recommended.
"saslauth"; -- Authentication for clients. Recommended if you want to log in.
"tls"; -- Add support for secure TLS on c2s/s2s connections
"disco"; -- Service discovery
-- Not essential, but recommended
"private"; -- Private XML storage (for room bookmarks, etc.)
"vcard"; -- Allow users to set vCards
"pep"; -- Allows setting of mood, tune, etc.
"pubsub"; -- Publish-subscribe XEP-0060
"posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
"bidi"; -- Enables Bidirectional Server-to-Server Streams.
-- Nice to have
"version"; -- Replies to server version requests
"uptime"; -- Report how long server has been running
"time"; -- Let others know the time here on this server
"ping"; -- Replies to XMPP pings with pongs
"register"; -- Allow users to register on this server using a client and change passwords
"stream_management"; -- Allows clients and servers to use Stream Management
"stanza_optimizations"; -- Allows clients to use Client State Indication and SIFT
"message_carbons"; -- Allows clients to enable carbon copies of messages
"mam"; -- Enable server-side message archives using Message Archive Management
"push"; -- Enable Push Notifications via PubSub using XEP-0357
"lastactivity"; -- Enables clients to know the last presence status of an user
"adhoc_cm"; -- Allow to set client certificates to login through SASL External via adhoc
"admin_adhoc"; -- administration adhoc commands
"bookmarks"; -- XEP-0048 Bookmarks synchronization between PEP and Private Storage
"sec_labels"; -- Allows to use a simplified version XEP-0258 Security Labels and related ACDFs.
"privacy"; -- Add privacy lists and simple blocking command support
-- Other specific functionality
--"admin_telnet"; -- administration console, telnet to port 5582
--"admin_web"; -- administration web interface
"bosh"; -- Enable support for BOSH clients, aka "XMPP over Bidirectional Streams over Synchronous HTTP"
--"compression"; -- Allow clients to enable Stream Compression
--"spim_block"; -- Require authorization via OOB form for messages from non-contacts and block unsollicited messages
--"gate_guard"; -- Enable config-based blacklisting and hit-based auto-banning features
--"incidents_handling"; -- Enable Incidents Handling support (can be administered via adhoc commands)
--"server_presence"; -- Enables Server Buddies extension support
--"service_directory"; -- Enables Service Directories extension support
--"public_service"; -- Enables Server vCard support for public services in directories and advertises in features
--"register_api"; -- Provides secure API for both Out-Of-Band and In-Band registration for E-Mail verification
"websocket"; -- Enable support for WebSocket clients, aka "XMPP over WebSockets"
};
-- Server PID
pidfile = "/var/run/metronome/metronome.pid"
-- HTTP server
http_ports = { 5290 }
http_interfaces = { "127.0.0.1", "::1" }
--https_ports = { 5291 }
--https_interfaces = { "127.0.0.1", "::1" }
-- Enable IPv6
use_ipv6 = true
-- BOSH configuration (mod_bosh)
consider_bosh_secure = true
cross_domain_bosh = true
-- WebSocket configuration (mod_websocket)
consider_websocket_secure = true
cross_domain_websocket = true
-- Disable account creation by default, for security
allow_registration = false
-- Use LDAP storage backend for all stores
storage = "ldap"
-- stanza optimization
csi_config_queue_all_muc_messages_but_mentions = false;
-- Logging configuration
log = {
info = "/var/log/metronome/metronome.log"; -- Change 'info' to 'debug' for verbose logging
error = "/var/log/metronome/metronome.err";
-- "*syslog"; -- Uncomment this for logging to syslog
-- "*console"; -- Log to the console, useful for debugging with daemonize=false
}
------ Components ------
-- You can specify components to add hosts that provide special services,
-- like multi-user conferences, and transports.
---Set up a local BOSH service
Component "localhost" "http"
modules_enabled = { "bosh" }
----------- Virtual hosts -----------
-- You need to add a VirtualHost entry for each domain you wish Metronome to serve.
-- Settings under each VirtualHost entry apply *only* to that host.
Include "conf.d/*.cfg.lua"

View file

@ -1,92 +0,0 @@
# Example MySQL config file for small systems.
#
# This is for a system with little memory (<= 64M) where MySQL is only used
# from time to time and it's important that the mysqld daemon
# doesn't use much resources.
#
# MySQL programs look for option files in a set of
# locations which depend on the deployment platform.
# You can copy this option file to one of those
# locations. For information about these locations, see:
# http://dev.mysql.com/doc/mysql/en/option-files.html
#
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the "--help" option.
# The following options will be passed to all MySQL clients
[client]
#password = your_password
port = 3306
socket = /var/run/mysqld/mysqld.sock
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
port = 3306
socket = /var/run/mysqld/mysqld.sock
skip-external-locking
key_buffer_size = 16K
max_allowed_packet = 16M
table_open_cache = 4
sort_buffer_size = 4M
read_buffer_size = 256K
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 128K
# to avoid corruption on powerfailure
default-storage-engine=innodb
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (using the "enable-named-pipe" option) will render mysqld useless!
#
#skip-networking
server-id = 1
# Uncomment the following if you want to log updates
#log-bin=mysql-bin
# binary logging format - mixed recommended
#binlog_format=mixed
# Causes updates to non-transactional engines using statement format to be
# written directly to binary log. Before using this option make sure that
# there are no dependencies between transactional and non-transactional
# tables such as in the statement INSERT INTO t_myisam SELECT * FROM
# t_innodb; otherwise, slaves may diverge from the master.
#binlog_direct_non_transactional_updates=TRUE
# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = /var/lib/mysql
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = /var/lib/mysql
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#innodb_buffer_pool_size = 16M
#innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 5M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[myisamchk]
key_buffer_size = 8M
sort_buffer_size = 8M
[mysqlhotcopy]
interactive-timeout

View file

@ -1,3 +0,0 @@
location / {
return 302 https://$http_host/yunohost/admin;
}

Some files were not shown because too many files have changed in this diff Show more