Compare commits

...

5251 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
9ef7ac7117 Update changelog for 4.4.2.9 2022-08-19 18:30:53 +02:00
Alexandre Aubin
3706ba3121 Hmpf 2022-08-19 18:30:23 +02:00
Alexandre Aubin
4a1b31bac4 Update changelog for 4.4.2.8 2022-08-18 19:25:31 +02:00
Alexandre Aubin
a2d4abc1f8 bullseye migration: fix check about free space in /boot/ ... 2022-08-18 19:24:34 +02:00
Alexandre Aubin
b306df2c3b apt helper: fix edge case with equivs package being flagged hold because of buster->bullseye migration 2022-08-18 19:17:48 +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
b08a31caee Update changelog for 4.4.2.7 2022-08-17 01:22:11 +02:00
Alexandre Aubin
d283c900f4 bullseye migration: higher treshold for low space detection in /boot/ because some people still experience the issue on 4.4.2.6 2022-08-17 01:21:12 +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
87f0eff955 upgrades: ignore boring insserv warnings during apt commands 2022-08-15 16:42:56 +02:00
Alexandre Aubin
75e96a42ff Update changelog for 4.4.2.6 2022-08-15 15:50:16 +02:00
Alexandre Aubin
d03abcc73c bullseye migration: simplify code, we can suffix packages with '-' to mean that we want to remove them during apt install call 2022-08-15 15:49:43 +02:00
Alexandre Aubin
18ea57a8cc Aleks made a gazillion typos again 2022-08-15 15:47:47 +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
415ed60227 Update changelog for 4.4.2.5 2022-08-14 19:41:50 +02:00
Alexandre Aubin
f6a80e118e Stupid typo.. 2022-08-14 19:41:27 +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
0a66d039c2 Update changelog for 4.4.2.4 2022-08-14 18:18:55 +02:00
Alexandre Aubin
633a1fbffe bullseye migration: better detection mechanism for the libc6 / libgcc hell issue 2022-08-14 18:17:24 +02:00
Alexandre Aubin
02fcbd9792 bullseye migration: add a check that there's at least 70MB available in /boot ... 2022-08-14 18:10:10 +02:00
Alexandre Aubin
e68fc821cf bullseye migration: trash pip freeze stderr because it's confusing users ... 2022-08-14 18:07:04 +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
b3d28bf85d Update changelog for 4.4.2.3 2022-08-13 20:06:47 +02:00
Alexandre Aubin
77c2f5dcd6 bullseye migration: add ffsync to deprecated apps 2022-08-13 20:05:40 +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
Alexandre Aubin
71ad719aaf Update changelog for 4.4.2.2 2022-08-13 19:56:13 +02:00
yunohost-bot
f7fc609abe [CI] Format code with Black 2022-08-13 17:54:50 +00:00
Alexandre Aubin
61175392ed bullseye migration: backport a bunch of fixes from the dev branch 2022-08-13 19:50:35 +02: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
5d26fec9a5 Update changelog for 4.4.2.1 2022-08-11 15:56:44 +02:00
Alexandre Aubin
5fd74577c4 /opt may not exist ... 2022-08-11 15:51:03 +02:00
Alexandre Aubin
7403d4679f Unused vars, black 2022-08-11 15:49:44 +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
fa207ebaff Update changelog for 4.4.2 2022-08-09 17:02:47 +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
80015a728c bullseye migration: tweak message to prepare for stable release 2022-08-07 22:57:36 +02:00
Alexandre Aubin
ad9b6661c2 Merge remote-tracking branch 'origin/buster' into dev 2022-08-07 19:11:49 +02:00
Alexandre Aubin
a401a000e4
Merge pull request #1479 from theo-is-taken/buster_migration_fix
Saving app's venv in a requirements file, in order to regenerate it
2022-08-07 19:08:28 +02:00
Alexandre Aubin
2b63058b45
bullseye migration: _generate_requirements -> _backup_pip_freeze_for_python_app_venvs 2022-08-07 19:07:32 +02:00
Alexandre Aubin
f83a357d33
bullseye migration: in venv / pip freeze backup mechanism, remove the venv_ignore stuff because it's not relevant anymore 2022-08-07 19:06:53 +02:00
ljf
5a3911c65f [enh] Split bullseye migration and venv migrations 2022-08-07 15:26:54 +02:00
ljf (zamentur)
e94b7197f2
[enh] Simplify the pip install call
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2022-08-07 15:04:55 +02:00
ljf (zamentur)
bcdb36b7b2
[enh] Simplify the pip freeze call
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2022-08-07 15:03:27 +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
d531f8e085 Proper locales 2022-07-22 16:22:04 +02:00
theo@manjaro
22fc36e16e Doc-strings and formatting 2022-07-22 16:15:31 +02:00
theo-is-taken
3fea05c4d6
Update src/yunohost/data_migrations/0021_migrate_to_bullseye.py
Co-authored-by: ljf (zamentur) <zamentur@users.noreply.github.com>
2022-07-22 16:01:18 +02:00
theo@manjaro
cdd5790808 Fixed content condition 2022-07-22 16:00:23 +02:00
theo@manjaro
b7b4dbfcdf Increased depth of scan 2022-07-22 15:56:54 +02:00
theo@manjaro
fc0266a62e Removed "useless" venv backup 2022-07-22 15:53:50 +02:00
theo@manjaro
3e4b88322d Merge branch 'buster_migration_fix' of https://github.com/theo-is-taken/yunohost into buster_migration_fix 2022-07-22 15:37:27 +02:00
theo@manjaro
a440afe8eb Clarification regarding the use of os functions instead of glob 2022-07-22 15:26:10 +02:00
theo-is-taken
2e9c4f991e
Update src/yunohost/data_migrations/0021_migrate_to_bullseye.py
Co-authored-by: ljf (zamentur) <zamentur@users.noreply.github.com>
2022-07-22 15:23:06 +02:00
theo@manjaro
1ce13d631d Detect venvs from /var/www/ and recursively 2022-07-22 14:15:21 +02:00
theo@manjaro
2d223c9158 Saving app's venv in a requirements file, in order to regenerate it
post-update
2022-07-22 10:22:28 +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)
cc5649cfb2 [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:27:39 +02: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
Alexandre Aubin
b928dd1222 migrate_to_bullseye: /etc/apt/sources.list may not exist 2022-04-27 16:25:14 +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
Kay0u
1e1b0ddbbb
Update changelog for 4.4.1 2022-03-29 14:05:43 +02:00
Kay0u
8995019e74
Merge tag 'debian/4.3.6.3' into buster 2022-03-29 13:57:31 +02:00
Kay0u
6fc6a2ba4c
Update changelog for 4.3.6.3 2022-03-29 13:54:08 +02:00
Kay0u
1693c83181
backport fix for openssl conflict 2022-03-29 13:51:16 +02:00
Kay0u
8bddd5fb4b
fix openssl conflict 2022-03-29 13:39:08 +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
Alexandre Aubin
31d3719b48 php helpers: only trigger the legacy remove_apt_deps inside ynh_remove_fpm_config if we're in the remove string to prevent epic catastrophies when the app changes php version 2022-02-09 17:52:26 +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
61a01f5c81 Update changelog for 4.4.0 2022-01-19 20:47:41 +01:00
Alexandre Aubin
d07cf83d93 migrate_to_bullseye: tweaks to point to the current beta-testing forum thread 2022-01-19 20:44:51 +01:00
Alexandre Aubin
9c1f3c4be8 Revert "Tmp remove bullseye migration for stable release"
This reverts commit 383e540ee0.
2022-01-19 20:34:59 +01:00
Alexandre Aubin
981fca64e2 Update changelog for 4.3.6.2 2022-01-19 20:31:04 +01:00
Alexandre Aubin
7920cc6280 apt helpers: fix bug when var is empty... 2022-01-19 20:30:11 +01:00
Alexandre Aubin
1725da45d4 Update changelog for 4.3.6.1 2022-01-19 20:08:50 +01:00
Alexandre Aubin
383e540ee0 Tmp remove bullseye migration for stable release 2022-01-19 20:08:34 +01:00
Alexandre Aubin
7e887829f6
Merge pull request #1411 from YunoHost/ci-format-dev
[CI] Format code with Black
2022-01-18 17:14:35 +01:00
Alexandre Aubin
c74929fc42
Merge pull request #1412 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2022-01-18 17:14:18 +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
yunohost-bot
7373971573 [CI] Format code with Black 2022-01-17 22:03:13 +00:00
Gregor
1bbe3441d8 Translated using Weblate (German)
Currently translated at 100.0% (720 of 720 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2022-01-17 21:49:05 +00:00
Alexandre Aubin
deda909eba typoe / Aaaand ofc I forgot to pass the var as argument ∕o\ 2022-01-17 22:48:45 +01:00
Alexandre Aubin
019839dbf9 certificates: fix edge case where None is returned, triggering 'NoneType has no attribute get' 2022-01-17 22:06:49 +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
ac5718c666 migrate_to_bullseye: add super ugly and boring hack to tools_upgrade to run some commands needed after migrations é_è 2022-01-17 20:38:43 +01:00
Kay0u
6ea3272828
fix ynh_install_app_dependencies when an app change his default phpversion 2022-01-17 17:36:54 +01:00
Alexandre Aubin
c2c0358781 Moar boring apt warnings to filter 2022-01-17 16:23:27 +01:00
Alexandre Aubin
2612df97d0 hmpf 2022-01-17 15:47:19 +01:00
Alexandre Aubin
b80158befe typo, in bash return is only inside functions... 2022-01-17 14:31:06 +01:00
Alexandre Aubin
938d08134e migrate_to_bullseye: Try to tell the system to not yolorestart nginx in the middle of the big upgrade because of nginx-common... 2022-01-17 14:12:53 +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
71f456286a
Merge pull request #1410 from YunoHost/dnsmasq-check-operstate
[dnsmasq] ensure interface is up
2022-01-14 20:52:31 +01:00
Kay0u
9354227a4e
[dnsmasq] ensure interface is up 2022-01-14 12:07:46 +01:00
Alexandre Aubin
08efbbb904 Revert "Tmp remove bullseye migration for minor release"
This reverts commit f322783d15.
2022-01-14 01:37:17 +01:00
Alexandre Aubin
4e560a9395 Update changelog for 4.3.6 2022-01-14 01:35:09 +01:00
Alexandre Aubin
f322783d15 Tmp remove bullseye migration for minor release 2022-01-14 01:34:47 +01:00
Alexandre Aubin
6dbca18f97
Merge pull request #1409 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2022-01-14 00:49:34 +01:00
Boudewijn
d196f0be34 Translated using Weblate (Dutch)
Currently translated at 13.1% (95 of 720 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/nl/
2022-01-13 21:22:10 +00: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
d81b85a49a diagnosis: incorrect dns check (relative vs absolute) for CNAME on subdomain 2022-01-11 20:54:55 +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
23d58c1217 Reformat fr locale 2022-01-11 16:06:32 +01:00
Alexandre Aubin
fedcf6dabb migrate_to_bullseye: mark the base php7.4 packages as auto 2022-01-11 16:04:25 +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
c4d2654dc5
Merge pull request #1407 from YunoHost/fix-upgrade-apt-deps
[fix] Force dependencies upgrade even if previous version is accepted
2022-01-11 12:53:49 +01:00
Alexandre Aubin
d657356ffa
Merge pull request #1403 from YunoHost/ci-format-dev
[CI] Format code with Black
2022-01-09 19:04:13 +01:00
Alexandre Aubin
1c404252f0
Merge pull request #1399 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2022-01-09 19:03:42 +01:00
Boudewijn
cc7fe09efa Translated using Weblate (Dutch)
Currently translated at 11.3% (82 of 720 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/nl/
2022-01-09 18:02:57 +00:00
Tymofii-Lytvynenko
aba7e3fba3 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (720 of 720 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2022-01-09 18:02:57 +00:00
Christian Wehrli
dbc8852730 Translated using Weblate (German)
Currently translated at 97.9% (705 of 720 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2022-01-09 18:02:57 +00:00
José M
80805b3bc6 Translated using Weblate (Galician)
Currently translated at 100.0% (720 of 720 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2022-01-09 18:02:57 +00:00
Éric Gaspar
e0e93dd29e Translated using Weblate (French)
Currently translated at 100.0% (720 of 720 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2022-01-09 18:02:57 +00:00
Christian Wehrli
39d28af963 Translated using Weblate (German)
Currently translated at 98.0% (705 of 719 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2022-01-09 18:02:57 +00:00
Germain Edy
fb85030bc3 Translated using Weblate (French)
Currently translated at 100.0% (719 of 719 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2022-01-09 18:02:57 +00:00
Germain Edy
ca71d37447 Translated using Weblate (Spanish)
Currently translated at 83.5% (601 of 719 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/es/
2022-01-09 18:02:57 +00:00
Alexandre Aubin
d28e2a03ad
Merge pull request #1402 from YunoHost/add-codequality
Add codequality
2022-01-09 19:02:50 +01:00
Alexandre Aubin
b63136da52 certificate: don't attempt to restart metronome if not installed 2022-01-09 18:41:44 +01:00
ljf
b59348fffe [fix] Force dependencies upgrade even if previous version is accepted 2022-01-08 17:33:58 +01:00
yunohost-bot
bbcbc411ea [CI] Format code with Black 2022-01-07 22:02:58 +00:00
Alexandre Aubin
7aa840a956
Typo: grep doesn't like args starting with dashes 2022-01-07 22:46:15 +01:00
Alexandre Aubin
b0f756b1a8 Aaaand order matters in apt preferences 2022-01-07 14:58:50 +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
b7121502d6 More sury/php madness ... forbidding php-common doesnt seem to be good idea so let's have it 2022-01-07 02:48:02 +01:00
Alexandre Aubin
9cfbbd122b migrate_to_bullseye: add sury before running apt update otherwise we end up in an inconsistent state 2022-01-07 02:26:18 +01:00
Alexandre Aubin
79c70b7629 migrate_to_bullseye: add the list of app-ynh-deps in the php7.4 install trick, because that seem to solve some stupid dependency blocage issues... 2022-01-07 01:01:19 +01:00
Alexandre Aubin
607fad2105 Sury has a crazy new amount of php-* packages that depend on specific versions of php, we shall ban them or it creates a frakin mess 2022-01-07 00:54:57 +01:00
Kayou
2b3138ef80
remove args for metadata (#1405)
* remove args for metadata

* Add explanation for removing 'args' from log metadata

Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2022-01-06 17:37:05 +01:00
Alexandre Aubin
24f8faca67
Merge pull request #1404 from Tagadda/fix-remove-old-certs
[fix] Force install certificate on yunohost domain add
2022-01-06 14:05:36 +01:00
Tagada
b5e04df398 [fix] Force install certificate on yunohost domain add 2022-01-06 11:50:10 +01:00
Alexandre Aubin
fa163cbc2e migrate_to_bullseye: zblerg, more constrains to not yoloremove app-ynh-deps ... 2022-01-05 19:50:50 +01:00
Alexandre Aubin
17ad3c8581 migrate_to_bullseye: fix typo + reorganize a couple steps 2022-01-05 17:45:23 +01:00
Alexandre Aubin
3cc1a0a59d tools_upgrade: filter more boring apt messages 2022-01-05 17:44:15 +01:00
Alexandre Aubin
0973301b0f ynh_add_config: crons should be owned by root, otherwise they probably don't run? 2022-01-04 20:10:13 +01:00
Kay0u
4a377bbf23
add fixme plugin 2022-01-04 18:05:24 +01:00
Kay0u
816c503d3a
add codeclimate file 2022-01-04 17:59:37 +01:00
Kay0u
8321642a34
Add codequality 2022-01-04 17:41:06 +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
bd8fe6d4db
Merge pull request #1401 from YunoHost/ci-format-dev
[CI] Format code with Black
2022-01-03 17:07:21 +01:00
yunohost-bot
05b93aaaf1 [CI] Format code with Black 2022-01-03 16:01:49 +00:00
Alexandre Aubin
b552b792df
Merge pull request #1388 from YunoHost/enh-ssh-password-authentication-setting
[enh] Manage SSH PasswordAuthentication setting
2022-01-03 16:35:45 +01:00
Alexandre Aubin
e98ba46e4b
postinstall: don't skip migrate_to_bullseye migration when installing a fresh buster 2022-01-03 16:32:34 +01:00
Alexandre Aubin
fa9365d5fa
Yolotweaking for the bullseye migration mecanism to also install, for example, php7.4-zip if an app is gonna need it 2022-01-03 16:28:35 +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
Alexandre Aubin
adb029eb98
Merge pull request #1400 from YunoHost/lgtm-warnings
Lgtm warnings
2021-12-30 18:49:01 +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
Kayou
e6a2f8ca00
Merge pull request #1398 from YunoHost/ci-format-dev
[CI] Format code with Black
2021-12-30 15:08:01 +01:00
Kay0u
7cb96c6652
fix ldap_migration decorator 2021-12-30 00:25:54 +01:00
Kay0u
bbe0486935
Trying to fix some lgtm warnings 2021-12-30 00:08:49 +01:00
Kay0u
2cc09aca91
some improvements 2021-12-29 22:45:25 +01:00
Kay0u
f92c88aff7
remove unused lines 2021-12-29 22:41:57 +01:00
Kay0u
de149975d2
Remove unused variable 2021-12-29 22:40:54 +01:00
yunohost-bot
94bf107838 [CI] Format code with Black 2021-12-29 00:44:22 +00:00
Alexandre Aubin
2f38639a2e Revert "Tmp removal of bullseye migration for small release"
This reverts commit 76b9838bfd.
2021-12-29 01:07:34 +01:00
Alexandre Aubin
509ba1e8a2 Update changelog for 4.3.5 2021-12-29 01:07:09 +01:00
Alexandre Aubin
76b9838bfd Tmp removal of bullseye migration for small release 2021-12-29 01:06:45 +01:00
Alexandre Aubin
6ecc3cc4ae
Merge pull request #1396 from YunoHost/add-lgtm
add lgtm/code quality badge
2021-12-29 00:36:40 +01:00
Alexandre Aubin
f8004570ab
Merge pull request #1395 from YunoHost/pyupgrade
Pyupgrade
2021-12-29 00:36:31 +01:00
Alexandre Aubin
76abbf03d7 diagnosis: bump treshold for suspiciously high number of auth failure because too many people getting report about it idk 2021-12-29 00:35:42 +01:00
Alexandre Aubin
94346e8892
Merge pull request #1397 from YunoHost/ci-remove-stale-translated-strings-dev
[CI] Reformat / remove stale translated strings
2021-12-27 18:08:33 +01:00
yunohost-bot
bd04779e40 [CI] Reformat / remove stale translated strings 2021-12-27 15:31:00 +00:00
Alexandre Aubin
dce411e0e6
Improve setting description 2021-12-27 15:36:38 +01:00
Alexandre Aubin
a063b63d1c
ssh config : Invert the password_authentication value check to be more resilient in case something goes wrong while fetching / parsing the value 2021-12-27 15:35:02 +01:00
Alexandre Aubin
3570f592f5
Merge pull request #1380 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-12-27 15:30:44 +01:00
Alexandre Aubin
377ccd8acf Typo /o\ 2021-12-27 15:19:48 +01:00
Alexandre Aubin
7112deb167 f-string all the things! 2021-12-27 14:59:08 +01:00
Kay0u
c4b83459b8
add lgtm/code quality badge 2021-12-25 18:20:12 +01:00
Kay0u
a615528c7f
remove double quote around a variable 2021-12-25 17:32:50 +01:00
Laurent Peuch
77058ab356 [mod] stop using old style class 2021-12-24 01:16:52 +01:00
Laurent Peuch
ad56275801 [mod] run pyupgrade on source code 2021-12-24 01:16:41 +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
Juan Alberto González
4fc6db6317 Translated using Weblate (Spanish)
Currently translated at 83.0% (597 of 719 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/es/
2021-12-23 05:53:58 +00:00
Alexandre Aubin
f49f03d11e api: Move cookie session management logic to the authenticator for more flexibility 2021-12-22 19:07:19 +01:00
Weblate
f0d77deea4 Merge branch 'dev' of https://github.com/YunoHost/yunohost into dev 2021-12-22 17:51:46 +00:00
Alexandre Aubin
b35f27d580
Merge pull request #1393 from YunoHost/fix-app-key-del
Fix typo in deleting superfluous question keys
2021-12-21 13:10:09 +01:00
tituspijean
4decdfc07c
Fix typo in deleting superfluous question keys
Co-authored-by: jacen05 <jacen05@users.noreply.github.com>
2021-12-21 10:32:19 +01:00
José M
4315045e4a Translated using Weblate (Galician)
Currently translated at 100.0% (719 of 719 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-12-17 14:37:35 +00:00
Alexandre Aubin
cdcd38f06f
Merge pull request #1392 from moutonjr/PR-Locale-optiondashs
Message stays compliant in each locale with --apps deprecation
2021-12-17 15:37:21 +01:00
Moutonjr Geoff
e84bd3a1c1 Message stays compliant in each locale with --apps deprecation 2021-12-17 11:23:00 +01:00
Tymofii-Lytvynenko
05c69ed9fa Translated using Weblate (Ukrainian)
Currently translated at 100.0% (719 of 719 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2021-12-13 17:19:54 +00:00
Éric Gaspar
7c8ded3275 Translated using Weblate (French)
Currently translated at 100.0% (719 of 719 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-12-13 17:19:54 +00:00
Valentin von Guttenberg
c3ef8ad3c7 Translated using Weblate (German)
Currently translated at 100.0% (705 of 705 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-12-13 17:19:54 +00:00
Colin Wawrik
b6250c0094 Translated using Weblate (German)
Currently translated at 100.0% (705 of 705 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-12-13 17:19:54 +00:00
Valentin von Guttenberg
77d74eba06 Translated using Weblate (German)
Currently translated at 100.0% (705 of 705 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-12-13 17:19:54 +00:00
Tymofii Lytvynenko
4d8ca7aaad Translated using Weblate (Ukrainian)
Currently translated at 100.0% (705 of 705 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2021-12-13 17:19:54 +00:00
Boudewijn
10699e5de0 Translated using Weblate (Dutch)
Currently translated at 11.4% (81 of 705 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/nl/
2021-12-13 17:19:54 +00:00
Ilya
da1b0aa041 Translated using Weblate (Russian)
Currently translated at 26.9% (190 of 705 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ru/
2021-12-13 17:19:54 +00:00
Christian Wehrli
c27f13230c Translated using Weblate (German)
Currently translated at 91.0% (642 of 705 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-12-13 17:19:54 +00:00
Ilya
59c2788621 Translated using Weblate (Russian)
Currently translated at 24.1% (170 of 705 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ru/
2021-12-13 17:19:54 +00:00
Ilya
fbf85fa0ba Translated using Weblate (Russian)
Currently translated at 14.4% (102 of 705 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ru/
2021-12-13 17:19:54 +00:00
liimee
cc1230c5de Translated using Weblate (Indonesian)
Currently translated at 7.9% (56 of 705 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/id/
2021-12-13 17:19:54 +00:00
Alexandre Aubin
0fc209acfb [fix] helpers logrorate: remove permission tweak .. code was not working as expected. To be re-addressed some day ... 2021-12-13 18:19:32 +01:00
Alexandre Aubin
8a3a6d7fe9
Merge pull request #1390 from YunoHost/ci-format-dev
[CI] Format code with Black
2021-12-09 21:40:29 +01:00
yunohost-bot
6cc7978b4a [CI] Format code with Black 2021-12-09 19:18:07 +00:00
Alexandre Aubin
451ee7a8ae
Merge pull request #1242 from YunoHost/migrate_to_bullseye
WIP: buster -> bullseye migration
2021-12-09 20:01:16 +01:00
Alexandre Aubin
8abd843fdd Aaaand typo T_T 2021-12-09 17:31:07 +01:00
Alexandre Aubin
c4732b776e migrate_to_bullseye: Remove legacy postgresql service record added by helpers, will now be dynamically handled by the core in bullseye 2021-12-09 17:13:06 +01:00
Alexandre Aubin
107bd854eb migrate_to_bullseye: fix PHP dependencies issues 2021-12-09 16:47:57 +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
Kayou
e3015765b3
Merge pull request #1381 from YunoHost/fix-backup_delete
fix backup_delete when compress_tar_archives is True
2021-12-09 11:09:24 +01:00
Alexandre Aubin
dc426510f5 Merge branch 'migrate_to_bullseye' into bullseye 2021-12-08 22:19:03 +01:00
Alexandre Aubin
b617c799d0 migrate_to_bullseye: move /home/yunohost.conf to /var/cache/yunohost/regenconf 2021-12-08 22:11:02 +01:00
Alexandre Aubin
a124bbc790 Merge branch 'dev' into migrate_to_bullseye 2021-12-08 22:08:13 +01:00
Alexandre Aubin
71a08c09ea Update changelog for 4.3.4.2 2021-12-08 22:07:01 +01:00
ericgaspar
d1ab1f674e Update n to 8.0.1 2021-12-07 18:15:56 +01:00
ljf
1b198e12f6 [fix] Missing locale key 2021-12-07 00:14:15 +01:00
ljf
4106ed669e [enh] Manage SSH PasswordAuthentication setting 2021-12-06 23:01:06 +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
47f3c00d0c
helpers apt/php: fix typo spotted by tituspijean 2021-12-03 01:00:19 +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
35927e32bb
Merge pull request #1386 from YunoHost/fix-hook-restore-multimedia
[fix] hook restore multimedia
2021-11-30 13:21:54 +01:00
Kayou
2bd1df0659
[fix] hook restore multimedia 2021-11-30 13:10:20 +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
6854f23cca [fix] yunomdns: Ignore ipv4 link-local addresses 2021-11-28 02:51:58 +01:00
Alexandre Aubin
e3f33d6c20 Update changelog for 4.3.4.1 2021-11-27 21:17:06 +01:00
Alexandre Aubin
d792e4880d
Merge pull request #1385 from YunoHost/enh-dns-resolver
[fix] Try to fix the return line bug in dnsmasq conf
2021-11-27 21:14:51 +01:00
Alexandre Aubin
b3df36dd16
Typo é_è 2021-11-27 20:27:29 +01:00
ljf
31dfb19a02 [fix] Try to fix the return line bug in dnsmasq conf 2021-11-27 19:29:20 +01:00
Alexandre Aubin
5881938c69 Force permission on /etc/resolv.dnsmasq.conf to fix an issue on some setup with umask=027 2021-11-27 16:33:29 +01:00
Alexandre Aubin
a0344d44bd Update changelog for 4.3.4 2021-11-27 00:56:55 +01:00
Alexandre Aubin
fdaf37c9fd
Merge pull request #1383 from YunoHost/enh-dns-resolver
Hotspot with local services and router port unforwarded
2021-11-27 00:51:23 +01:00
ljf
f34f9e5fc3 [fix] DNSmasq template generation 2021-11-26 19:39:37 +01:00
ljf
321c8dd5ba [fix] Bash array not supported in ynh_render_template 2021-11-26 18:42:22 +01:00
Alexandre Aubin
c49628346f mdns: Don't add yunohost.local in config if it's already among the yunohost domains 2021-11-26 18:20:40 +01:00
ljf
c4f8c9e022 [enh] Move dnsmasq conf in template dir 2021-11-26 02:18:33 +01:00
ljf
7e7dbe41d7 [enh] Hotspot and hairpining use cases 2021-11-26 02:18:00 +01:00
Alexandre Aubin
6488b4f649 Fix /etc/yunohost permissions on some setups 2021-11-25 20:01:54 +01:00
Alexandre Aubin
04ebf2740d
Merge pull request #1382 from YunoHost/fix-app-address-regex
Allow tilde in username/organization for repo URLs
2021-11-23 23:12:00 +01:00
Alexandre Aubin
6a8aa333ea
appurl: Add test for app url containing tilde 2021-11-23 23:11:37 +01:00
tituspijean
4f6d3c426a Allow tilde in username/organization for repo URLs 2021-11-23 21:22:22 +00:00
Alexandre Aubin
dc4341f98c migrate_to_bullseye: /usr/share/yunohost/yunohost-config/ssl/yunoCA -> /usr/share/yunohost/ssl 2021-11-22 08:21:54 +01:00
Alexandre Aubin
514fa9f1a2 Merge branch 'dev' into migrate_to_bullseye 2021-11-22 08:17:00 +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
Kay0u
16dba79a39
fix backup_delete when compress_tar_archives is True 2021-11-17 00:44:58 +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
35850f75cd Update changelog for 4.3.3 2021-11-14 22:59:21 +01:00
Alexandre Aubin
5d2522ad4d
Merge pull request #1379 from YunoHost/ci-remove-stale-translated-strings-dev
[CI] Reformat / remove stale translated strings
2021-11-14 22:10:52 +01:00
yunohost-bot
4154ece1bb [CI] Reformat / remove stale translated strings 2021-11-14 21:07:58 +00: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
abcaaa8054 Merge branch 'dev' into migrate_to_bullseye 2021-11-14 21:47:41 +01:00
Alexandre Aubin
521b43981c
Merge pull request #1373 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-11-14 21:42:48 +01:00
Tommi
d9b53b08ea Translated using Weblate (Italian)
Currently translated at 99.8% (704 of 705 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2021-11-14 20:42:18 +00:00
Tymofii-Lytvynenko
cfb05e0ca5 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (705 of 705 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2021-11-14 20:42:18 +00:00
Flavio Cristoforetti
347e972693 Translated using Weblate (Italian)
Currently translated at 88.6% (625 of 705 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2021-11-14 20:42:18 +00:00
liimee
d066aab364 Translated using Weblate (Indonesian)
Currently translated at 6.2% (44 of 705 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/id/
2021-11-14 20:42:18 +00:00
dagangtie
983c1a81ba Translated using Weblate (Chinese (Simplified))
Currently translated at 89.2% (629 of 705 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/zh_Hans/
2021-11-14 20:42:18 +00:00
punkrockgirl
1d33a74b4c Translated using Weblate (Basque)
Currently translated at 100.0% (705 of 705 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2021-11-14 20:42:18 +00:00
Alexandre Aubin
2d9bfdce2a
Merge pull request #1378 from YunoHost/ci-format-dev
[CI] Format code with Black
2021-11-14 21:42:14 +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
yunohost-bot
697dd8b9c2 [CI] Format code with Black 2021-11-14 16:52:57 +00:00
Alexandre Aubin
02e397ccc8 ci: Fix filter on ci branches ... my regex doesn't seem to be working :| 2021-11-14 17:43:34 +01:00
Alexandre Aubin
38f5352fc0 Fix -conf_ynh_settings backup/restore when /etc/yunohost/domains doesn't exist 2021-11-14 16:06:04 +01:00
Alexandre Aubin
8d5e69566b Fix error during mysql regenconf, no templates folder anymoar 2021-11-13 20:14:25 +01:00
Alexandre Aubin
044038d1c7 ci: Attempt to ignore branches created by the CI .. 2021-11-13 20:12:52 +01:00
Alexandre Aubin
51d5dca033 Make ynh_add_fpm_config more robust to some edge cases 2021-11-13 18:36:38 +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
38f24c4518
Merge pull request #1375 from rthouvenin/fix-1873-read-bl-answer
[fix] Read DNS Blacklist answer and compare it against list of non-BL codes
2021-11-10 19:02:35 +01:00
Alexandre Aubin
58793ba3e4
Merge pull request #1372 from ericgaspar/n
helpers: Update n to 8.0.0
2021-11-10 18:47:05 +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
7c569d16b7 certificate: fix stupid certificate/diagnosis issue with subdomains of ynh domains 2021-11-08 18:13:14 +01:00
Alexandre Aubin
78f32fa069
Merge pull request #1376 from Salamandar/fix_log_debug
Fix dump_script_log_extract_for_debugging
2021-11-08 13:50:09 +01:00
Alexandre Aubin
03065dda4e log: Simplify code to fetch lines before ynh_exit_properly in dump_script_log_extract_for_debugging 2021-11-08 13:48:23 +01:00
Alexandre Aubin
a9b0619f42 log: Factorize boring/irrelevant log line filter definition 2021-11-08 12:57:28 +01:00
0a5bf3d021 Fix dump_script_log_extract_for_debugging : We want to catch the last exit in the logs, not the first one. 2021-11-08 10:01:38 +01:00
Romain Thouvenin
b166abab1d Read DNS Blacklist answer and compare it against list of non-BL codes 2021-11-07 21:13:34 +00:00
Alexandre Aubin
fff1a8a4d6 [enh] Smarter API self-upgrade mechanics 2021-11-06 18:58:31 +01:00
Alexandre Aubin
5a08206837 Update changelog for 4.3.2.2 2021-11-06 17:40:31 +01:00
Alexandre Aubin
74e2a51e4d nginx: Try to fix again the webadmin cache hell 2021-11-06 17:39:46 +01:00
Alexandre Aubin
e6effd49d8 Update changelog for 4.3.2.1 2021-11-06 16:59:10 +01:00
Alexandre Aubin
1cc3e44038 nginx: Refine experimental CSP header (in the end still gotta enable unsafe-inline and unsafe-eval for a bunch of things, but better than no policy at all...) 2021-11-06 16:45:25 +01:00
Alexandre Aubin
6558b23dd6 Fix conflict with redis-server 2021-11-06 15:54:34 +01:00
Alexandre Aubin
69b8603f14 mdns: Aaaaand we don't want to crash if mdns.aliases doesnt exists obviously 2021-11-05 16:41:33 +01:00
Alexandre Aubin
3da2df6e29 mdns: Add possibility to manually add .local aliases via /etc/yunohost/mdns.aliases (meant for internetcube) 2021-11-05 16:34:46 +01:00
ericgaspar
09d5f6ea00
Update nodejs 2021-11-05 12:07:16 +01:00
Alexandre Aubin
875677a863 Update changelog for 4.3.2 2021-11-05 02:33:48 +01:00
Alexandre Aubin
f223e65374
Merge pull request #1371 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-11-05 02:30:50 +01:00
Quentí
6ec12e92a6 Translated using Weblate (Occitan)
Currently translated at 50.0% (353 of 705 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/oc/
2021-11-04 20:34:43 +00:00
punkrockgirl
2d89e15671 Translated using Weblate (Basque)
Currently translated at 100.0% (705 of 705 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2021-11-04 20:34:42 +00:00
punkrockgirl
dc55a2d99e Translated using Weblate (Basque)
Currently translated at 100.0% (705 of 705 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2021-11-04 17:18:08 +00: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
0489b71729 Update changelog for 4.3.1.8 2021-11-03 18:42:02 +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
20037cf387
Merge pull request #1370 from YunoHost/curl-auto-visitors-if-needed
ynh_local_curl: temporarily auto-add visitors if needed
2021-11-03 18:30:32 +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
abaa60d774 ynh_install_n / ux: remove useless info message / redundant because scripts already include a script_progression ... 2021-11-02 03:24:39 +01:00
Alexandre Aubin
99e46b3a61 ynh_local_curl: temporarily auto-add visitors if needed 2021-11-02 02:50:32 +01:00
Alexandre Aubin
3eb69224aa ci: Add test for apt helpers 2021-11-02 02:03:53 +01:00
Alexandre Aubin
ba489bfc27 helpers: We don't care about the apt_dependencies setting ... it's not used and the info is already stored in the $app-ynh-deps virtual package 2021-11-02 02:02:29 +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
844346320b Typo :| 2021-11-02 01:38:33 +01:00
Alexandre Aubin
85eb43a730 apps: Add YNH_ARCH to app script env for easier debugging and arch check in script 2021-11-02 01:38:11 +01:00
Alexandre Aubin
edc5295d51
Add some debug to _collect_app_files exception ... 2021-11-02 01:29:07 +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
2bf435bcce
Merge pull request #1366 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-11-01 22:07:18 +01:00
punkrockgirl
3a5765a5e4 Translated using Weblate (Basque)
Currently translated at 100.0% (706 of 706 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2021-11-01 21:06:48 +00:00
punkrockgirl
5326f6d7a7 Translated using Weblate (Basque)
Currently translated at 100.0% (706 of 706 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2021-11-01 21:06:48 +00:00
Page Asgardius
5a213dae20 Translated using Weblate (Spanish)
Currently translated at 78.0% (551 of 706 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/es/
2021-11-01 21:06:48 +00:00
punkrockgirl
ee11e42b7b Translated using Weblate (Basque)
Currently translated at 100.0% (706 of 706 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2021-11-01 21:06:48 +00:00
punkrockgirl
6e3e3a847b Translated using Weblate (Basque)
Currently translated at 96.8% (684 of 706 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2021-11-01 21:06:48 +00:00
ppr
1285bd50ab Translated using Weblate (French)
Currently translated at 100.0% (706 of 706 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-11-01 21:06:48 +00:00
punkrockgirl
69ca64d333 Translated using Weblate (Basque)
Currently translated at 66.1% (467 of 706 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2021-11-01 21:06:48 +00:00
Alexandre Aubin
64a48eec46
Merge pull request #1368 from YunoHost/ci-format-dev
[CI] Format code with Black
2021-11-01 22:06:45 +01:00
yunohost-bot
a97b282d97 [CI] Format code with Black 2021-11-01 20:34:04 +00:00
Alexandre Aubin
019d207c2f helpers: Don't say the 'app was restored' when restore failed after failed upgrade 2021-11-01 21:09:29 +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
36117a6297
Merge pull request #1367 from YunoHost/dyndns_yagni
Drop some YAGNI in dyndns.py + improve resilience w.r.t. ns0 / ns1 being down
2021-11-01 17:07:24 +01:00
Alexandre Aubin
afbcc27443 Unused i18n string 2021-11-01 17:06:56 +01:00
ljf
4162557aac [fix] Mypy CI 2021-10-26 12:37:08 +02:00
Alexandre Aubin
e8e2cee030 dyndns: During dyndns update, first make sure we have an ipv4 or ipv6 to avoid the remaining code miserably crashing 2021-10-24 22:30:10 +02:00
Alexandre Aubin
f7cea60a30 Moar dyndns yagni: we don't need to be able to specify ipv4/ipv6/keyfile during dyndns update 2021-10-24 22:27:11 +02:00
Alexandre Aubin
c6dfe08973 Drop some dyndns yagni: we don't need to be able to specify a custom dyndns host... 2021-10-24 22:16:07 +02:00
Alexandre Aubin
a8c6b5e637 [enh] helpers: add some tests for system user create that were lying in my uncommited files ? 2021-10-24 18:17:02 +02:00
Alexandre Aubin
fcd2ef9d20 [enh] helpers: allow to get/set/delete app settings without explicitly passing app id everytime... 2021-10-24 18:16:21 +02:00
Alexandre Aubin
974ea71fc8 Simplify the whole ynh_install/remove_php story as no app is using them directly 2021-10-24 16:59:23 +02:00
Alexandre Aubin
4e917b5e96 [enh] logging: we don't care about 'update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults' 2021-10-24 16:09:34 +02:00
Alexandre Aubin
4ebcaf8d7e [fix] helpers: composer not explaining why the hell it can't install shit 2021-10-24 15:59:48 +02:00
Alexandre Aubin
144126f56a Merge branch 'migrate_to_bullseye' into bullseye 2021-10-20 21:08:13 +02:00
Alexandre Aubin
4dc53d5a8e migrate_to_bullseye: get rid of custom my.cnf 2021-10-20 21:07:53 +02:00
Alexandre Aubin
93cc48ca68 Drop customization of my.cnf, keep default conf 2021-10-20 20:56:33 +02:00
Alexandre Aubin
d82f14a4f9 Typo T_T 2021-10-20 20:01:45 +02:00
Alexandre Aubin
86a9cb37ce regenconf: gotta explicitly return *0* ... 2021-10-20 19:47:34 +02:00
Alexandre Aubin
146fba7d48 regenconf: yunohost hook was failing because grep may return exit code != 0 2021-10-20 19:43:06 +02:00
Alexandre Aubin
2687121f6d diagnosis: typo / don't run dnsrecords tests for special tlds 2021-10-20 19:25:23 +02:00
Alexandre Aubin
44c972f2dd Merge branch 'migrate_to_bullseye' into bullseye 2021-10-19 19:50:15 +02:00
Alexandre Aubin
b2ebcda6fb Merge branch 'dev' into migrate_to_bullseye 2021-10-19 19:48:54 +02:00
Alexandre Aubin
82c6760303
Merge pull request #1365 from YunoHost/ci-format-dev
[CI] Format code with Black
2021-10-19 19:06:37 +02:00
yunohost-bot
57081f4433 [CI] Format code with Black 2021-10-19 16:59:31 +00:00
Alexandre Aubin
a61d023198
dyndns update: Fix for ipv6-only hosts 2021-10-19 18:40:57 +02:00
Alexandre Aubin
ebed745140 Update changelog for 4.3.1.7 2021-10-19 15:32:04 +02:00
Alexandre Aubin
5f31b7b702
Merge pull request #1363 from YunoHost/ci-format-dev
[CI] Format code with Black
2021-10-19 15:08:38 +02:00
Alexandre Aubin
966710fc2f
Merge pull request #1364 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-10-19 15:08:28 +02:00
yunohost-bot
3ca4cc4f7e [CI] Format code with Black 2021-10-19 12:38:33 +00:00
ppr
d846adb093 Translated using Weblate (French)
Currently translated at 100.0% (706 of 706 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-10-19 12:26:17 +00:00
punkrockgirl
3d19c9f8e0 Translated using Weblate (Basque)
Currently translated at 34.2% (242 of 706 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2021-10-19 12:26:17 +00:00
Alexandre Aubin
41876f950a ci/tests: sigh, YunohostError undefined 2021-10-19 14:25:54 +02:00
Alexandre Aubin
d09e3e79b3 ci: test now returns a YunohostError instead of YunohostValidationError 2021-10-19 12:46:38 +02:00
Alexandre Aubin
9c22329e2b Moar fixes... 2021-10-19 12:44:50 +02:00
ljf (zamentur)
341059d07d
[fix] Default config toml path 2021-10-18 20:51:05 +02:00
Alexandre Aubin
c57e868ce2 Update changelog for 4.3.1.6 2021-10-18 18:58:30 +02:00
Alexandre Aubin
474b915912
Merge pull request #1362 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-10-18 18:41:59 +02:00
punkrockgirl
18affd4fa0 Translated using Weblate (Basque)
Currently translated at 0.9% (7 of 706 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eu/
2021-10-18 15:26:28 +00:00
Tymofii-Lytvynenko
922fc132af Translated using Weblate (Ukrainian)
Currently translated at 100.0% (706 of 706 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2021-10-18 13:05:41 +00:00
Alexandre Aubin
68005397fa
Merge pull request #1359 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-10-18 13:52:34 +02:00
Semen Turchikhin
d260ec51c5 Translated using Weblate (Russian)
Currently translated at 10.6% (75 of 706 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ru/
2021-10-18 10:39:43 +00:00
Colin Wawrik
b438775d96 Translated using Weblate (German)
Currently translated at 89.5% (632 of 706 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-10-17 22:42:40 +00:00
Daniel
c927c3c654 Translated using Weblate (German)
Currently translated at 89.5% (632 of 706 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-10-17 22:42:40 +00:00
José M
dcb885c901 Translated using Weblate (Galician)
Currently translated at 100.0% (706 of 706 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-10-17 22:42:40 +00:00
Weblate
5a097db694 Added translation using Weblate (Slovenian) 2021-10-17 22:42:40 +00:00
Semen Turchikhin
caee4e2979 Translated using Weblate (Russian)
Currently translated at 2.6% (19 of 706 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ru/
2021-10-17 22:42:40 +00:00
ljf (zamentur)
ff69067d9c
[fix] Config param should be global 2021-10-18 00:42:37 +02:00
ljf (zamentur)
eae826b2a6
[fix] App config panel save mode missing 2021-10-18 00:14:38 +02:00
Alexandre Aubin
f43c7e3222
Merge pull request #1361 from YunoHost/ci-format-dev
[CI] Format code with Black
2021-10-18 00:09:11 +02:00
yunohost-bot
33d973bab4 [CI] Format code with Black 2021-10-17 22:03:50 +00:00
ljf (zamentur)
07c1ddceb7
[fix] Unknown domain 2021-10-17 23:48:44 +02:00
Alexandre Aubin
3f50247b27 Update changelog for 4.3.1.5 2021-10-17 21:00:52 +02:00
Alexandre Aubin
3a07a78068
In fact we probably always want to disable avahi-daemon on all systems 2021-10-17 20:37:27 +02:00
Alexandre Aubin
af3d6dd7df
Force-disable old avahi-daemon 2021-10-17 20:28:46 +02:00
Alexandre Aubin
759b828c8a configpanels: Fill prefilled_answers with answers from previous sections/panels, needed by the visible mecanism 2021-10-15 16:40:25 +02:00
Alexandre Aubin
3dd7aa9b59 ci: Remove format-check, only keep format-run, renamed to black 2021-10-14 22:17:57 +02:00
Alexandre Aubin
5744e8eb16 Moar fiks test 2021-10-14 22:14:58 +02:00
ljf
6c1a6dfd21 Merge branch 'dev' of github.com:YunoHost/yunohost into dev 2021-10-14 17:24:00 +02:00
ljf
2f0bf90cda [fix] App Config Panel path 2021-10-14 17:23:51 +02:00
Alexandre Aubin
026f12dbb7
Merge pull request #1360 from YunoHost/ci-format-dev
[CI] Format code
2021-10-14 14:24:23 +02:00
yunohost-bot
cc20b36550 [CI] Format code 2021-10-14 11:18:02 +00:00
ljf
4532c75f29 [fix] args for config panel i18n unknown key 2021-10-14 12:53:15 +02:00
ljf
c506477551 [fix] i18n keys 2021-10-14 12:03:26 +02:00
ljf
6fb1c636fe [fix] DomainConfigPanel save path 2021-10-14 10:58:56 +02:00
ljf (zamentur)
59afe6988a [fix] Bad const in domain config panel 2021-10-14 00:35:19 +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
ljf (zamentur)
a9d736a0ae
[fix] save_path_tpl in DomainConfigPanel 2021-10-13 19:54:40 +02:00
ljf
ca62c01d69 [fix] Bad conflict resolution 2021-10-13 19:33:41 +02:00
ljf
9f7fb61b50 [enh] config panel python method hook 2021-10-13 19:30:59 +02:00
Alexandre Aubin
8da35ca4c8 Merge branch 'dev' into manifestv2 2021-10-13 18:14:54 +02:00
Alexandre Aubin
8dbc93c674 Update changelog for 4.3.1.4 2021-10-13 15:45:07 +02:00
Alexandre Aubin
cb835a2d6b dyndns: Delete dyndns cron in regenconf if no dyndns domain found 2021-10-13 15:38:57 +02:00
Alexandre Aubin
55bacd7405 dyndns cron: validate that we're connected to the internet before triggering yunohost dyndns update 2021-10-13 15:37:39 +02:00
Alexandre Aubin
0b4aa81f8c Merge branch 'migrate_to_bullseye' into bullseye 2021-10-13 15:12:56 +02:00
Alexandre Aubin
480875f676 Merge branch 'dev' into migrate_to_bullseye 2021-10-13 14:58:29 +02:00
Alexandre Aubin
c7038b0e59
Merge pull request #1358 from YunoHost/fix-eval-in-logging-helpers
Fix eval in logging helpers
2021-10-13 14:57:06 +02:00
Alexandre Aubin
e3d862dc15
Merge branch 'dev' into dev_on_muc 2021-10-13 14:54:55 +02:00
Alexandre Aubin
fe959bd7fa helpers: Flag ynh_print_ON/OFF as internal to not advertise them in the doc 2021-10-12 16:53:01 +02:00
Alexandre Aubin
40cc41d68d
Merge branch 'dev' into fix-eval-in-logging-helpers 2021-10-12 16:49:42 +02:00
Alexandre Aubin
c060670924
Merge pull request #1356 from YunoHost/lint-helpers
Lint/autoformat helpers, hooks and debian scripts
2021-10-12 16:46:17 +02:00
Alexandre Aubin
10a0496209
Merge branch 'dev' into lint-helpers 2021-10-12 16:45:57 +02:00
Alexandre Aubin
b60ca0e0ba
Merge pull request #1357 from YunoHost/safer_ynh_secure_remove
Safer, clearer ynh_secure_remove
2021-10-12 16:28:31 +02:00
Alexandre Aubin
a3c0ca4da6 helpers: Don't use eval in ynh_exec_* helpers to prevent issues with special chars 2021-10-12 15:49:46 +02:00
Alexandre Aubin
910364f9c4 helpers: Drop obsolete/unused/weird logging helpers 2021-10-12 15:49:08 +02:00
Alexandre Aubin
dab3dc6f37 dovecot: add conf snippet to get rid of stupid stats-writer errors in mail.log 2021-10-11 19:42:39 +02:00
Alexandre Aubin
e521fef23d Fix typo in tests @_@ 2021-10-09 02:20:18 +02:00
Alexandre Aubin
df02f898ee [enh] Don't generate dnsmasq conf for .local domains 2021-10-09 00:32:49 +02:00
Alexandre Aubin
0b2ef5d16f Update changelog for 4.3.1.3 2021-10-07 18:31:59 +02:00
Alexandre Aubin
38cff4a98e Fix app url regex, branch names may contain dots 2021-10-07 11:25:28 +02:00
Alexandre Aubin
c8e14133d5 Update changelog for 4.3.1.2 2021-10-07 10:46:18 +02:00
Alexandre Aubin
f769c40f96
Double quotes to prevent bash apocalypse 2021-10-07 10:37:05 +02:00
Alexandre Aubin
66ded07672
Merge pull request #1352 from ericgaspar/set-right-for-log-path
helpers/logrotate: Enforce decent permissions on log file if app user exists
2021-10-07 10:34:56 +02:00
Alexandre Aubin
bde5590783
Update data/helpers.d/logrotate 2021-10-07 10:33:33 +02:00
Alexandre Aubin
7d18eceac7
Merge pull request #1355 from YunoHost/ci-format-dev
[CI] Format code
2021-10-07 10:31:28 +02:00
Alexandre Aubin
3469e70afc
Merge pull request #1018 from YunoHost/simplify-apt-dependencies-helpers
Simplify apt/php dependencies helpers
2021-10-07 10:30:23 +02:00
Alexandre Aubin
560162dd96 Sury pinning is managed in the core, c.f. 346728e5 2021-10-07 10:29:03 +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
Alexandre Aubin
e563a366ef
helpers apt: Use smarter grep with lookbehind to extract php version from dependency list
Co-authored-by: Florent <florent.fayolle69@gmail.com>
2021-10-07 01:46:09 +02:00
Alexandre Aubin
1d2e4e78f2 Safer, clearer ynh_secure_remove 2021-10-06 18:57:56 +02:00
Alexandre Aubin
fd1cc5e6ce Fix stuff reported by shellcheck 2021-10-06 18:56:17 +02:00
Alexandre Aubin
c9cdfc6b0f Typo :| 2021-10-06 16:56:47 +02:00
Alexandre Aubin
28b1bbcc86 Also lint/reformat debian scripts 2021-10-06 16:36:08 +02:00
Alexandre Aubin
5a7a719661 Also lint/reformat core bash hooks 2021-10-06 16:35:45 +02:00
Alexandre Aubin
6048d1b0b3 Typo ogod 2021-10-06 16:24:33 +02:00
Alexandre Aubin
93cc413f4a helpers: lint/reformat with shfmt -bn -i 4 -w $FILE 2021-10-06 16:01:53 +02:00
Alexandre Aubin
a98552ef0e helpers: Fix weird 0 syntax which shfmt ain't happy with (dangling 0) 2021-10-06 15:56:49 +02:00
Alexandre Aubin
13d012bb4f helpers apt: save phpversion in settings even when using php default version 2021-10-06 15:34:26 +02:00
Alexandre Aubin
9ee631c1c4 helpers: Typo in ynh_remove_app_dependencies 2021-10-06 15:16:18 +02:00
Alexandre Aubin
5054397a5a helpers: Add deprecation warning to ynh_add_app_dependencies 2021-10-06 15:11:09 +02:00
Alexandre Aubin
e07e1a95f4 Apply suggestions from code review
Co-authored-by: Kayou <pierre@kayou.io>
2021-10-06 15:00:37 +02:00
Alexandre Aubin
76b60890c6 Propagate changes on other apt/php helpers... 2021-10-06 15:00:18 +02:00
Alexandre Aubin
040be532ad During ynh_install_app_dependencies, if the dependency list contains specific php version stuff, add sury and other tweaks 2021-10-06 14:59:20 +02:00
Alexandre Aubin
76aaaab74e Factorize sury repo configuration into ynh_add_sury 2021-10-06 14:59:06 +02:00
Alexandre Aubin
644cdd41d8 Allow to re-run ynh_install_app_dependencies multiple times 2021-10-06 14:57:59 +02:00
yunohost-bot
344ed7252c [CI] Format code 2021-10-06 12:15:29 +00:00
Alexandre Aubin
2a1c577a42
Merge pull request #1354 from YunoHost/ci-format-dev
[CI] Format code
2021-10-06 13:46:36 +02:00
Alexandre Aubin
aa4ecfeaf7
Merge branch 'dev' into ci-format-dev 2021-10-06 13:46:30 +02:00
Alexandre Aubin
23bd32b3cd Fix linters 2021-10-06 13:45:15 +02:00
Alexandre Aubin
99d2637cfe FileQuestion: self.value may not be an str 2021-10-06 13:07:50 +02:00
yunohost-bot
eb8a59751e [CI] Format code 2021-10-06 00:57:04 +00:00
ljf
7425684552 [enh] Add visible attribute support in cli 2021-10-06 02:37:27 +02:00
Éric Gaspar
93a72a7b5f
Update data/helpers.d/logrotate
Co-authored-by: Kayou <pierre@kayou.io>
2021-10-05 13:52:45 +02:00
Alexandre Aubin
bbba01a72c
Merge pull request #1353 from YunoHost/ci-format-dev
[CI] Format code
2021-10-05 13:46:46 +02:00
Alexandre Aubin
4cd5e9b632 app_info: return a new is_webapp info meant to be used by API 2021-10-05 13:46:06 +02:00
yunohost-bot
1baebeba6d [CI] Format code 2021-10-05 11:13:38 +00:00
ericgaspar
423eef7a62
Update logrotate 2021-10-05 13:06:21 +02:00
ericgaspar
ef2a8c8dbd
Update logrotate 2021-10-05 13:02:51 +02:00
Alexandre Aubin
de4b3825ab Ambiguous var name 2021-10-05 12:50:25 +02:00
Alexandre Aubin
b0e8a58b24 lint: Invalid escape sequences 2021-10-05 12:49:33 +02:00
Alexandre Aubin
61ec02c97c lint: Kill bare excepts 2021-10-05 12:47:32 +02:00
Alexandre Aubin
941cc29438 bind_key -> bind_key_ to prevent yunohost from redacting key names which leads to broken log metadata.yml somehow 2021-10-05 12:35:12 +02:00
Alexandre Aubin
753c4e34ed Typo/wording 2021-10-05 12:32:23 +02:00
Alexandre Aubin
54d901ad78 config: handle case where file quetion didnt get modified from webadmin, in which case self.value contains a path 2021-10-05 12:26:21 +02:00
Alexandre Aubin
df19488c87
Merge pull request #1351 from YunoHost/ci-format-dev
[CI] Format code
2021-10-04 23:16:57 +02:00
Alexandre Aubin
496625919d
Merge pull request #1350 from YunoHost/fix-app-upgrade
fix app upgrade
2021-10-04 23:16:39 +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
yunohost-bot
27721749da [CI] Format code 2021-10-04 12:50:57 +00:00
Kay0u
32998b1185
my_webapp is to clean too 2021-10-04 14:33:30 +02:00
Kay0u
d0c956e132
Merge branch 'dev' into fix-app-upgrade 2021-10-04 13:29:59 +02:00
Kay0u
96e7f1444d
fix string in test_apps 2021-10-04 13:29:46 +02:00
Kay0u
d5aaaa6fc6
Merge branch 'dev' into fix-app-upgrade 2021-10-04 12:23:04 +02:00
Kay0u
9863263a28
test to install/upgrade/remove an app from the manifest 2021-10-04 12:21:10 +02:00
Kay0u
4739859598
fix app upgrade 2021-10-04 11:52:12 +02:00
Alexandre Aubin
2157576bf6 i18n typos 2021-10-04 03:47:12 +02:00
Alexandre Aubin
75b36f3b4a tests: Try to fix mypy again /o\ 2021-10-04 03:40:41 +02:00
Alexandre Aubin
1262642c68
Merge pull request #1349 from YunoHost/ci-format-dev
[CI] Format code
2021-10-04 03:40:12 +02:00
yunohost-bot
a68f98d800 [CI] Format code 2021-10-03 23:56:11 +00:00
Alexandre Aubin
a552700ca3 Update changelog for 4.3.1.1 2021-10-04 01:34:16 +02:00
Alexandre Aubin
db13a29b68
Merge pull request #1345 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-10-04 01:28:57 +02:00
Alexandre Aubin
592a998230
Update locales/fr.json 2021-10-04 01:28:49 +02:00
Tymofii-Lytvynenko
30ed2cd0b0 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (706 of 706 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2021-10-03 23:24:31 +00:00
mifegui
fb4d870e1f Translated using Weblate (Portuguese)
Currently translated at 29.4% (208 of 706 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pt/
2021-10-03 23:24:31 +00:00
Éric Gaspar
98c411ec9e Translated using Weblate (French)
Currently translated at 100.0% (706 of 706 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-10-03 23:24:31 +00:00
ppr
9019d75cb8 Translated using Weblate (French)
Currently translated at 99.7% (704 of 706 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-10-03 23:24:31 +00:00
ppr
fe82fafa6d Translated using Weblate (French)
Currently translated at 99.1% (700 of 706 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-10-03 23:24:31 +00:00
Tymofii-Lytvynenko
707866e222 Translated using Weblate (Ukrainian)
Currently translated at 96.1% (680 of 707 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2021-10-03 23:24:31 +00:00
José M
6ad07d2c83 Translated using Weblate (Galician)
Currently translated at 100.0% (707 of 707 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-10-03 23:24:31 +00:00
Alexandre Aubin
42da171819 Add proper test for parse_app_instance_name 2021-10-04 01:24:16 +02:00
Alexandre Aubin
9c4ea1ccc6 Try to make mypy happy 2021-10-04 01:16:20 +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
4640d4577d Moar mypy 2021-10-02 20:24:13 +02:00
Alexandre Aubin
b88074b007 Make linter happy 2021-10-02 20:23:23 +02:00
Alexandre Aubin
3591a01fdb Merge branch 'dev' into bullseye 2021-10-02 20:08:36 +02:00
Alexandre Aubin
11660bd5fa
Merge pull request #1348 from YunoHost/ci-format-dev
[CI] Format code
2021-10-02 04:35:18 +02:00
yunohost-bot
a40ecdc986 [CI] Format code 2021-10-02 02:29:22 +00:00
Alexandre Aubin
71293f32a4
Merge pull request #1346 from YunoHost/refactor-app-py-zbleh
Refactor app.py / prevent change_url from being used to move a fulldomain app to a subpath
2021-10-02 03:51:24 +02:00
Alexandre Aubin
4fda262bc0 fix tests: Missing mkdir on force 2021-10-02 01:59:16 +02:00
Alexandre Aubin
6c03cf2b11 Yoloattempt to try to cleanup some ugly os.system 2021-10-01 20:22:59 +02:00
Alexandre Aubin
3daac24443 Typos 2021-10-01 19:25:36 +02:00
Alexandre Aubin
0f0f26f5c4 For some reason these tests now wanted to interactively ask for is_public arg ... don't know why it was working before ... 2021-10-01 19:25:32 +02:00
Alexandre Aubin
310b664fab Clarify return type for mypy 2021-10-01 19:20:21 +02:00
Alexandre Aubin
3883343e1a
swag: Add version badge 2021-10-01 17:51:05 +02:00
Alexandre Aubin
34d9573121 Misc fixes for app repo url check / parsing 2021-10-01 16:46:05 +02:00
Alexandre Aubin
171b3b25d9 Improve check that arg is a yunohost repo url 2021-10-01 16:16:31 +02:00
Alexandre Aubin
77c5657944
Merge pull request #1347 from ericgaspar/Upgrade-n
Update nodejs
2021-10-01 12:42:39 +02:00
ericgaspar
11be8cc4c0
Update nodejs 2021-10-01 09:43:39 +02:00
Alexandre Aubin
2bda85c800 Stale i18n string 2021-10-01 03:46:13 +02:00
Alexandre Aubin
680e13c044 Make mypy happier 2021-10-01 03:45:40 +02:00
Alexandre Aubin
a26145ece0 Simplify(?) YNH_APP_BASEDIR creation, to happen in _make_env_for_app_script 2021-10-01 03:42:59 +02:00
Alexandre Aubin
313897d184 Simplify _check_manifest_requirements 2021-10-01 03:33:12 +02:00
Alexandre Aubin
5fc493058d Aaaaaand I forgot to commit app_catalog.py ... 2021-10-01 03:10:26 +02:00
Alexandre Aubin
80f4b892e6 Prevent full-domain app to be moved to a subpath with change-url ? 2021-10-01 03:05:14 +02:00
Alexandre Aubin
1e046dcd37 Misc typoz 2021-10-01 02:50:38 +02:00
Alexandre Aubin
206b430a9f Offload appcatalog stuff to a separate file to limit the size of app.py 2021-10-01 02:50:30 +02:00
Alexandre Aubin
f84d8618bc Offload legacy app patching stuff to utils/legacy.py to limit the size of app.py 2021-10-01 02:22:23 +02:00
Alexandre Aubin
a1ff2ced37 Clarify code that extract app from folder/gitrepo + misc other small refactors 2021-10-01 02:21:31 +02:00
Alexandre Aubin
8cdd5e43d7 Simplify / fix inconsistencies in app files kept after install/upgrade 2021-10-01 02:18:35 +02:00
Alexandre Aubin
f78167a99c
swag: Add test coverage badge 2021-09-30 01:08:22 +02:00
Alexandre Aubin
80661ddca9 debian: Bump moulinette/ssowat version requirements 2021-09-29 22:43:45 +02:00
Alexandre Aubin
5c309ecc14 Update changelog for 4.3.1 2021-09-29 22:30:44 +02:00
Alexandre Aubin
55598151c0 Unhappy linter is unhappy 2021-09-29 22:29:28 +02:00
Alexandre Aubin
df0cdd483d Black 2021-09-29 22:20:36 +02:00
Alexandre Aubin
8eb9e274d4
Merge pull request #1343 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-09-29 22:18:57 +02:00
Éric Gaspar
2e96cb28bb Translated using Weblate (French)
Currently translated at 99.8% (707 of 708 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-09-29 20:11:41 +00:00
Alexandre Aubin
d75c1a61e8 Adapt ready_for_ACME check to the new dnsrecord result format... 2021-09-29 22:11:24 +02:00
Alexandre Aubin
b8cb374a49 Add a proper _get_parent_domain 2021-09-29 21:43:52 +02:00
Alexandre Aubin
c44560b6f7 Misc cleanups in dns diagnoser 2021-09-29 21:38:03 +02:00
Alexandre Aubin
85e6ddbeae firewall.py: fix encoding issue, remove prependline stuff 2021-09-29 20:53:12 +02:00
Alexandre Aubin
4101e0e041
Merge pull request #1335 from YunoHost/fix-mdns
Fix yunomdns
2021-09-29 20:37:19 +02:00
Alexandre Aubin
17aafe6f6a General improvement for special-use TLD / ynh dyndns domains 2021-09-29 20:36:45 +02:00
Alexandre Aubin
391de52ff2 yunomdns: disable ipv6 for now + remove debug stuff 2021-09-29 20:10:00 +02:00
Alexandre Aubin
a5e1d7e318 yunomdns: broadcast on all interfaces with local IP by default + add a 'ban_interfaces' setting in config 2021-09-29 20:02:32 +02:00
Alexandre Aubin
f49666d22e yunomdns: fallback to domain-i.local if domain.local already published 2021-09-29 19:14:21 +02:00
Alexandre Aubin
ab1100048b yunomdns: Minor cleanups 2021-09-29 19:00:05 +02:00
Alexandre Aubin
14d3265389 Try to include diagnosis hooks in coverage report 2021-09-29 18:40:31 +02:00
Alexandre Aubin
ad3602a24f YNH_APP_PURGE to be 1 or 0 to be consistent with other bash bools 2021-09-29 18:36:24 +02:00
Alexandre Aubin
dc8c16c96d Wording 2021-09-29 18:33:31 +02:00
Alexandre Aubin
76c1abf020
Merge pull request #1342 from YunoHost/ci-format-dev
[CI] Format code
2021-09-28 23:53:37 +02:00
yunohost-bot
7d4ab4a886 [CI] Format code 2021-09-28 21:52:29 +00:00
Alexandre Aubin
da1b9089bf Fix dns zone for dynette domains (otherwise breaks dyndns update) 2021-09-28 23:36:24 +02:00
tituspijean
63504febaa
[mdns] refine ipv6 selection with ipaddress lib
Co-authored-by: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= <felix@piedallu.me>
2021-09-26 19:40:46 +02:00
tituspijean
07c381cec4
Use ipaddress lib to find private addresses 2021-09-26 12:05:35 +02:00
tituspijean
a313a86b8b
[mdns] Allow for multiple yunohost.local 2021-09-26 11:44:39 +02:00
tituspijean
bcb48b4948
[mdns] Make the service logs appear in systemd journal 2021-09-26 11:41:59 +02:00
tituspijean
358885dc62
[mdns] Avoid miserably failing if another service exists on the network
also, service names do not clash anymore accross same device but different interfaces
2021-09-26 11:41:16 +02:00
d4395f2b4a
Use double-quotes 2021-09-26 11:39:11 +02:00
919ec75877
Revamp of yunomdns :
* Use ifaddr (also used by zeroconf) to find ip addresses
* Use python type hinting
* small cleanups
2021-09-26 11:38:57 +02:00
Alexandre Aubin
8a82fe0392 Force yunohost to forget about avahi-daemon files 2021-09-24 19:43:02 +02:00
Alexandre Aubin
be41ab92c4 ci: missing wildcard in coveragerc 2021-09-24 19:35:51 +02:00
Alexandre Aubin
65e59bbfb3
Merge pull request #1339 from YunoHost/ci-format-dev
[CI] Format code
2021-09-23 23:04:12 +02:00
yunohost-bot
ec5e5d6b73 [CI] Format code 2021-09-23 20:18:27 +00:00
Alexandre Aubin
c2fc2c4e51 Typo 2021-09-23 21:48:00 +02:00
Alexandre Aubin
7484f138b1
Merge pull request #1338 from YunoHost/rework-prompt-again
Rework prompt() again
2021-09-23 21:47:49 +02:00
Alexandre Aubin
a5580caf4e Lint 2021-09-23 21:46:35 +02:00
Alexandre Aubin
9f0caedb6b tests: .coveragerc should be at the root of the repo 2021-09-23 21:30:42 +02:00
Alexandre Aubin
d64f2cdf1a regenconf: Missing mkdir for dpkgorigins 2021-09-23 21:28:28 +02:00
Alexandre Aubin
0693aa45de Add tests for FileQuestion 2021-09-23 20:54:31 +02:00
Alexandre Aubin
8cc229e19b Zblerg propagate changes on tests 2021-09-23 20:05:52 +02:00
Alexandre Aubin
e001f26f87 Stale i18n string 2021-09-23 19:22:54 +02:00
Alexandre Aubin
74102b607d Simplify error management 2021-09-23 19:21:48 +02:00
Alexandre Aubin
6b8cb0c005 Hmpf refactor moar stuff but does this ever ends 2021-09-23 18:57:01 +02:00
ljf
79126809eb [enh] Bind function for hotspot 2021-09-23 18:39:36 +02:00
Alexandre Aubin
548042d503 Moar fixes .. + add test for boolean normalize/humanize 2021-09-23 13:07:46 +02:00
Alexandre Aubin
68d849f7ab Adapt tests for domain/path normalize 2021-09-23 10:45:37 +02:00
Alexandre Aubin
d4c3a6975e ask_questions_and_parse_answers may take directly a dict as input 2021-09-23 10:38:30 +02:00
Alexandre Aubin
26a4992961 Refactor _normalize_domain_path into DomainQuestion + PathQuestion normalizers 2021-09-23 05:33:20 +02:00
Alexandre Aubin
4cc2c9787d Propagate changes on tests 2021-09-23 05:20:19 +02:00
Alexandre Aubin
f14d780588 Get rid of unecessary 'user_answers' arg in constructor 2021-09-23 05:09:57 +02:00
Alexandre Aubin
d5748b519a config panels: attempt to improve the semantic of 'convert()' 2021-09-23 05:02:27 +02:00
Alexandre Aubin
9c3ff52d98 file questions: we don't need to know the filename, we don't need to validate extension server-side 2021-09-23 04:38:44 +02:00
Alexandre Aubin
430f53aa73 Semantic, simplify code... 2021-09-23 03:39:43 +02:00
Alexandre Aubin
d023333fa4 questions prompt: include normalize in the try/except to re-ask question if not properly formated 2021-09-23 02:58:13 +02:00
Alexandre Aubin
78ad3b5da3 Fix weird definition for boolean's humanize/normalize 2021-09-23 02:39:39 +02:00
Alexandre Aubin
8ea160b9fe Fix tests 2021-09-23 00:37:44 +02:00
Alexandre Aubin
92f9e15e2f Stale i18n strings 2021-09-23 00:13:18 +02:00
Alexandre Aubin
d1c371ec38 cli questions: Restore displaying available choices, though limit to the first 20 available options 2021-09-23 00:12:24 +02:00
Alexandre Aubin
2d158b5a6d Rework prompt() again 2021-09-21 20:21:05 +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
1247c5b5ee Merge branch 'dev' into migrate_to_bullseye 2021-09-21 16:00:46 +02:00
Alexandre Aubin
bfa26ff469 Add .coveragerc which is autoused by pytest-cov 2021-09-21 15:46:11 +02:00
Alexandre Aubin
16e53ec2ec For some reason .test domain results appears to be unreliable, so let's remove it.. 2021-09-21 12:34:25 +02:00
Alexandre Aubin
f7f6428bfb
Merge pull request #1337 from YunoHost/simplify-regenconf
Simplify regen conf scripts
2021-09-21 12:31:34 +02:00
Alexandre Aubin
65b6fbc3f2
Merge pull request #1336 from YunoHost/simplify-debian-install
Simplify debian/install
2021-09-21 12:30:52 +02:00
Alexandre Aubin
8f3f5ab251 Forgot to update mysql hook 2021-09-21 02:37:21 +02:00
Alexandre Aubin
bddd81f44b Simplify regen conf scripts 2021-09-21 00:05:19 +02:00
Alexandre Aubin
8c7080de5f Simplify debian/install 2021-09-20 23:25:54 +02:00
Alexandre Aubin
5555af1105
Merge pull request #1334 from ericgaspar/patch-3
Typo
2021-09-20 15:15:04 +02:00
Éric Gaspar
2edca5bd22
Typo
- Fix typo
2021-09-20 15:14:10 +02:00
Alexandre Aubin
07aea48921
Merge pull request #1332 from YunoHost/ci-format-dev
[CI] Format code
2021-09-20 13:46:05 +02:00
yunohost-bot
d77a1071bc [CI] Format code 2021-09-20 11:41:19 +00:00
Alexandre Aubin
9ef3d3299d
Merge pull request #1333 from YunoHost/fix-app-diagnosis
[Fix] App diagnosis grep
2021-09-20 13:27:56 +02:00
Kayou
636fc1cf6d
[Fix] App diagnosis grep 2021-09-20 11:49:49 +02:00
Alexandre Aubin
f4793a6f0a Update changelog for 4.3.0 2021-09-20 00:39:55 +02:00
Alexandre Aubin
92fefd6d97 Fix tests 2021-09-20 00:39:55 +02:00
Alexandre Aubin
75b91d7662 Zblerg fix global var handling 2021-09-19 23:36:43 +02:00
Alexandre Aubin
1c46636b7e tests: add mypy + misc fixes to make test pass 2021-09-19 23:32:26 +02:00
Alexandre Aubin
e07c01e936 Reformat / remove stale translated strings 2021-09-19 23:11:33 +02:00
Alexandre Aubin
4d3692a70b Black 2021-09-19 23:08:27 +02:00
Alexandre Aubin
d1ad7f83d1
Merge pull request #1318 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-09-19 23:04:48 +02:00
Alexandre Aubin
11f8bf706d
Apply suggestions from code review 2021-09-19 23:04:38 +02:00
Éric Gaspar
0683db987e Translated using Weblate (French)
Currently translated at 100.0% (678 of 678 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-09-19 21:00:49 +00:00
Éric Gaspar
d5934ce7d3 Translated using Weblate (German)
Currently translated at 92.7% (629 of 678 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-09-19 21:00:49 +00:00
Éric Gaspar
96864e5a33 Translated using Weblate (Catalan)
Currently translated at 90.2% (612 of 678 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ca/
2021-09-19 21:00:49 +00:00
ppr
0d844dbb05 Translated using Weblate (French)
Currently translated at 99.8% (677 of 678 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-09-19 21:00:49 +00:00
Éric Gaspar
eeebe5469b Translated using Weblate (Persian)
Currently translated at 93.8% (636 of 678 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fa/
2021-09-19 21:00:49 +00:00
Éric Gaspar
25a82b4b59 Translated using Weblate (Galician)
Currently translated at 100.0% (678 of 678 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-09-19 21:00:49 +00:00
Éric Gaspar
112b2912d7 Translated using Weblate (Occitan)
Currently translated at 52.2% (354 of 678 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/oc/
2021-09-19 21:00:49 +00:00
Éric Gaspar
f74aee9ada Translated using Weblate (Italian)
Currently translated at 92.9% (630 of 678 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2021-09-19 21:00:49 +00:00
Éric Gaspar
3a1ecb890f Translated using Weblate (French)
Currently translated at 100.0% (678 of 678 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-09-19 21:00:49 +00:00
Éric Gaspar
933e825987 Translated using Weblate (Portuguese)
Currently translated at 21.5% (146 of 678 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pt/
2021-09-19 21:00:49 +00:00
Éric Gaspar
f90a5c033b Translated using Weblate (Esperanto)
Currently translated at 73.3% (497 of 678 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eo/
2021-09-19 21:00:49 +00:00
José M
0cf195ca32 Translated using Weblate (Galician)
Currently translated at 100.0% (678 of 678 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-09-19 21:00:49 +00:00
Tymofii-Lytvynenko
729fd299bc Translated using Weblate (Ukrainian)
Currently translated at 100.0% (678 of 678 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2021-09-19 21:00:49 +00:00
Weblate
8036988d0a Added translation using Weblate (Macedonian) 2021-09-19 21:00:49 +00:00
Tymofii-Lytvynenko
3d59a1a638 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (678 of 678 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2021-09-19 21:00:49 +00:00
Éric Gaspar
69a3cf63c6 Translated using Weblate (French)
Currently translated at 100.0% (678 of 678 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-09-19 21:00:49 +00:00
ppr
c66499eb7d Translated using Weblate (French)
Currently translated at 100.0% (676 of 676 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-09-19 21:00:48 +00:00
Éric Gaspar
d7bcdad1e1 Translated using Weblate (Chinese (Simplified))
Currently translated at 90.2% (610 of 676 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/zh_Hans/
2021-09-19 21:00:48 +00:00
Éric Gaspar
8e28405e63 Translated using Weblate (Italian)
Currently translated at 91.1% (616 of 676 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2021-09-19 21:00:48 +00:00
Éric Gaspar
e723565384 Translated using Weblate (Spanish)
Currently translated at 80.7% (546 of 676 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/es/
2021-09-19 21:00:48 +00:00
Éric Gaspar
b9761ba30d Translated using Weblate (Esperanto)
Currently translated at 73.2% (495 of 676 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eo/
2021-09-19 21:00:48 +00:00
Éric Gaspar
2770ed6c23 Translated using Weblate (Catalan)
Currently translated at 87.5% (592 of 676 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ca/
2021-09-19 21:00:48 +00:00
Tymofii-Lytvynenko
c0299fa880 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (676 of 676 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2021-09-19 21:00:48 +00:00
Éric Gaspar
660c4169c9 Translated using Weblate (French)
Currently translated at 100.0% (676 of 676 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-09-19 21:00:48 +00:00
Éric Gaspar
341d04a0cd Translated using Weblate (French)
Currently translated at 99.8% (675 of 676 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-09-19 21:00:48 +00:00
Éric Gaspar
9429510489 Translated using Weblate (French)
Currently translated at 100.0% (661 of 661 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-09-19 21:00:48 +00:00
Alexandre Aubin
720ccf52a6
Merge pull request #1315 from YunoHost/enh-dns-autoconf
Configure automatically the DNS records using lexicon
2021-09-19 23:00:18 +02:00
Alexandre Aubin
be8c6f2c35 Fix tests 2021-09-19 22:59:15 +02:00
Alexandre Aubin
f9b3265f71 Merge branch 'dev' into enh-dns-autoconf 2021-09-19 20:48:09 +02:00
Alexandre Aubin
b6981c80b8 backup: Manually modified files may not exists... 2021-09-19 20:47:12 +02:00
Alexandre Aubin
1f6fb31121
Merge pull request #1328 from YunoHost/add-YNH_APP_BASEDIR-in-the-env-var
add YNH_APP_BASEDIR in the env var
2021-09-19 20:46:38 +02:00
Alexandre Aubin
e7844ef09e
Simplify YNH_APP_BASEDIR definition
Co-authored-by: Kayou <pierre@kayou.io>
2021-09-19 20:46:32 +02:00
Alexandre Aubin
18e2fb14c4 tests: uhoh forgot to remove some tmp stuff 2021-09-19 19:35:23 +02:00
Alexandre Aubin
cdabfc12cc dns: Repair diagnosis ugh 2021-09-19 19:34:45 +02:00
Alexandre Aubin
2422a25f55 domains: make sure to backup/restore domain settings 2021-09-19 18:04:32 +02:00
Alexandre Aubin
8f8b6eae7c domains: Make sure domain setting folder exists with appropriate perms 2021-09-19 18:02:45 +02:00
Alexandre Aubin
065ebec821 autodns: Minor fix for error handling 2021-09-19 17:41:52 +02:00
Alexandre Aubin
499f06f5f6 autodns: Godaddy doesn't supports CAA records 2021-09-19 17:41:19 +02:00
Alexandre Aubin
c12f9b64ea Typo 2021-09-19 17:40:21 +02:00
Alexandre Aubin
69c756918f dyndns: Don't try to push anything if no ipv4/ipv6 2021-09-19 17:37:44 +02:00
Alexandre Aubin
7fd76a6884 dns: Reintroduce include_empty_AAAA_if_no_ipv6 option, needed for diagnosis 2021-09-19 17:32:35 +02:00
Alexandre Aubin
04487ed6bf dns: Don't include subdomains stuff in dyndns update, because this probably ain't gonna work 2021-09-19 17:30:52 +02:00
Alexandre Aubin
ae03be3bad i18n tests: simplify hardcoded stuff 2021-09-19 17:10:14 +02:00
Alexandre Aubin
1543984a29 Fix i18n tests 2021-09-19 16:51:17 +02:00
Alexandre Aubin
d161d0744a dns: don't have empty sections in recommended conf 2021-09-19 16:50:57 +02:00
Alexandre Aubin
e3ce03ac85 autodns: i18n 2021-09-19 16:18:07 +02:00
Alexandre Aubin
52b3cb5622 app config panel: Add supports_config_panel in app_info for webadmin 2021-09-19 01:57:00 +02:00
Alexandre Aubin
76bd3a6f83 autodns: Add link to registrar api doc 2021-09-19 01:46:48 +02:00
Alexandre Aubin
f90854809c domain config: add disclaimer that enabling/disabling features only impact dns configuration for now 2021-09-19 01:23:51 +02:00
Alexandre Aubin
8faad01263 Misc fixes 2021-09-19 01:23:33 +02:00
Alexandre Aubin
b5e20cadf4 autodns: Various fixes, improvement for edge case handling 2021-09-19 00:32:42 +02:00
Alexandre Aubin
c762cd9858 autodns: typo⁴ 2021-09-18 23:35:37 +02:00
Alexandre Aubin
002d254522 autodns: typo³ 2021-09-18 23:28:34 +02:00
Alexandre Aubin
b3e9cf19db autodns: typo² 2021-09-18 23:18:03 +02:00
Alexandre Aubin
2c997d43e1 autodns: typo 2021-09-18 23:15:36 +02:00
Alexandre Aubin
fa31d49bf9 autodns: Improve handling of the subdomain case 2021-09-18 23:10:17 +02:00
Alexandre Aubin
5812c8f1ae autodns: Disable ttl setting for now because meh 2021-09-18 22:47:06 +02:00
Alexandre Aubin
68f2eea0ae autodns: proper error management for authentication error 2021-09-18 13:58:41 +02:00
Alexandre Aubin
9f6c97c4d9
Merge pull request #1330 from ericgaspar/patch-2
time format
2021-09-17 23:50:47 +02:00
Éric Gaspar
ef91b67d67
Fix time format
Set more meaningful time format
2021-09-17 23:31:40 +02:00
Alexandre Aubin
991eea447c
[fix] YNH_APP_BASEDIR may not exist, set -eu etc 2021-09-17 22:23:08 +02:00
Alexandre Aubin
0d881fe008 app.py: No need to define Question.operation_logger anymoar 2021-09-17 19:56:24 +02:00
Kay0u
c20ac160cc
do not use ynh_print_warn here 2021-09-17 18:49:33 +02:00
Kay0u
efdd287bff
define a default YNH_APP_BASEDIR 2021-09-17 18:47:47 +02:00
Kay0u
c1eecd5eb3
moar YNH_APP_BASEDIR 2021-09-17 18:38:00 +02:00
ljf
03e378786a Merge branch 'dev' of github.com:YunoHost/yunohost into dev 2021-09-17 18:32:11 +02:00
ljf
aeed9f897b [fix] Redact password in app install 2021-09-17 18:32:06 +02:00
Kay0u
ddd522ac54
add YNH_APP_BASEDIR in the env var 2021-09-17 18:24:50 +02:00
Alexandre Aubin
370340b381
Merge pull request #1327 from YunoHost/remove-created-permission-if-error
remove created permission if error
2021-09-17 18:00:22 +02:00
Kay0u
29bb26f246
remove created permission if error 2021-09-17 17:51:50 +02:00
Alexandre Aubin
d135b97784 Revert "mypy: read_yaml argument should always be a string"
This reverts commit 4db4338812.
2021-09-17 17:10:07 +02:00
Alexandre Aubin
4db4338812 mypy: read_yaml argument should always be a string 2021-09-17 16:57:51 +02:00
Alexandre Aubin
c8caabf8f8 autodns: pop experimental_disclaimer because it's not an actual credential 2021-09-17 16:12:25 +02:00
Alexandre Aubin
93b99635b7 autodns: fix/simplify registrar settings fetching 2021-09-17 15:41:57 +02:00
Kay0u
c53a6006ce
Remove unused import 2021-09-17 14:47:12 +02:00
Kay0u
4503816a88
Adding an anchor on each helper 2021-09-17 14:39:14 +02:00
Alexandre Aubin
d4d576c492 autodns: return relative name in dry run output 2021-09-17 14:36:46 +02:00
Alexandre Aubin
12bc94f76e config/question: broadcast data to redact to all OperationLogger instances 2021-09-17 12:55:23 +02:00
Alexandre Aubin
155942a92c
Merge pull request #1324 from YunoHost/ci-format-dev
[CI] Format code
2021-09-17 05:39:40 +02:00
yunohost-bot
a631261cff [CI] Format code 2021-09-17 03:33:35 +00:00
Alexandre Aubin
a75d9aff34 Moaaar i18n 2021-09-17 05:22:37 +02:00
Alexandre Aubin
b15004135a domain config: Moar i18n 2021-09-17 05:17:50 +02:00
Alexandre Aubin
dbff4316d3 config: fix rendering of core-defined strings during config set 2021-09-17 05:12:22 +02:00
Alexandre Aubin
c5a835c391 autodns: misc fixes/enh 2021-09-17 04:58:56 +02:00
Alexandre Aubin
7ab9889521 autodns: i18n 2021-09-17 04:55:07 +02:00
ljf
9eda00698c [fix] Tags question 2021-09-17 04:36:05 +02:00
Alexandre Aubin
6ea538a43b autodns: better error management + cli ux 2021-09-17 04:16:30 +02:00
ljf
a0ee39a038 Merge branch 'dev' of github.com:YunoHost/yunohost into dev 2021-09-17 03:15:06 +02:00
ljf
4a1d6f2257 [fix] Small fixes about file questions in config panel 2021-09-17 03:15:01 +02:00
Alexandre Aubin
00cc672b89 autodns: small fix for Gandi which returns TXT record not prefixed/suffixed with quotes 2021-09-17 02:14:40 +02:00
Alexandre Aubin
2a5269ddcd Merge branch 'dev' into enh-dns-autoconf 2021-09-17 01:35:59 +02:00
Alexandre Aubin
4e5632a24b config: self.app may not be defined 2021-09-17 01:35:40 +02:00
Alexandre Aubin
71b09ae0e7 autodns dry-run: return a proper datastructure to the api instead of ~humanfriendly string 2021-09-17 01:15:36 +02:00
Alexandre Aubin
7655b7b7c3 dns: fix typo in tests 2021-09-17 00:47:16 +02:00
Alexandre Aubin
c8a28882b7 Merge branch 'dev' into enh-dns-autoconf 2021-09-17 00:43:24 +02:00
Alexandre Aubin
403c36d984 config/questions: fix alert display in cli 2021-09-17 00:39:14 +02:00
Alexandre Aubin
cfceca581f domain config: prevent a warning being raised because of unexpected value key 2021-09-17 00:34:44 +02:00
Alexandre Aubin
0a404f6d56 autodns: Improve the push system to save managed dns record hashes, similar to the regenconf mecanism 2021-09-17 00:30:47 +02:00
Alexandre Aubin
bc39788da9 autodns: minor simplification in create/delete/update strategy 2021-09-16 21:50:44 +02:00
Alexandre Aubin
23ab7776ce Merge branch 'dev' into enh-dns-autoconf 2021-09-16 20:57:18 +02:00
Alexandre Aubin
88da178cb7 Fix tests: unbound variable during backup/restore 2021-09-16 20:56:06 +02:00
Alexandre Aubin
c4fe991701 log: log list was displaying much less entries than required on webadmin 2021-09-16 20:46:36 +02:00
Alexandre Aubin
2181bc1bab log: Improve filtering of boring/irrelevant lines 2021-09-16 20:34:24 +02:00
Alexandre Aubin
86a74903db autodns dryrun: return a proper dict/list structure instead of a raw string 2021-09-16 20:21:41 +02:00
Alexandre Aubin
a4526da4f2 install questions: domain/user/password don't need default or example values 2021-09-16 20:12:33 +02:00
Alexandre Aubin
62ebd68e34 config/user question: raise an error if no user exists yet 2021-09-16 20:03:35 +02:00
Alexandre Aubin
47db3e798e config helpers: Disable bash xtrace during ynh_read/write_var_from_file to avoid an horrendous amount of debug logs 2021-09-16 18:52:21 +02:00
Alexandre Aubin
96b112ac7f config get: Also inject ask strings in full mode 2021-09-16 17:49:58 +02:00
Kay0u
63d3ccd827
Fix test questions 2021-09-16 11:22:53 +02:00
Kayou
ab3184cced
Fix autofix-translated-strings job 2021-09-16 11:16:24 +02:00
ljf
0ce367d137 Merge branch 'dev' of github.com:YunoHost/yunohost into dev 2021-09-16 03:13:42 +02:00
ljf
1b47859d37 [fix) Pattern and empty string 2021-09-16 03:13:32 +02:00
Alexandre Aubin
8588146797
Merge pull request #1325 from YunoHost/enh-config-panel-final-path
avoid to retrieve final path in the config panel scripts
2021-09-15 17:33:58 +02:00
Alexandre Aubin
217ae87bb3 Fix duplicate cert routes 2021-09-15 17:26:39 +02:00
Kay0u
acb40424a6
avoid to retrieve final path in the config panel scripts 2021-09-15 16:40:47 +02:00
Alexandre Aubin
57f00190b0 debian: install the new domain config panel and registrar list toml to /usr/share 2021-09-14 22:58:43 +02:00
Alexandre Aubin
02480d27d7 Wording 2021-09-14 22:48:03 +02:00
ljf
3efa2fe751 [enh] Avoid to have to retype password in cli 2021-09-14 22:19:53 +02:00
ljf
0dde7fca6b [fix] Default name for panel and improve no named section display in cli 2021-09-14 20:29:00 +02:00
Alexandre Aubin
fa271db569 ci: Don't cd to src/yunohost to run pytest (to prevent ambiguous 'import dns.resolver' trying to import our own dns.py :s) 2021-09-14 19:14:33 +02:00
Alexandre Aubin
f38b59a590
Merge pull request #1323 from YunoHost/fix-action
Fix action
2021-09-14 19:13:12 +02:00
Kayou
e15763f97b
Update src/yunohost/app.py
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2021-09-14 19:11:05 +02:00
Kay0u
0d702ed31c
run actions in tmp dir 2021-09-14 18:57:08 +02:00
Kay0u
eb5cb1311e
fix YNH_APP_BASEDIR during actions 2021-09-14 18:55:27 +02:00
Alexandre Aubin
246eb1ab5c Merge branch 'dev' into enh-dns-autoconf 2021-09-14 18:12:39 +02:00
Alexandre Aubin
d5e366511a autodns: Moar fixes and stuff after tests on the battlefield 2021-09-14 18:04:02 +02:00
Kay0u
a2c5895cd3
remove all double var in locales 2021-09-14 17:27:42 +02:00
Kay0u
196993afcb
remove duplicate name in locales 2021-09-14 13:51:42 +02:00
Alexandre Aubin
0a21be694c We don't need to add .. to pythonpath during tests? 2021-09-13 22:35:38 +02:00
Alexandre Aubin
fc07abf871 autodns: Misc refactoring to have dns push dry-run somewhat working + implement diff strategy 2021-09-13 20:56:43 +02:00
Alexandre Aubin
2782a89a64 domain config: Add notes about other config stuff we may want to implement in the future 2021-09-13 20:55:54 +02:00
Alexandre Aubin
6031cc7846 Misc fixes for cert commands 2021-09-13 17:16:22 +02:00
Alexandre Aubin
66df3e74c1 Fix autofix translation ci 2021-09-13 12:44:32 +02:00
Éric Gaspar
13f57fbd64 Typo
- Fix typo
2021-09-13 09:16:00 +02:00
Alexandre Aubin
57c8864292 Fix tests 2021-09-13 03:43:08 +02:00
Alexandre Aubin
d74f454024
Merge pull request #1320 from YunoHost/ci-format-dev
[CI] Format code
2021-09-13 03:12:58 +02:00
Alexandre Aubin
af0c12a62b Unused imports 2021-09-13 03:11:23 +02:00
yunohost-bot
aeb0ef9289 [CI] Format code 2021-09-13 01:08:29 +00:00
Alexandre Aubin
ee2a7347a0 Merge remote-tracking branch 'origin/dev' into enh-dns-autoconf 2021-09-13 02:58:06 +02:00
Alexandre Aubin
9625dbe0ff Merge branch 'dev' into enh-dns-autoconf 2021-09-13 02:57:34 +02:00
Alexandre Aubin
454844d2e0 Missing raw_msg=True 2021-09-13 02:44:59 +02:00
Alexandre Aubin
092d6f9df7
Merge pull request #1319 from YunoHost/ci-format-dev
[CI] Format code
2021-09-13 02:40:23 +02:00
yunohost-bot
869eb33e04 [CI] Format code 2021-09-13 00:38:23 +00:00
Alexandre Aubin
e6b12ac4da
Merge pull request #987 from YunoHost/enh-config-panel-file
[enh] New config-panel mechanism
2021-09-13 01:57:51 +02:00
Alexandre Aubin
968cac32d1
new config helpers: use $() instead of backticks
Co-authored-by: Kayou <pierre@kayou.io>
2021-09-13 01:55:57 +02:00
Alexandre Aubin
380321a6eb config: bind key may not exist in option 2021-09-13 01:50:04 +02:00
Alexandre Aubin
3922cba8ce
Merge pull request #1314 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-09-13 01:27:03 +02:00
Alexandre Aubin
efe9ae195b
Update locales/fr.json 2021-09-13 01:26:43 +02:00
ljf
3df362e921 Merge branch 'enh-config-panel-file' of github.com:YunoHost/yunohost into enh-config-panel-file 2021-09-13 01:24:41 +02:00
ljf
1d704e7b91 [enh] Avoid to raise error with bin null and empty value 2021-09-13 01:24:10 +02:00
Alexandre Aubin
02814833d5 Misc fixes, try to fix tests 2021-09-13 00:50:36 +02:00
ljf
ce34bb75c4 [enh] Avoid to raise error with bin null and empty value 2021-09-13 00:47:21 +02:00
ljf
2710ca7271 [fix] Missing default property 2021-09-13 00:25:55 +02:00
Alexandre Aubin
4533b74d6c autodns: Various tweaks and refactorings to make test pass 2021-09-12 22:55:31 +02:00
ljf
ca5d7b32dc [enh] Validate server side specific input html5 field 2021-09-12 19:06:25 +02:00
ljf
f8fed701b9 [fix] Raise an error if question has not been initialize 2021-09-12 17:43:03 +02:00
ljf
f276a031af Merge branch 'enh-dns-autoconf' of github.com:YunoHost/yunohost into enh-dns-autoconf 2021-09-12 17:36:18 +02:00
ljf
518d41f6a9 Merge branch 'enh-config-panel-file' of github.com:YunoHost/yunohost into enh-config-panel-file 2021-09-12 17:34:13 +02:00
ljf
e133b163df [wip] Check question are initialize 2021-09-12 17:34:05 +02:00
Alexandre Aubin
d7b79154ff debian: Add python3-lexicon dependency 2021-09-12 16:07:10 +02:00
Alexandre Aubin
ba2fc82246 Merge branch 'enh-config-panel-file' into enh-dns-autoconf 2021-09-12 16:04:08 +02:00
Alexandre Aubin
b042b549e4 Let's not define a duplicate string for domain unknown... 2021-09-12 15:50:23 +02:00
Alexandre Aubin
88a624ddbc Revert publicsuffix changes in dnsrecord diagnoser 2021-09-12 15:44:51 +02:00
Alexandre Aubin
41cf266e25 dns-autoconf: remove dependency to public suffix list, not sure what scenario it was supposed to cover, probably goodenough without it 2021-09-12 15:40:17 +02:00
Éric Gaspar
aa5fcd9cf1 Translated using Weblate (Czech)
Currently translated at 9.9% (66 of 661 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/cs/
2021-09-12 13:32:55 +00:00
Éric Gaspar
65f90e8be4 Translated using Weblate (German)
Currently translated at 93.6% (619 of 661 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-09-12 13:32:55 +00:00
Tymofii-Lytvynenko
8bdacc37b5 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (661 of 661 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2021-09-12 13:32:55 +00:00
Weblate
aae6cb6679 Added translation using Weblate (Indonesian) 2021-09-12 13:32:55 +00:00
José M
48f1ee49a1 Translated using Weblate (Galician)
Currently translated at 100.0% (661 of 661 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-09-12 13:32:55 +00:00
José M
e37ddae1c9 Translated using Weblate (Galician)
Currently translated at 95.7% (633 of 661 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-09-12 13:32:55 +00:00
Éric Gaspar
02f8304106 Translated using Weblate (French)
Currently translated at 100.0% (661 of 661 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-09-12 13:32:55 +00:00
Tymofii-Lytvynenko
17b499c25e Translated using Weblate (Ukrainian)
Currently translated at 100.0% (661 of 661 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2021-09-12 13:32:55 +00:00
mifegui
44f57d005a Translated using Weblate (Portuguese)
Currently translated at 22.3% (148 of 661 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pt/
2021-09-12 13:32:55 +00:00
Éric Gaspar
88ec60d539 Translated using Weblate (Portuguese)
Currently translated at 20.7% (137 of 661 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pt/
2021-09-12 13:32:55 +00:00
mifegui
e9fd8aac2d Translated using Weblate (Portuguese)
Currently translated at 19.5% (129 of 659 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pt/
2021-09-12 13:32:55 +00:00
mifegui
041bb34b7b Translated using Weblate (Portuguese)
Currently translated at 17.1% (113 of 659 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pt/
2021-09-12 13:32:55 +00:00
Alexandre Aubin
1827268b12 Merge tag 'debian/4.2.8.3' into dev 2021-09-12 15:32:38 +02:00
ljf
3695be8d93 [fix) Tags empty question 2021-09-11 17:48:52 +02:00
ljf
89e49007a6 [fix) Tags empty question 2021-09-11 16:55:59 +02:00
Kay0u
1ade4287aa
Update changelog for 4.2.8.3 2021-09-10 10:43:20 +02:00
ljf (zamentur)
34e9246bb7
[fix] sort_buffer_size too small to make nextcloud work 2021-09-10 10:39:52 +02:00
Alexandre Aubin
d14c482086
Merge pull request #1317 from YunoHost/hotfix-mysql-buffer
[fix] sort_buffer_size too small to make nextcloud work
2021-09-09 15:19:59 +02:00
Kayou
6d1e392634
Update data/helpers.d/config 2021-09-09 10:50:49 +02:00
ljf (zamentur)
924df9733e
[enh] Use named args in helpers calls
Co-authored-by: Kayou <pierre@kayou.io>
2021-09-08 16:49:42 +02:00
ljf (zamentur)
f2b779c962
[enh] Use named args in helpers calls
Co-authored-by: Kayou <pierre@kayou.io>
2021-09-08 15:45:39 +02:00
ljf (zamentur)
b487fbbe00
[enh] Use named args in helpers calls
Co-authored-by: Kayou <pierre@kayou.io>
2021-09-08 15:45:24 +02:00
ljf (zamentur)
a205015f0d
[enh] Use --message
Co-authored-by: Kayou <pierre@kayou.io>
2021-09-08 15:44:47 +02:00
ljf (zamentur)
d360363251
[enh] Use --message
Co-authored-by: Kayou <pierre@kayou.io>
2021-09-08 15:44:35 +02:00
ljf (zamentur)
62875c30da
[enh] Use --message
Co-authored-by: Kayou <pierre@kayou.io>
2021-09-08 15:43:59 +02:00
ljf (zamentur)
df20a54013
[enh] Avoid bad deletion
Co-authored-by: Kayou <pierre@kayou.io>
2021-09-08 15:43:50 +02:00
ljf (zamentur)
33505bff5f
[enh] Use --message
Co-authored-by: Kayou <pierre@kayou.io>
2021-09-08 15:43:15 +02:00
ljf (zamentur)
8efbc736d4
[enh] Use --message
Co-authored-by: Kayou <pierre@kayou.io>
2021-09-08 15:42:56 +02:00
ljf (zamentur)
85b7239a4b
[enh] Use --message
Co-authored-by: Kayou <pierre@kayou.io>
2021-09-08 15:42:45 +02:00
ljf
88063dc7db [fix] Add backup for multimedia files 2021-09-08 11:02:59 +02:00
ljf (zamentur)
0727224c9d
[fix] sort_buffer_size too small to make nextcloud work 2021-09-08 10:45:43 +02:00
Alexandre Aubin
0844c74764 Anotha shruberry² 2021-09-07 23:47:06 +02:00
Alexandre Aubin
db6a520065 Merge branch 'hotfix-mysql-buffer' into dev 2021-09-07 23:24:22 +02:00
Alexandre Aubin
1730f84b8c Update changelog for 4.2.8.2 2021-09-07 23:23:46 +02:00
ericgaspar
d8c4961944 Update my.cnf 2021-09-07 23:21:44 +02:00
ljf
b007102842 [fix] Question tests 2021-09-07 20:09:40 +02:00
Alexandre Aubin
6b3af5fa33 Anotha shruberry 2021-09-07 19:39:30 +02:00
Alexandre Aubin
0b8a62c776
Merge branch 'dev' into enh-config-panel-file 2021-09-07 18:34:28 +02:00
Alexandre Aubin
6cfefd4b9a Attempt to fix backup test 2021-09-07 18:31:37 +02:00
Alexandre Aubin
62b56d96d0
Merge pull request #1316 from ericgaspar/add-passwd-to-be-obfuscated
Add passwd to be obfuscated
2021-09-07 10:33:46 +02:00
ericgaspar
1a64a1d39a
Add passwd to be obfuscated 2021-09-07 08:24:03 +02:00
Alexandre Aubin
050185a0c2 config panel: fix file type returning weird value 2021-09-06 21:32:52 +02:00
ljf
f2d0732825 [fix] Missing call to --after args 2021-09-06 04:28:30 +02:00
ljf
60c2e146a1 Merge branch 'enh-config-panel-file' of github.com:YunoHost/yunohost into enh-config-panel-file 2021-09-06 04:21:46 +02:00
ljf
060d5b6dc5 [fix] ynh_write_var_in_file and after option 2021-09-06 04:20:35 +02:00
Alexandre Aubin
0789eca4e0 config: Tweak logic to return a validation error when custom validation fails 2021-09-06 02:10:45 +02:00
Alexandre Aubin
66fcea72e5 config: Add more tests for regular setting / bind / custom function 2021-09-06 02:10:15 +02:00
Alexandre Aubin
e60804a69f config helpers: misc syntax issues 2021-09-06 02:07:56 +02:00
ljf
4a3d6e53c6 [fix] ynh_read_var_in_file with ini file 2021-09-06 00:58:46 +02:00
Alexandre Aubin
ba6f90d966 YunohostError -> YunohostValidationError for some stuff 2021-09-06 00:15:25 +02:00
Alexandre Aubin
a5bf5246c5 Remove i18n stale strings 2021-09-06 00:02:41 +02:00
Alexandre Aubin
acf4d1c82a i18n: 'danger' key is only defined in yunohost, not moulinette 2021-09-06 00:01:36 +02:00
Alexandre Aubin
552db2e21d config helpers: misc style + check if file exists 2021-09-06 00:01:14 +02:00
Alexandre Aubin
74714d0a62 config panels: bind='' -> bind='null' 2021-09-05 23:59:41 +02:00
Alexandre Aubin
c55b96b94b config panel: rename source into bind 2021-09-05 23:08:48 +02:00
Alexandre Aubin
4f0df2bcfe Define missing i18n keys 2021-09-05 22:25:06 +02:00
Alexandre Aubin
39006dbf13 tests: dunno what i'm doing but that scope=module is no good 2021-09-05 20:55:17 +02:00
Alexandre Aubin
3936589d3b Yolofactorize install/upgrade/restore error handling into a smart 'hook_exec_with_script_debug_if_failure' 2021-09-05 20:54:51 +02:00
Alexandre Aubin
56f525cf80 Typo 2021-09-05 19:42:46 +02:00
Alexandre Aubin
6f7485bf3e config tests: Add a basic tests for app config panel 2021-09-05 19:31:07 +02:00
Alexandre Aubin
c5de803531 config panels: try to improve the log and error handling: separate ask vs. actual apply 2021-09-05 19:17:17 +02:00
Alexandre Aubin
ee55b9bf42 config helpers: Semantics / comments on the validation-apply workflow 2021-09-05 19:15:52 +02:00
Alexandre Aubin
62eecb28db --mode full/export -> --full / --export 2021-09-05 18:53:39 +02:00
Alexandre Aubin
ba8b1e5b2e
Typo 2021-09-05 18:50:28 +02:00
ljf
6276385120 Merge branch 'enh-config-panel-file' of github.com:YunoHost/yunohost into enh-config-panel-file 2021-09-05 17:46:16 +02:00
ljf
da44224794 [enh] Add warning if bad keys in toml format 2021-09-05 17:46:06 +02:00
Alexandre Aubin
afcf125d12 i18n fix 2021-09-05 17:39:39 +02:00
Alexandre Aubin
2a8e403092 test_parse_args_in_yunohost_format -> test_question 2021-09-05 17:36:33 +02:00
Alexandre Aubin
1b99bb8b0f app_argument_invalid: dunno why name was changed to field but this was breaking i18n consistency 2021-09-05 17:13:04 +02:00
Alexandre Aubin
4332278f07 service test conf: gotta decode the output 2021-09-05 17:13:04 +02:00
ljf
6aead55c1c [enh] Add a comment 2021-09-05 16:34:18 +02:00
ljf
3b0bf74274 [fix] Unbound var in config panel 2021-09-05 16:19:35 +02:00
ljf
0a1e64d88f Merge branch 'enh-config-panel-file' of github.com:YunoHost/yunohost into enh-config-panel-file 2021-09-05 16:08:30 +02:00
ljf
1207b54de6 [fix] ynh_read_var_in_file with endline 2021-09-05 16:08:23 +02:00
Alexandre Aubin
9fbf1a029a Merge branch 'dev' into enh-config-panel-file 2021-09-05 15:39:55 +02:00
Alexandre Aubin
c37b21ae14 ci: test-actionmap should only test actionmap ;) 2021-09-05 15:39:43 +02:00
Alexandre Aubin
57b8845a22 Merge branch 'dev' into enh-config-panel-file 2021-09-05 15:38:02 +02:00
Alexandre Aubin
0122b7a126 Misc fixes 2021-09-05 15:37:46 +02:00
Alexandre Aubin
47cef90efd
Merge branch 'dev' into bullseye 2021-09-05 15:09:18 +02:00
Alexandre Aubin
4199004357
Merge pull request #1312 from YunoHost/ci-format-dev
[CI] Format code
2021-09-05 01:13:33 +02:00
Alexandre Aubin
bd384d094f Unused imports 2021-09-05 01:08:40 +02:00
Alexandre Aubin
2413c378df Gotta mkdir data/bash-completion.d at build time 2021-09-05 01:04:22 +02:00
yunohost-bot
a289f081d9 [CI] Format code 2021-09-04 22:52:35 +00:00
Alexandre Aubin
e489d31290
Merge pull request #1292 from YunoHost/diagnose-suspicious-auth-failure
Diagnosis: report suspiciously high number of auth failures
2021-09-05 00:26:01 +02:00
Alexandre Aubin
163ee759fc
Merge branch 'dev' into diagnose-suspicious-auth-failure 2021-09-05 00:25:46 +02:00
Alexandre Aubin
38e4cfc4da
Merge pull request #1304 from YunoHost/https_redirect
Implement global settings for https redirect
2021-09-05 00:22:35 +02:00
Alexandre Aubin
73e68b4c28
Merge branch 'dev' into https_redirect 2021-09-05 00:22:27 +02:00
Alexandre Aubin
1bf0196ff8 Black + fix some invalid code issues 2021-09-05 00:20:12 +02:00
Alexandre Aubin
b99d8a1181
Merge pull request #1313 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-09-04 22:42:12 +02:00
Alexandre Aubin
a062254402 Moar localization 2021-09-04 20:34:56 +02:00
Alexandre Aubin
b06570fb88 Merge branch 'enh-config-panel-file' of github.com:YunoHost/yunohost into enh-config-panel-file 2021-09-04 20:27:36 +02:00
Alexandre Aubin
778c67540c Misc fixes, try to implement locale strings 2021-09-04 20:22:28 +02:00
Alexandre Aubin
c8791a9834 Add config check during service_reload_or_restart 2021-09-04 20:21:57 +02:00
ljf
4c9fcdc9e4 [fix] Get / set app config panel 2021-09-04 20:12:56 +02:00
ljf
8eaaf0975a [enh] yes/no args on boolean aquestion + semantic 2021-09-04 19:49:34 +02:00
ljf
9f9dfdbea7 Merge branch 'enh-config-panel-file' of github.com:YunoHost/yunohost into enh-config-panel-file 2021-09-04 19:11:41 +02:00
Alexandre Aubin
d19c8f7632 Merge branch 'dev' into enh-config-panel-file 2021-09-04 19:07:48 +02:00
Tymofii-Lytvynenko
25d9ff8a79 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (659 of 659 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2021-09-04 17:06:27 +00:00
Tymofii-Lytvynenko
09e55ef9b1 Translated using Weblate (Ukrainian)
Currently translated at 41.7% (275 of 659 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2021-09-04 17:06:27 +00:00
Tymofii-Lytvynenko
a2e68fe753 Translated using Weblate (Ukrainian)
Currently translated at 37.1% (245 of 659 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2021-09-04 17:06:27 +00:00
Tymofii-Lytvynenko
23a8830af4 Translated using Weblate (Ukrainian)
Currently translated at 36.4% (240 of 659 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2021-09-04 17:06:27 +00:00
Tymofii-Lytvynenko
0093d12630 Translated using Weblate (Ukrainian)
Currently translated at 35.8% (236 of 659 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2021-09-04 17:06:27 +00:00
Tymofii-Lytvynenko
2b5fc01d05 Translated using Weblate (Ukrainian)
Currently translated at 34.5% (228 of 659 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2021-09-04 17:06:27 +00:00
Tymofii-Lytvynenko
d36de3589b Translated using Weblate (Ukrainian)
Currently translated at 34.4% (227 of 659 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2021-09-04 17:06:27 +00:00
Tymofii-Lytvynenko
377771cc11 Translated using Weblate (Ukrainian)
Currently translated at 34.2% (226 of 659 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2021-09-04 17:06:27 +00:00
Alexandre Aubin
5ac79d8f05 i18n: Apply add_missing_key script ('just' to reorder keys) 2021-09-04 19:06:16 +02:00
ljf
b5aca9895d [enh] yes/no args on boolean aquestion + semantic 2021-09-04 19:05:32 +02:00
ljf
fd5b2e8953 [enh] Several fixes in domain config 2021-09-04 19:05:13 +02:00
Alexandre Aubin
29ff4faf30 i18n: Add add_missing_keys script 2021-09-04 19:05:02 +02:00
ljf
97c0a74f8f [enh] yes/no args on boolean aquestion + semantic 2021-09-04 19:03:11 +02:00
ljf
666ebdd8d4 [enh] yes/no args on boolean aquestion + semantic 2021-09-04 19:03:07 +02:00
Alexandre Aubin
aeeac12309 Flake8 2021-09-04 18:45:45 +02:00
Alexandre Aubin
0a52430186 Black 2021-09-04 18:39:39 +02:00
Alexandre Aubin
cc8247acfd helpers/config: Add unit tests for read/write var from py/ini 2021-09-03 23:36:54 +02:00
Alexandre Aubin
d74bc485dd helpers/config: Add unit tests for read/write var from json/php/yaml 2021-09-03 20:23:12 +02:00
ljf
a0f471065c [fix] Fix yunohost domain config get 2021-09-03 19:05:58 +02:00
Alexandre Aubin
3163179464 config helpers: get_var / set_var -> read/write_var_in_file 2021-09-03 17:13:31 +02:00
ljf
0874e9a646 [wip] Config Panel for domain 2021-09-03 17:07:34 +02:00
Alexandre Aubin
fbd0f360f9
Merge pull request #1307 from YunoHost/reformat-fr-translation
Fuck orthotypography, let's enforce practices for fr i18n
2021-09-03 15:26:05 +02:00
Alexandre Aubin
13fd447b6f
Merge branch 'dev' into reformat-fr-translation 2021-09-03 15:25:34 +02:00
ljf
0da2f137ca Merge branch 'enh-config-panel-file' into enh-dns-autoconf 2021-09-03 14:36:07 +02:00
Alexandre Aubin
426d46a8f1
Merge pull request #1310 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-09-03 14:34:12 +02:00
ljf
b28cf8cbce [enh] Prepare config panel for domain 2021-09-03 14:26:34 +02:00
Tymofii-Lytvynenko
bf7b51de18 Translated using Weblate (Ukrainian)
Currently translated at 30.3% (200 of 659 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2021-09-03 06:57:18 +00:00
Éric Gaspar
6e1018fd4e Translated using Weblate (French)
Currently translated at 100.0% (659 of 659 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-09-03 06:57:16 +00:00
Weblate Admin
ab388dc167 Translated using Weblate (French)
Currently translated at 100.0% (651 of 651 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-09-03 00:01:29 +00:00
Weblate Admin
fd0c283c53 Translated using Weblate (French)
Currently translated at 100.0% (651 of 651 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-09-03 00:01:29 +00:00
Alexandre Aubin
10fddc427e ci: Add magic script to automagically fix i18n string format in trivial case 2021-09-03 02:01:16 +02:00
ljf (zamentur)
e0fe82f566
[fix] Some service has no test_conf
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2021-09-02 20:09:41 +02:00
ljf
c5885000ec [enh] Better upgrade management 2021-09-02 19:46:33 +02:00
ljf
edef077c74 (enh] Config panel helpers wording 2021-09-02 17:19:30 +02:00
ljf
ea2026a029 (enh] Config panel helpers wording 2021-09-02 17:15:38 +02:00
ljf
60564d55c8 (enh] Config panel helpers wording 2021-09-02 17:14:27 +02:00
Alexandre Aubin
253eb6575c
Merge pull request #1311 from YunoHost/ci-format-dev
[CI] Format code
2021-09-02 17:13:23 +02:00
yunohost-bot
c197e171bb [CI] Format code 2021-09-02 15:04:02 +00:00
Kayou
57a2e4032f
replace msettings by Moulinette 2021-09-02 16:52:16 +02:00
Alexandre Aubin
94b1bdebb3
Merge pull request #1089 from YunoHost/enh-csv
[enh] Import users with a CSV
2021-09-02 15:48:49 +02:00
ljf (zamentur)
e27f38ae69
Test group remove on csv import 2021-09-02 14:33:06 +02:00
ljf (zamentur)
f2487a2251
Avoid confusing things in user_list 2021-09-02 14:24:06 +02:00
ljf (zamentur)
caef1e0577
Update src/yunohost/log.py 2021-09-02 14:08:18 +02:00
Kay0u
4218e6e0f0
Merge branch 'dev' into bullseye 2021-09-02 13:09:13 +02:00
Kay0u
5ec397d354
Fix locales 2021-09-02 12:32:56 +02:00
Alexandre Aubin
46fb84e071 Expand the reformat locale script to also cover en.json ... 2021-09-02 04:46:31 +02:00
Alexandre Aubin
59564f9106 Wording 2021-09-02 04:44:37 +02:00
Alexandre Aubin
130c729396 Misc wording 2021-09-02 04:27:56 +02:00
Alexandre Aubin
33750f24d7 Remove unecessary :d} in i18n strings 2021-09-02 04:23:13 +02:00
Alexandre Aubin
f96f7dd1fd Fuck orthotypography, let's enforce practices for fr i18n 2021-09-02 04:17:15 +02:00
Alexandre Aubin
e1c7959066
Merge pull request #1306 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-09-02 03:04:32 +02:00
ljf
7d26b1477f [enh] Some refactoring for config panel 2021-09-02 02:27:22 +02:00
Alexandre Aubin
d2dea2e94e Various changes to try to implement a proper dry-run + proper list of stuff to create/update/delete 2021-09-02 02:24:25 +02:00
Parviz Homayun
a0c20dd4e5 Translated using Weblate (Persian)
Currently translated at 100.0% (643 of 643 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fa/
2021-09-01 20:27:04 +00:00
Éric Gaspar
11e70881ce Translated using Weblate (French)
Currently translated at 100.0% (651 of 651 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-09-01 20:27:00 +00:00
Alexandre Aubin
e4783aa00a Various fixes after tests on OVH 2021-09-01 21:13:22 +02:00
Parviz Homayun
90d7834808 Translated using Weblate (Persian)
Currently translated at 79.1% (509 of 643 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fa/
2021-09-01 15:45:51 +00:00
Éric Gaspar
33606404c4 Translated using Weblate (Ukrainian)
Currently translated at 7.5% (49 of 651 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2021-09-01 15:45:46 +00:00
Éric Gaspar
1966b200b8 Translated using Weblate (French)
Currently translated at 100.0% (651 of 651 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-09-01 15:45:45 +00:00
Kay0u
70bff61749
Merge branch 'dev' into bullseye 2021-09-01 17:14:21 +02:00
Alexandre Aubin
d5b1eecd07 Add a small _assert_domain_exists to avoid always repeating the same code snippet 2021-09-01 17:13:47 +02:00
Alexandre Aubin
01bc6762aa registrars: remove unimplemented or unecessary stuff 2021-09-01 17:13:15 +02:00
Alexandre Aubin
fe9ca56f88
README: translation status: use horizontal display + only 'core' 2021-09-01 15:48:35 +02:00
Alexandre Aubin
e8a63f21be ci: push a remove-stale-strings only if there are some non-whitespace changes 2021-09-01 15:21:07 +02:00
Alexandre Aubin
9dc0c9b087 tests: use https instead of http to check app is indeed installed 2021-09-01 15:08:14 +02:00
Alexandre Aubin
5501556dff ci: fix test jobs for i18n keys 2021-09-01 15:02:30 +02:00
Alexandre Aubin
377e74aa8e
Merge pull request #1302 from YunoHost/ci-format-dev
[CI] Format code
2021-09-01 11:36:00 +02:00
Alexandre Aubin
1eea8be258
Merge pull request #1305 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-09-01 11:35:15 +02:00
Parviz Homayun
e30063743a Translated using Weblate (Persian)
Currently translated at 57.5% (370 of 643 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fa/
2021-09-01 09:32:40 +00:00
Alexandre Aubin
29ae95c259
Merge pull request #1297 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-09-01 11:32:33 +02:00
Alexandre Aubin
8d7eaae1f0
Typos in french strings 2021-09-01 11:32:21 +02:00
Parviz Homayun
d9afb8507b Translated using Weblate (Persian)
Currently translated at 43.7% (281 of 643 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fa/
2021-09-01 06:38:59 +00:00
Parviz Homayun
10b813b6bb Translated using Weblate (Persian)
Currently translated at 43.2% (278 of 643 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fa/
2021-09-01 06:14:41 +00:00
Parviz Homayun
868c9c7f78 Translated using Weblate (Persian)
Currently translated at 41.8% (269 of 643 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fa/
2021-09-01 05:42:54 +00:00
José M
2f944d6258 Translated using Weblate (Galician)
Currently translated at 100.0% (643 of 643 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-09-01 05:42:53 +00:00
Parviz Homayun
516a77a491 Translated using Weblate (Persian)
Currently translated at 41.2% (265 of 643 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fa/
2021-09-01 00:08:59 +00:00
mifegui
199e65e41c Translated using Weblate (Portuguese)
Currently translated at 14.4% (93 of 643 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pt/
2021-09-01 00:08:56 +00:00
Alexandre Aubin
b2a67c4f86 https redirect: don't include app conf snippets if https redirect is enabled 2021-08-31 23:12:56 +02:00
Alexandre Aubin
4ee759855a Implement global settings for https redirect 2021-08-31 21:42:27 +02:00
Parviz Homayun
2b2335a08c Translated using Weblate (Persian)
Currently translated at 30.7% (198 of 643 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fa/
2021-08-31 18:19:04 +00:00
José M
3264c4fc2d Translated using Weblate (Galician)
Currently translated at 90.9% (585 of 643 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-08-31 18:18:59 +00:00
Alexandre Aubin
1c2fff750d dns/lexicon: Tidying up the push function 2021-08-31 18:33:15 +02:00
ljf
6d16e22f87 [enh] VisibleIf on config panel section 2021-08-31 17:45:13 +02:00
ljf
08e7fcc48e [enh] Be able to correctly display the error 2021-08-31 17:44:42 +02:00
Parviz Homayun
dd6c58a7da Translated using Weblate (Persian)
Currently translated at 2.9% (19 of 643 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fa/
2021-08-31 11:28:25 +00:00
Éric Gaspar
e7e891574e Translated using Weblate (French)
Currently translated at 100.0% (643 of 643 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-08-31 11:28:25 +00:00
Parviz Homayun
82bc5a9348 Translated using Weblate (Persian)
Currently translated at 0.3% (2 of 643 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fa/
2021-08-31 09:57:49 +00:00
Weblate
75f1b26ee1 Merge branch 'dev' of https://github.com/YunoHost/yunohost into dev 2021-08-31 09:54:08 +00:00
ljf
bb11b5dcac [enh] Be able to delete source file 2021-08-31 04:20:21 +02:00
ljf
c20226fc54 [enh] Move prefill feature into moulinette 2021-08-30 19:41:30 +02:00
ljf
969564eec6 [fix] simple/double quotes into source 2021-08-30 19:41:07 +02:00
Weblate
27f6492f8b Added translation using Weblate (Kurdish (Central)) 2021-08-30 14:14:32 +00:00
ljf
8d9f8c7123 [fix] Bad call to Moulinette.interface 2021-08-30 14:04:12 +02:00
ljf
766711069f [fix] Bad call to Moulinette.get 2021-08-30 13:25:32 +02:00
ljf
8e2cf58862 Merge branch 'dev' into enh-config-panel-file 2021-08-30 13:21:53 +02:00
ljf
f1e5309d40 Multiline, file, tags management + prefilled cli 2021-08-30 13:14:17 +02:00
Weblate
a73b74a52d Added translation using Weblate (Persian) 2021-08-28 21:46:54 +00:00
Alexandre Aubin
4089c34685 Add logging to domain_registrar_push 2021-08-28 21:55:44 +02:00
Alexandre Aubin
5a93e0640d domain_push_config -> domain_registrar_push 2021-08-28 21:53:19 +02:00
Alexandre Aubin
dded1cb775 Moar fikses 2021-08-28 21:49:35 +02:00
Alexandre Aubin
951c6695b8 domain settings: Only store the diff with respect to defaults, should make possible migrations easier idk 2021-08-28 21:32:40 +02:00
Alexandre Aubin
7e048b85b9 Misc fixes 2021-08-28 21:32:11 +02:00
Alexandre Aubin
1eb059931d Savagely split the dns/registrar stuff in a new dns.py 2021-08-28 21:02:13 +02:00
Alexandre Aubin
0ec1516f6e domains.py: Add cache for domain_list 2021-08-28 20:42:41 +02:00
Alexandre Aubin
8438efa680 Move dig() to utils.dns 2021-08-28 20:20:22 +02:00
Alexandre Aubin
22aa1f2538 Cleanup get_dns_zone_from_domain utils 2021-08-28 20:13:58 +02:00
Alexandre Aubin
2f3467dd17 More cleanup / simplify / homogenize 2021-08-28 19:56:49 +02:00
Alexandre Aubin
756e6041cb domains.py: Attempt to clarify build_dns_zone? 2021-08-28 19:10:47 +02:00
Alexandre Aubin
9f4ca2e819 Misc cleanup 2021-08-28 18:11:04 +02:00
Alexandre Aubin
13f2cabc46 Use moulinette helpers to read/write yaml 2021-08-28 18:10:47 +02:00
Alexandre Aubin
5f338d3c54 Semantics 2021-08-28 18:01:29 +02:00
Alexandre Aubin
808a69ca64 domain remove: Improve file/folder cleanup code 2021-08-28 17:58:58 +02:00
Alexandre Aubin
46b51b84f3
Merge branch 'dev' into enh-dns-autoconf 2021-08-28 17:39:59 +02:00
yunohost-bot
d0cd3437ba [CI] Format code 2021-08-28 00:45:56 +00:00
Gregor Lenz
ea76895fdf
remove offensive language in package ban config (#1226)
* remove offensive language in package ban config

I understand that some users do silly things with their system configuration and this ban is supposed to prevent that. I just improved the wording for any user who like me stumbles across this file on their system...

* [enh] Imrpove warnings

* fix spelling mistakes

Co-authored-by: ljf (zamentur) <zamentur@users.noreply.github.com>
2021-08-28 02:09:20 +02:00
Alexandre Aubin
c35d25c14d
Merge pull request #1217 from YunoHost/app-diagnosis
Add diagnosis section to check that app are in catalog with good quality, check for deprecated practices
2021-08-28 02:08:08 +02:00
Alexandre Aubin
383aab55a6 Fix tests 2021-08-28 02:03:33 +02:00
Alexandre Aubin
0ccc0b63e7
Merge pull request #1300 from YunoHost/ci-format-dev
[CI] Format code
2021-08-28 02:03:08 +02:00
yunohost-bot
712e2bb1c9 [CI] Format code 2021-08-27 18:07:37 +00:00
Kayou
be5869cd3b
Merge pull request #1299 from YunoHost/ci-remove-stale-translated-strings-dev
[CI] Remove stale translated strings
2021-08-27 19:41:58 +02:00
yunohost-bot
c3fe22f3f0 [CI] Remove stale translated strings 2021-08-27 17:19:45 +00:00
Tymofii-Lytvynenko
75879d486d Translated using Weblate (Ukrainian)
Currently translated at 5.4% (35 of 639 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2021-08-27 16:44:27 +00:00
José M
23b06252e3 Translated using Weblate (Galician)
Currently translated at 85.1% (544 of 639 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-08-27 16:44:27 +00:00
Daniel
2885fef156 Translated using Weblate (German)
Currently translated at 99.0% (633 of 639 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-08-27 16:44:27 +00:00
Alexandre Aubin
c3955f7aed
Merge pull request #1183 from YunoHost/rework-authenticator-system
Rework the authenticator system, split the LDAP stuff into auth part and utils part
2021-08-27 18:44:22 +02:00
Alexandre Aubin
a1d1bcf44f
Merge pull request #1298 from YunoHost/ci-format-dev
[CI] Format code
2021-08-27 17:55:55 +02:00
yunohost-bot
c62e168689 [CI] Format code 2021-08-27 15:53:09 +00:00
Alexandre Aubin
e21ff4d43a
Merge pull request #1293 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-08-27 17:32:10 +02:00
Alexandre Aubin
74e3afd45e
French wording/typos 2021-08-27 17:31:57 +02:00
Alexandre Aubin
3c9f812950
Merge pull request #1284 from YunoHost-Apps/mysql-sort_buffer_size
Update mysql sort_buffer_size value
2021-08-27 17:27:53 +02:00
Alexandre Aubin
035648d001
Merge pull request #1291 from YunoHost/simplify-service-yaml-management
Trash ugly hack that merge services.yml every regenconf
2021-08-27 17:20:49 +02:00
Alexandre Aubin
efc9bafeee
Merge pull request #1290 from YunoHost/experimental_sec_features
Add new setting to enable experimental security features
2021-08-27 17:20:40 +02:00
Alexandre Aubin
5af70af47d user import: Allow empty value for mailbox quota 2021-08-27 17:09:46 +02:00
Alexandre Aubin
0e2105311f user import: fix tests 2021-08-27 16:36:38 +02:00
Alexandre Aubin
3ad48fd8bc Fixes after tests on the battlefield 2021-08-27 16:34:34 +02:00
Alexandre Aubin
a2d28b21de
ynh_multimedia: local can only be used in a function 2021-08-27 16:34:07 +02:00
Alexandre Aubin
4f6166f8bb ldap config: Bump DbMaxSize to allow up to 100MB 2021-08-27 15:47:40 +02:00
Tymofii-Lytvynenko
5a22aa883f Translated using Weblate (Ukrainian)
Currently translated at 5.3% (34 of 639 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/uk/
2021-08-27 13:27:15 +00:00
Alexandre Aubin
865d8e2c8c user import: fix typo 2021-08-27 14:48:30 +02:00
Alexandre Aubin
4de6bbdf84 user import: Try to optimize group operations 2021-08-27 14:42:57 +02:00
Alexandre Aubin
a40084460b csv -> CSV 2021-08-27 14:10:20 +02:00
Alexandre Aubin
24d87ea40e user import: validate that groups and domains exists 2021-08-27 14:09:13 +02:00
Alexandre Aubin
8e35cd8103 user import: strip spaces 2021-08-27 13:52:10 +02:00
Weblate
bd11dd418e Merge branch 'dev' of https://github.com/YunoHost/yunohost into dev 2021-08-27 07:44:11 +00:00
Alexandre Aubin
c20ca3015e
Merge branch 'dev' into enh-csv 2021-08-27 01:48:15 +02:00
Alexandre Aubin
ac30833e65 Merge branch 'hotfix' into dev 2021-08-27 01:41:36 +02:00
Alexandre Aubin
eef5cd4da9 Update changelog for 4.2.8.1 2021-08-27 01:34:10 +02:00
ljf (zamentur)
3c646b3d6a [fix] Another tmp nightmare
original idea from Aleks
2021-08-27 01:32:05 +02:00
ljf (zamentur)
f7258dd3a6
[fix] Another tmp nightmare
original idea from Aleks
2021-08-27 01:17:11 +02:00
ljf
bc725e9768 [fix] File through config panel API 2021-08-27 01:05:59 +02:00
ljf
b0f6a07372 [fix] Source getter for config panel 2021-08-27 01:05:20 +02:00
Kay0u
569dc24267
remove unused imports 2021-08-26 23:01:14 +02:00
Kayou
d42123333c
Merge pull request #1288 from YunoHost/ci-remove-stale-translated-strings-dev
[CI] Remove stale translated strings
2021-08-26 22:30:07 +02:00
José M
46916b57d4 Translated using Weblate (Galician)
Currently translated at 81.8% (523 of 639 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-08-26 20:29:28 +00:00
ppr
5f8a97dd71 Translated using Weblate (French)
Currently translated at 99.6% (637 of 639 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-08-26 20:29:28 +00:00
José M
bb6140af6c Translated using Weblate (Galician)
Currently translated at 79.1% (506 of 639 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-08-26 20:29:28 +00:00
José M
17d9dd18c2 Translated using Weblate (Galician)
Currently translated at 71.9% (460 of 639 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-08-26 20:29:28 +00:00
Éric Gaspar
f50bf89609 Translated using Weblate (French)
Currently translated at 100.0% (639 of 639 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-08-26 20:29:28 +00:00
José M
97f73458d7 Translated using Weblate (Galician)
Currently translated at 69.8% (445 of 637 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-08-26 20:29:28 +00:00
mifegui
23b8782516 Translated using Weblate (Portuguese)
Currently translated at 9.2% (59 of 637 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pt/
2021-08-26 20:29:28 +00:00
José M
3e84789a90 Translated using Weblate (Galician)
Currently translated at 68.6% (437 of 637 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-08-26 20:29:28 +00:00
José M
64889b9618 Translated using Weblate (Galician)
Currently translated at 62.4% (398 of 637 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-08-26 20:29:28 +00:00
Éric Gaspar
1c0b9368ae Translated using Weblate (French)
Currently translated at 100.0% (637 of 637 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-08-26 20:29:28 +00:00
José M
cb36c781dc Translated using Weblate (Galician)
Currently translated at 58.5% (373 of 637 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-08-26 20:29:28 +00:00
Flavio Cristoforetti
2435f84871 Translated using Weblate (Italian)
Currently translated at 100.0% (637 of 637 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2021-08-26 20:29:28 +00:00
Kayou
4109262bef
Merge pull request #1295 from YunoHost/ci-format-dev
[CI] Format code
2021-08-26 22:29:25 +02:00
Kayou
0808c46a0b
Merge pull request #1296 from YunoHost-Apps/typo
typo
2021-08-26 22:29:00 +02:00
yunohost-bot
aac8b8d460 [CI] Format code 2021-08-26 20:09:57 +00:00
Alexandre Aubin
128eb6a7d4 user import: Clarify fields validation 2021-08-26 21:06:16 +02:00
ericgaspar
4f0494d66b
Update en.json 2021-08-26 20:57:23 +02:00
Alexandre Aubin
ad975a2dbb user import: clarify user deletion handling 2021-08-26 20:45:06 +02:00
Alexandre Aubin
efec34a3a6 tests: Improve code formatting 2021-08-26 20:31:20 +02:00
Alexandre Aubin
aac0146aef Forbid installing apps with a dot in app id 2021-08-26 20:14:23 +02:00
Alexandre Aubin
18e7aa10a8
Merge branch 'dev' into rework-authenticator-system 2021-08-26 20:12:09 +02:00
Alexandre Aubin
02cd9a84f3 Merge branch 'dev' into simplify-service-yaml-management 2021-08-26 20:10:33 +02:00
Alexandre Aubin
9d4a51a17f Merge branch 'dev' into diagnose-suspicious-auth-failure 2021-08-26 20:10:10 +02:00
Alexandre Aubin
caef88121a Merge branch 'dev' into experimental_sec_features 2021-08-26 20:09:34 +02:00
Alexandre Aubin
083510b060
Merge pull request #1294 from YunoHost/fix-wording
[fix] Wording in path question
2021-08-26 20:06:50 +02:00
Alexandre Aubin
07cd1428d2
Update locales/en.json 2021-08-26 20:06:39 +02:00
ljf
574b01bcf4 [fix] Pattern key not working 2021-08-26 17:48:08 +02:00
ljf
9eb9ec1804 [fix] Several fixes in config panel 2021-08-26 17:39:33 +02:00
ljf
f5529c584d [wip] Min max in number questions 2021-08-25 21:16:31 +02:00
ljf
8d364029a0 [fix] Services key not properly converted 2021-08-25 20:58:15 +02:00
ljf
5a64a063b2 [fix] Clean properly config panel upload dir 2021-08-25 20:51:50 +02:00
ljf
97128d7ddb [enh] Support __APP__ in services config panel key 2021-08-25 20:16:31 +02:00
ljf
5dc1ee6266 [enh] Services key in config panel 2021-08-25 20:10:11 +02:00
ljf
86c0998123 [enh] Add a pattern validation for config panel 2021-08-25 19:18:15 +02:00
ljf
4547a6ec07 [fix] Multiple fixes in config panel 2021-08-25 18:13:17 +02:00
ljf (zamentur)
513a9f62c8
[enh] SSH acronym
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
2021-08-25 12:13:45 +02:00
ljf
4c46f41036 [fix] Args always empty in config panel 2021-08-24 17:36:54 +02:00
ljf
0de69104b1 [fix] Bad merge 2021-08-24 16:06:46 +02:00
yunohost-bot
f4d0106c36 [CI] Remove stale translated strings 2021-08-23 14:36:55 +00:00
Alexandre Aubin
c9d73af401 i18n: mdns -> yunomdns 2021-08-23 15:31:43 +02:00
Alexandre Aubin
2740c74eb0 Merge remote-tracking branch 'origin/dev' into simplify-service-yaml-management 2021-08-23 15:20:28 +02:00
Alexandre Aubin
4d47fe1670
Merge pull request #1112 from tituspijean/mdns
Adding mDNS for .local domains
2021-08-23 15:15:32 +02:00
Alexandre Aubin
b5d00da0bf Attempt to fix tests for ldap auth 2021-08-23 14:05:22 +02:00
ljf (zamentur)
cd917a9123
[fix] Wording in path question 2021-08-22 21:57:50 +02:00
ljf
8cbe884609 Merge branch 'enh-config-panel-file' of github.com:YunoHost/yunohost into enh-config-panel-file 2021-08-21 08:59:41 +02:00
ljf
ef058c07f7 [fix] File question in config panel with cli 2021-08-20 20:12:15 +02:00
ljf
10c8babf8c [enh] Fail if script fail 2021-08-20 18:03:32 +02:00
ljf
b79d5ae416 [enh] Support __FINALPATH__ in file source 2021-08-20 18:02:54 +02:00
ljf
2ac4e1c5bf [fix] I like regexp 2021-08-20 17:26:26 +02:00
ljf
98ca514f8f [enh] Rewrite config show, get, set actions 2021-08-20 16:35:51 +02:00
ljf
a89dd4827c [enh] Use yaml for reading hook output 2021-08-20 16:35:02 +02:00
Alexandre Aubin
c78d31b6c1 Merge branch 'dev' into rework-authenticator-system 2021-08-20 10:12:41 +02:00
Alexandre Aubin
5249be031f Propagate msignal change 2021-08-20 10:12:35 +02:00
Alexandre Aubin
b8c8ac0b2d Gotta also remove libnss-mdns if we want to get rid of avahi-daemon 2021-08-19 20:29:28 +02:00
Alexandre Aubin
ecf136d5db Auto-enable yunomdns on legacy systems 2021-08-19 20:28:20 +02:00
Alexandre Aubin
b452838a17 Update changelog for 4.2.8 2021-08-19 19:28:47 +02:00
Alexandre Aubin
e3f11bec09 NO_BACKUP_UPGRADE: helpers expect 0 or 1 2021-08-19 18:41:47 +02:00
Alexandre Aubin
3c07e55017 [fix] hook_exec / subprocess.Popen explodes if you feed non-string values in env variables 2021-08-19 18:14:15 +02:00
Alexandre Aubin
9e63142748 Diagnosis: report suspiciously high number of auth failures 2021-08-19 01:10:54 +02:00
Alexandre Aubin
a29940d8f4 Trash ugly hack that merge services.yml every regenconf 2021-08-18 23:07:38 +02:00
Alexandre Aubin
bcb803c0c3 Add new setting to enable experimental security features 2021-08-18 22:10:25 +02:00
Alexandre Aubin
1f7faabc30
Merge pull request #1255 from Krakinou/enh-multimedia-check-home
[Enh]Multimedia helper: check home folder
2021-08-18 19:48:15 +02:00
Alexandre Aubin
4b84922315
Apply suggestions from code review 2021-08-18 19:47:46 +02:00
Alexandre Aubin
07413e19c0
Merge pull request #1285 from sagessylu/dev
Add --purge option to "yunohost app remove"
2021-08-18 19:40:33 +02:00
Alexandre Aubin
09efb86ff1
Improve help text for app remove --purge 2021-08-18 19:40:10 +02:00
Alexandre Aubin
b75fef44e5
Merge pull request #1286 from sagessylu/no-safety-backup
Add --no-safety-backup option to "yunohost app upgrade"
2021-08-18 19:38:52 +02:00
sagessylu
69a5ae5736
Update src/yunohost/app.py
Co-authored-by: ljf (zamentur) <zamentur@users.noreply.github.com>
2021-08-17 20:27:33 +02:00
Alexandre Aubin
e86fc8596e
Merge pull request #1283 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-08-17 19:36:04 +02:00
ljf
fddb79e841 [wip] Reduce config panel var 2021-08-17 19:19:19 +02:00
ljf
65fc06e3e7 [fix] Missing name or bad format management 2021-08-17 19:19:19 +02:00
ljf
ed0915cf81 [fix] tons of things 2021-08-17 19:19:19 +02:00
ljf
caf2a9d6d1 [fix] No validate function in config panel 2021-08-17 19:19:19 +02:00
ljf
1c636fe1ca [enh] Add configpanel helpers 2021-08-17 19:19:19 +02:00
ljf
2845545985 [fix] Base64 python3 change 2021-08-17 19:19:19 +02:00
ljf (zamentur)
975bf4edcb [enh] Replace os.path.join to improve security 2021-08-17 19:19:19 +02:00
ljf
fb0d23533e [fix] Several files with same name 2021-08-17 19:19:19 +02:00
ljf
d8cdc20e0e [wip] Allow file upload from config-panel 2021-08-17 19:19:19 +02:00
Alexandre Aubin
920f744df0
Merge pull request #1287 from YunoHost/fix-warning-yaml
[fix] Avoid warning and use safeloader
2021-08-17 18:40:17 +02:00
ljf
5518931c02 [fix] OrderedLoader from SafeLoader 2021-08-17 17:33:23 +02:00
ljf
ccb6dc54b1 [fix] Avoid warning and use safeloader 2021-08-17 17:26:00 +02:00
mifegui
b39201a193 Translated using Weblate (Portuguese)
Currently translated at 8.1% (52 of 637 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pt/
2021-08-16 20:43:03 +00:00
sagessylu
cec4971cac
Add no-safety-backup option to yunohost app upgrade 2021-08-15 22:02:13 +02:00
sagessylu
c2460d7526
Add purge option to yunohost app remove 2021-08-15 21:41:32 +02:00
Weblate
2b638fc87d Merge branch 'dev' of https://github.com/YunoHost/yunohost into dev 2021-08-14 23:35:49 +00:00
ljf (zamentur)
16f564622e
[enh] Remove uneeded comment 2021-08-14 16:46:48 +02:00
ljf (zamentur)
61bc676552
[enh] Add a comment 2021-08-14 16:41:58 +02:00
ljf (zamentur)
2e745d2806
Wording
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2021-08-14 16:38:55 +02:00
ljf (zamentur)
781bc1cf7f
Wording
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2021-08-14 16:38:21 +02:00
ljf
596d05ae81 [fix] Missing name or bad format management 2021-08-14 14:38:45 +02:00
Kay0u
f0590907c9
fix ynh_permission_has_user 2021-08-14 11:44:52 +02:00
Alexandre Aubin
996a399f94 bullseye migration: add new apg .deb signing key 2021-08-13 17:58:46 +02:00
ljf
619b26f73c [fix] tons of things 2021-08-13 13:38:06 +02:00
Alexandre Aubin
b1102ba56e
user imports: misc formating, comments 2021-08-13 01:10:59 +02:00
Alexandre Aubin
1b57435910 Merge branch 'dev' into enh-csv 2021-08-13 00:57:33 +02:00
Alexandre Aubin
5c9fd158d9 user imports: more attempts to improve semantics 2021-08-13 00:52:42 +02:00
Alexandre Aubin
b9e231241b user imports: imported -> from_import, try to improve semantics 2021-08-13 00:49:42 +02:00
Alexandre Aubin
e493b89d6a diagnosis: Zblerg, .dev is actually an actual TLD 2021-08-12 20:16:35 +02:00
Alexandre Aubin
66b036512b
README: Update shields 2021-08-12 19:50:16 +02:00
Alexandre Aubin
7f3eeafbed mdns/diagnosis: following suggestion IRL: extend the no-check mecanism for .local to .onion and other special-use TLDs 2021-08-12 19:40:36 +02:00
Alexandre Aubin
849ccb043a mdns: diagnosis expects a 'data' key instead of 'results' 2021-08-12 19:13:35 +02:00
Alexandre Aubin
05a5821c94
Merge branch 'dev' into mdns 2021-08-12 19:00:25 +02:00
Alexandre Aubin
7ca637d8f8 yaml.load -> yaml.safe_load 2021-08-12 18:54:20 +02:00
Alexandre Aubin
f1444bc36f mdns: misc fixes for ip parsing 2021-08-12 18:40:43 +02:00
tituspijean
212ea635df [mdns] Fix service user 2021-08-12 15:52:25 +00:00
Alexandre Aubin
a343490f30 We shall not expose port 5353 publicly 2021-08-12 17:22:20 +02:00
Alexandre Aubin
4d0581bef2 mdns: Misc fixes after tests on the battefield 2021-08-12 17:19:45 +02:00
Alexandre Aubin
ffc132f2c5 Configure mdns during yunohost's debian postinst init 2021-08-12 16:59:54 +02:00
Alexandre Aubin
8dd65f78c8 mdns: Propagate new service name to i18n strings 2021-08-12 15:27:19 +02:00
Alexandre Aubin
fe2e014b56 mdns: Rework mdns's conf handling such that it's generated by the regen-conf. Also drop avahi-daemon because not needed anymore. 2021-08-12 15:27:01 +02:00
José M
98d295f585 Translated using Weblate (Galician)
Currently translated at 56.2% (358 of 637 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-08-12 06:45:13 +00:00
ppr
5bf687d619 Translated using Weblate (French)
Currently translated at 99.6% (635 of 637 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-08-12 06:45:12 +00:00
Alexandre Aubin
a2a50d0e45 mdns: Remove argument parsing because we won't really need this ? :Z 2021-08-12 00:09:30 +02:00
Alexandre Aubin
9bef3105f1 Add dependency to python3-zeroconf 2021-08-11 20:13:51 +02:00
tituspijean
f53f36e332 [mdns] Fix yunohost.local broadcast 2021-08-11 17:58:50 +00:00
tituspijean
cad5c39dae [mdns] Remove logging and asyncio dependencies 2021-08-11 16:21:32 +00:00
tituspijean
3535b374ae [mdns] Always broadcast yunohost.local 2021-08-11 16:19:51 +00:00
Weblate
c5de75debb Merge branch 'dev' of https://github.com/YunoHost/yunohost into dev 2021-08-11 15:14:13 +00: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
ericgaspar
226ab63393
Update my.cnf 2021-08-09 12:31:06 +02:00
Alexandre Aubin
1e03057155
Merge pull request #1260 from YunoHost/ci-remove-stale-translated-strings-dev
[CI] Remove stale translated strings
2021-08-09 01:07:31 +02:00
yunohost-bot
2da9160962 [CI] Remove stale translated strings 2021-08-08 22:59:26 +00:00
Luca
c4762c05eb Translated using Weblate (German)
Currently translated at 100.0% (637 of 637 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-08-08 22:45:38 +00:00
Alexandre Aubin
55d5585edd {app} removed -> uninstalled 2021-08-09 00:43:03 +02:00
Alexandre Aubin
1be7984905 [fix] Funky fr translation 2021-08-09 00:32:48 +02:00
Alexandre Aubin
80c12ecf3c Update changelog for 4.2.7 2021-08-08 21:25:36 +02:00
Alexandre Aubin
e5f4f279a3 Fix gl json format... 2021-08-08 21:24:21 +02:00
Alexandre Aubin
c8d2ae0606 [fix] nginx conf: we need those conf.inc to be there during the init 2021-08-08 20:13:00 +02:00
Alexandre Aubin
3d3ea47418
Merge pull request #1282 from YunoHost/ci-format-dev
[CI] Format code
2021-08-08 19:41:18 +02:00
yunohost-bot
9f8c99a5b2 [CI] Format code 2021-08-08 17:30:19 +00:00
Alexandre Aubin
d4addb8e4c Missing import / code cleanup 2021-08-08 19:27:01 +02:00
Alexandre Aubin
ebe9f50362
Merge pull request #1262 from YunoHost-Apps/n
Upgrade n
2021-08-08 19:20:40 +02:00
Alexandre Aubin
20f319de40
Merge pull request #1281 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-08-08 19:20:12 +02:00
Éric Gaspar
4671805cd2 Translated using Weblate (French)
Currently translated at 100.0% (633 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-08-08 17:14:36 +00:00
Alexandre Aubin
eeb00567aa
Merge pull request #1275 from YunoHost/fix-lidswitch
[fix] Avoid to suspend server if we close lidswitch
2021-08-08 19:14:32 +02:00
Alexandre Aubin
eb4bc97c5a
Update data/hooks/conf_regen/01-yunohost 2021-08-08 19:14:07 +02:00
Alexandre Aubin
0d2fefacec
Merge pull request #1271 from Tagadda/enh-webadmin-allowlist
[enh] Add settings to block webadmin from outside
2021-08-08 19:11:58 +02:00
Alexandre Aubin
253ec15076
Merge pull request #1270 from YunoHost/enh-punycode
[fix] Better support for non latin domain name
2021-08-08 19:06:52 +02:00
Alexandre Aubin
79e8240fd1
Merge pull request #1266 from lelibreauquotidien/add-free-size-disk-verification
[enh] Add check for available disk space before app install/upgrade
2021-08-08 19:05:47 +02:00
Alexandre Aubin
4dae7988a2
Merge branch 'dev' into add-free-size-disk-verification 2021-08-08 19:00:50 +02:00
Alexandre Aubin
6f908e9ccf
Apply suggestions from code review 2021-08-08 19:00:03 +02:00
Alexandre Aubin
8098ff77e7
Merge pull request #1265 from YunoHost/tests-settings-get-description
monkey patch get_setting_description
2021-08-08 18:57:39 +02:00
Alexandre Aubin
922bd842fb
Merge pull request #1264 from YunoHost/add-user-in-hook-exec-again
add user in hook exec again
2021-08-08 18:56:23 +02:00
Alexandre Aubin
bd32db9a31
Merge pull request #1279 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-08-08 18:54:56 +02:00
Luca
c37f8e8514 Translated using Weblate (German)
Currently translated at 100.0% (633 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-08-08 16:53:41 +00:00
Éric Gaspar
eedb202e4c Translated using Weblate (French)
Currently translated at 100.0% (633 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-08-08 16:53:41 +00:00
José M
a59a0037ee Translated using Weblate (Galician)
Currently translated at 54.6% (346 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-08-08 16:53:41 +00:00
Éric Gaspar
46b2583b96 Translated using Weblate (French)
Currently translated at 100.0% (633 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-08-08 16:53:41 +00:00
José M
14e787a228 Translated using Weblate (Galician)
Currently translated at 52.6% (333 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-08-08 16:53:41 +00:00
Éric Gaspar
dd6fea7038 Translated using Weblate (French)
Currently translated at 100.0% (633 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-08-08 16:53:41 +00:00
Alexandre Aubin
e5732aca84
Merge pull request #1280 from YunoHost/ci-format-dev
[CI] Format code
2021-08-08 18:53:37 +02:00
yunohost-bot
1bab0bb412 [CI] Format code 2021-08-08 15:15:27 +00:00
Alexandre Aubin
ee70dfe52e
[fix] firewall.py : upnpc.getspecificportmapping expects an int, can't handle port ranges ? 2021-08-08 17:05:40 +02:00
Alexandre Aubin
d49ad748a2 Fuck the damn ':s' in locale strings 2021-08-04 18:55:00 +02:00
Alexandre Aubin
dc7fa11d09
Merge pull request #1268 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-08-04 18:52:58 +02:00
Alexandre Aubin
a6314ba70e
Apply suggestions from code review 2021-08-04 18:52:33 +02:00
José M
7de361a59d Translated using Weblate (Galician)
Currently translated at 49.6% (314 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-08-04 16:49:49 +00:00
José M
f40b37cd68 Translated using Weblate (Galician)
Currently translated at 49.4% (313 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-08-04 16:49:49 +00:00
José M
8ffe585f3f Translated using Weblate (Galician)
Currently translated at 49.2% (312 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-08-04 16:49:49 +00:00
José M
87faada3c1 Translated using Weblate (Galician)
Currently translated at 43.6% (276 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-08-04 16:49:49 +00:00
José M
a066d35ef3 Translated using Weblate (Galician)
Currently translated at 41.3% (262 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-08-04 16:49:49 +00:00
Bram
f0a9745cb2 Added translation using Weblate (Ukrainian) 2021-08-04 16:49:49 +00:00
José M
ca7d2f481f Translated using Weblate (Galician)
Currently translated at 37.4% (237 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-08-04 16:49:49 +00:00
Stylix58
38262b4b49 Translated using Weblate (French)
Currently translated at 100.0% (633 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-08-04 16:49:49 +00:00
Stylix58
13fe09deb9 Translated using Weblate (French)
Currently translated at 99.6% (631 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-08-04 16:49:49 +00:00
Christian Wehrli
f2b5862696 Translated using Weblate (French)
Currently translated at 99.6% (631 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-08-04 16:49:49 +00:00
José M
f806dce2da Translated using Weblate (Galician)
Currently translated at 35.0% (222 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-08-04 16:49:49 +00:00
José M
20833f515e Translated using Weblate (Galician)
Currently translated at 34.1% (216 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-08-04 16:49:49 +00:00
José M
bf15a6e453 Translated using Weblate (Galician)
Currently translated at 33.4% (212 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-08-04 16:49:49 +00:00
Christian Wehrli
0c0a28aadb Translated using Weblate (German)
Currently translated at 99.3% (629 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-08-04 16:49:49 +00:00
José M
a0ee1af8c7 Translated using Weblate (Galician)
Currently translated at 32.8% (208 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-08-04 16:49:49 +00:00
Christian Wehrli
cfa7255e3a Translated using Weblate (German)
Currently translated at 98.2% (622 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-08-04 16:49:49 +00:00
Alexandre Aubin
965f6ebe4d
Merge pull request #1274 from YunoHost/ci-format-dev
[CI] Format code
2021-08-04 18:49:43 +02:00
yunohost-bot
9e79181b38 [CI] Format code 2021-08-02 19:39:19 +00:00
Alexandre Aubin
9f23fae64e
Merge pull request #1278 from yalh76/composer
Composer without limit
2021-08-02 21:25:42 +02:00
yalh76
9a433a5c29 Update php 2021-08-02 21:18:02 +02:00
MercierCorentin
97bdedd723 Migrate from public suffix to public suffix list 2021-08-01 19:04:51 +02:00
MercierCorentin
91a4dc4992 Create domains test + Remove domain settings file when removing domain 2021-08-01 19:03:43 +02:00
Alexandre Aubin
6ae6ae4aa9
Merge pull request #1277 from ericgaspar/fix-broken-links
Fix broken links in Diagnosis section
2021-08-01 04:35:19 +02:00
ericgaspar
5bdeedfc55 Fix broken links 2021-07-31 18:57:16 +02:00
ljf
5fec35ccea [fix] No validate function in config panel 2021-07-30 18:05:06 +02:00
ljf
27ba82bd30 [enh] Add configpanel helpers 2021-07-30 18:05:06 +02:00
ljf
a5508b1db4 [fix] Base64 python3 change 2021-07-30 18:05:06 +02:00
ljf (zamentur)
3bc45b5672 [enh] Replace os.path.join to improve security 2021-07-30 18:05:06 +02:00
ljf
4939bbeb2e [fix] Several files with same name 2021-07-30 18:05:06 +02:00
ljf
a26a024092 [wip] Allow file upload from config-panel 2021-07-30 18:05:06 +02:00
tituspijean
7c58aa198c Remove asyncio and do not support subdomains 2021-07-27 20:39:38 +00:00
MercierCorentin
4755c1c6d5 Separate mail setting in mail_in and mail_out + fix domain settings types 2021-07-21 23:14:23 +02:00
ljf (zamentur)
40df98e8f2
[fix] Avoid to suspend server if we close lidswitch 2021-07-17 20:13:42 +02:00
cyxae
8cf9257683 fix yunohost app search fail 2021-07-16 03:30:53 +02:00
MercierCorentin
d358452a03 Bug fixe + cleaning 2021-07-15 21:07:26 +02:00
Alexandre Aubin
fab248ce8c
Fix de string format... 2021-07-14 21:59:57 +02:00
MercierCorentin
8104e48e40 Fix _load_zone_of_domain 2021-07-13 18:18:09 +02:00
MercierCorentin
8c1d1dd99a Utils/dns get_dns_zone_from_domain improve 2021-07-13 18:17:23 +02:00
MercierCorentin
d7c88cbf78 Add registrar name option to registrar catalog 2021-07-13 17:01:51 +02:00
ljf (zamentur)
a8df60da05
[fix] Bad command in yunopaste doc 2021-07-13 12:47:33 +02:00
Tagada
f3166b71b4 [enh] Add settings to block webadmin from outside 2021-07-12 18:32:12 +02:00
ljf
2239845b9d [fix] Better support for non latin domain name 2021-07-11 19:41:25 +02:00
tituspijean
92a1a12226 [mdns] Fix NonUniqueNameException
Service names have to be unique even accross different interfaces
2021-07-11 17:32:33 +00:00
tituspijean
f14dcec711 Remove mDNS setting
now we use our own setting file, not a system setting
2021-07-11 15:20:35 +00:00
tituspijean
842783f64c Accomodate mDNS feature in diagnosis 2021-07-11 15:20:14 +00:00
tituspijean
99aacd8b51 Do not rely on Moulinette, integration with Yunohost of mDNS broadcast 2021-07-11 14:24:50 +00:00
tituspijean
9e93efa895 Move mDNS script to yunomdns 2021-07-11 14:17:15 +00:00
tituspijean
654690b427 Add interfaces selection for mDNS broadcast
- System setting added
- Loop through list of interfaces
2021-07-11 14:17:15 +00:00
tituspijean
99390f2313 PoC for mDNS broadcast 2021-07-11 14:17:15 +00:00
tituspijean
7c92b44ddb Add mdns.py for mDNS broadcast 2021-07-11 14:17:15 +00:00
Alexandre Aubin
d4492afdc6
Merge pull request #1269 from Tagadda/patch-1
[fix] set .ssh folder permissions to 600
2021-07-11 16:11:46 +02:00
Tagada
cc3c9dfcd7
[fix] set .ssh folder permissions to 600
Fix YunoHost/issues#1770
2021-07-10 23:17:58 +02:00
ljf (zamentur)
1c15f644f5
[fix] Invalid HTML in yunohost_panel #1837 2021-07-10 18:18:51 +02:00
Kayou
4e4173d1b6
remove-stale-translated-strings on for the default branch 2021-07-10 02:47:11 +02:00
Alexandre Aubin
713612a689 Get rid of legacy script to reset ldap password 2021-07-09 21:50:54 +02:00
Alexandre Aubin
a2009d6a9a Propagate changes from moulinette : get rid of msettings, and prompt/display are also wrapped in a 'Moulinette' object 2021-07-09 21:49:12 +02:00
Alexandre Aubin
5e2478d309 Propagate change from the moulinette (no more msignals madness) 2021-07-09 20:43:52 +02:00
Alexandre Aubin
f933aca977
Merge pull request #1261 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-07-08 18:48:39 +02:00
Alexandre Aubin
ec736a9e11
Misc french translation tweaks 2021-07-08 18:48:26 +02:00
Christian Wehrli
1028723454 Translated using Weblate (German)
Currently translated at 98.2% (622 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-07-08 02:03:55 +00:00
Le Libre Au Quotidien
75ab54ee14 Improve disk space left verification 2021-07-07 19:36:58 +02:00
Kay0u
96e67ef145
monkey patch get_setting_description 2021-07-06 12:14:46 +02:00
Kay0u
f097f0d224
add user in hook exec again 2021-07-05 16:43:39 +02:00
ppr
df7351aeae Translated using Weblate (French)
Currently translated at 99.0% (627 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-07-04 17:21:11 +00:00
Christian Wehrli
2478f5a0ba Translated using Weblate (German)
Currently translated at 97.4% (617 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-07-04 17:21:10 +00:00
Alexandre Aubin
a274b6a8fc
fix: Remove legacy --installed / filter for app_list in actionmap 2021-07-03 18:14:24 +02:00
ericgaspar
d965052f1d
Update nodejs 2021-06-30 21:23:38 +02:00
ppr
68c2ed9ef6 Translated using Weblate (French)
Currently translated at 99.0% (627 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-06-30 15:55:04 +00:00
José M
38001a5f20 Translated using Weblate (Galician)
Currently translated at 32.7% (207 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-06-30 15:55:04 +00:00
Kayou
1c9f6ea72e
remove --log_type because it's deprecated 2021-06-30 17:54:59 +02:00
Kayou
7349b229c5
fix conf path for dedicated php server 2021-06-30 17:16:26 +02:00
Paco
31c31b1298 Lexicon: ~ 4 bugfixes 2021-06-25 10:48:33 +02:00
Kayou
271e3a26f9
fix gl locales 2021-06-22 11:22:52 +02:00
Kayou
ca884e0055
Merge pull request #1258 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-06-22 10:53:33 +02:00
Kayou
f1644ee1d2
Merge branch 'dev' into bullseye 2021-06-22 10:52:46 +02:00
José M
7792608687 Translated using Weblate (Galician)
Currently translated at 32.3% (205 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-06-22 08:51:36 +00:00
José M
c21c6ba1dc Translated using Weblate (Galician)
Currently translated at 30.8% (195 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-06-22 08:51:36 +00:00
Meta Meta
ba5ccacf8a Translated using Weblate (German)
Currently translated at 96.6% (612 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-06-22 08:51:36 +00:00
José M
f77651c34a Translated using Weblate (Galician)
Currently translated at 29.0% (184 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-06-22 08:51:36 +00:00
Kay0u
b61082b1c4
fix remove-stale-translated-strings job 2021-06-22 10:51:22 +02:00
Alexandre Aubin
780c3cb88d Fix translation format 2021-06-21 19:48:24 +02:00
Alexandre Aubin
50129f3a29
Sometimes metadata ends up being empty for some reason and ends up being loaded as None, making the "in" operator crash :| 2021-06-21 19:00:26 +02:00
Alexandre Aubin
9bec81398a Update changelog for 4.2.6.1 2021-06-19 17:19:31 +02:00
Alexandre Aubin
c3e7587766 Propagate change from the moulinette: authenticate -> _authenticate_credentials 2021-06-19 17:17:08 +02:00
Alexandre Aubin
428565f07e
Merge pull request #1254 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-06-19 15:25:58 +02:00
Paco
22c9edb7d7 fix new _load_domain_settings bug 2021-06-19 03:01:28 +02:00
José M
a031c3a5be Translated using Weblate (Galician)
Currently translated at 25.5% (162 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-06-18 21:46:22 +00:00
amirale qt
077fcfcaa0 Translated using Weblate (Esperanto)
Currently translated at 81.3% (515 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eo/
2021-06-18 21:46:21 +00:00
Christian Wehrli
90817acb84 Translated using Weblate (German)
Currently translated at 96.5% (611 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-06-18 21:46:20 +00:00
Paco
ab86d13b1e Update _load_domain_settings to load only requested domains 2021-06-18 19:14:51 +02:00
Paco
7f76f0a613 fix new locales 2021-06-18 14:46:46 +02:00
MercierCorentin
208df9601f Add domain registrar catalog cli command 2021-06-18 13:39:22 +02:00
José M
370554e861 Translated using Weblate (Galician)
Currently translated at 22.5% (143 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-06-17 16:55:25 +00:00
José M
29cce20153 Translated using Weblate (Galician)
Currently translated at 21.4% (136 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-06-16 13:30:08 +00:00
qwerty287
c347ace037 Translated using Weblate (German)
Currently translated at 96.5% (611 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-06-16 10:24:27 +00:00
ljf (zamentur)
714893079c
[fix] Remove invaluement from free dnsbl list 2021-06-16 12:24:23 +02:00
Krakinou
29db3d51ff grep full /home/ 2021-06-14 23:37:30 +02:00
Krakinou
9c23f43905 check if home exists 2021-06-14 23:28:31 +02:00
Alexandre Aubin
1fcfe734e9 Add test-ldapauth to ci 2021-06-14 18:23:55 +02:00
Alexandre Aubin
11325c95cc Merge branch 'dev' into rework-authenticator-system 2021-06-14 18:16:58 +02:00
Alexandre Aubin
52920cc52f password -> credentials, pave the way to multi-admins 2021-06-14 17:36:12 +02:00
Alexandre Aubin
075526303e Misc tweaks and fixes, port ldap auth test from moulinette 2021-06-14 17:36:12 +02:00
Alexandre Aubin
624ce3462b Merge branch 'migrate_to_bullseye' into bullseye 2021-06-12 19:05:44 +02:00
Alexandre Aubin
ebf5eb70ca Merge branch 'dev' into migrate_to_bullseye 2021-06-12 19:03:18 +02:00
Alexandre Aubin
079f67629d i18n: Remove stale strings 2021-06-12 18:38:52 +02:00
Alexandre Aubin
d240d00c9b
Merge pull request #1246 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-06-12 18:36:38 +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
José M
64be89adca Translated using Weblate (Galician)
Currently translated at 21.1% (134 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-06-12 15:48:24 +00:00
ppr
87a7dde096 Translated using Weblate (French)
Currently translated at 99.8% (632 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-06-12 15:48:24 +00:00
Éric Gaspar
2ebac698a1 Translated using Weblate (Greek)
Currently translated at 0.1% (1 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/el/
2021-06-12 15:48:24 +00:00
Alexandre Aubin
f424c0c999 CI: Use python3 for script remove stale strings 2021-06-12 17:48:12 +02:00
Krakinou
7026a8cfd5 Check home folder before creating multimedia directory 2021-06-12 16:49:05 +02:00
Alexandre Aubin
17b726f6f3 Merge branch 'dev' into migrate_to_bullseye 2021-06-12 16:40:39 +02:00
Alexandre Aubin
653d7e8127 Switch to backups from 4.2 2021-06-12 16:23:40 +02:00
Alexandre Aubin
cacfcca528 Update changelog for 4.2.6 2021-06-11 20:21:27 +02:00
Paco
b082f0314c Split registrar settings to /etc/yunohost/registrars/{dns_zone}.yml 2021-06-11 16:01:04 +02:00
Paco
c87a7b66e6 Merge branch 'dev' of https://github.com/YunoHost/yunohost into enh-dns-autoconf 2021-06-11 15:17:55 +02:00
ljf
4a22f6b390 [fix] yunohost user list --fields mail-alias 2021-06-10 19:28:49 +02:00
Alexandre Aubin
c8d4bbf82b Case-incensitive search are likely to catch too mnuch legitimate stuff resulting in redacting a shitload of stuff 2021-06-10 15:44:00 +02:00
Alexandre Aubin
3ce978aa2f
Merge pull request #1251 from YunoHost/move-some-tests
Move some tests
2021-06-10 15:24:47 +02:00
yalh76
16f1968ae7 Updating requirements
As those functions use ynh_add_config
2021-06-10 15:13:49 +02:00
ljf (zamentur)
dbe5e51ef1
[fix] Capture PASSPHRASE
See https://github.com/YunoHost-Apps/borg_ynh/issues/87
2021-06-10 14:47:13 +02:00
Kayou
6fad0b7d79
Update .gitlab/ci/test.gitlab-ci.yml 2021-06-10 13:08:05 +02:00
ljf (zamentur)
a97fce05ee [enh] Remove LDN from resolver list 2021-06-09 15:11:42 +02:00
Kay0u
cfa1e5dff8
split root-tests to a smaller tests 2021-06-08 16:59:28 +02:00
Kay0u
024ea14b27
full-tests run test_helpers too 2021-06-08 16:58:35 +02:00
Kay0u
5967096c05
add translation stage 2021-06-08 16:57:39 +02:00
Alexandre Aubin
3e9da894bf
Merge pull request #1249 from YunoHost/ci-triggered-only-for-default-branch-or-PR
ci triggered only for default branch or PR
2021-06-08 16:19:36 +02:00
Alexandre Aubin
ee7926e03b
Merge pull request #1250 from YunoHost/ci-triggered-only-on-file-changed
ci triggered only on file changed
2021-06-08 16:19:31 +02:00
Kay0u
9fdab0dd51
allow tags 2021-06-08 16:08:26 +02:00
Kay0u
cdb6973b4f
fix 2021-06-08 15:10:10 +02:00
Kay0u
4b8e8be449
ci triggered only on file changed 2021-06-08 14:01:34 +02:00
Kay0u
a8d31a5185
ci triggered only for default branch or PR 2021-06-08 13:52:20 +02:00
Kay0u
e5a03cab11
CI: include all files in .gitlab/ci/ folder 2021-06-08 13:51:16 +02:00
Alexandre Aubin
8e19eabe16
Merge pull request #1239 from tofbouf/patch-1
Apply realpath to find mounted points to unmount
2021-06-07 23:41:08 +02:00
Alexandre Aubin
b837d3dafd
Fix fail2ban rule for yunohost-api login 2021-06-07 23:36:52 +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
43ef4f4a29 Unecessary i18n strings 2021-06-07 17:44:24 +02:00
Alexandre Aubin
43d924252f Fix patch of security repo in sources.list 2021-06-07 17:41:57 +02:00
Alexandre Aubin
bd196c875b Stupid python3 issue in helpers 2021-06-07 17:01:50 +02:00
Alexandre Aubin
8a5213c88b Fix helpers test: SimpleHTTPServer was python2 only, use http.server for python3/bullseye 2021-06-07 17:01:46 +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
fd3a10489d Add i18n strings for bullseye migration 2021-06-07 16:17:58 +02:00
Alexandre Aubin
14d4cec844
Python3: fix string split in postgresql migration 2021-06-04 21:44:14 +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
923f703ea0
tools_upgrade with apps : 'apps' undefined (well, it was defined, but not with the appropriate content) 2021-06-04 18:22:32 +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
5deb9972df [i18n] Fix Translation string format 2021-06-04 17:00:28 +02:00
Alexandre Aubin
78e4635653
Merge pull request #1245 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-06-04 16:57:29 +02:00
Paco
3812dcd7af setting owned_dns_zone (Bool) → dns_zone (String) 2021-06-04 16:04:40 +02:00
MercierCorentin
06dcacbe8b Fix import issue in utils/dns 2021-06-04 09:52:10 +02:00
MercierCorentin
4b9dbd92eb Moved get_dns_zone_from_domain from utils/network to utils/dns 2021-06-04 09:42:04 +02:00
MercierCorentin
008baf1350 Add network util to get dns zone from domain name 2021-06-04 09:28:10 +02:00
José M
1d2fc443bb Translated using Weblate (Galician)
Currently translated at 18.6% (118 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-06-03 17:53:52 +00:00
Flavio Cristoforetti
f7dec1e602 Translated using Weblate (Italian)
Currently translated at 100.0% (633 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2021-06-03 17:53:52 +00:00
Christian Wehrli
66de9f3856 Translated using Weblate (German)
Currently translated at 94.1% (596 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-06-03 17:53:52 +00:00
Christian Wehrli
d7c61de857 Translated using Weblate (German)
Currently translated at 93.0% (589 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-06-03 17:53:52 +00:00
Alexandre Aubin
b942c26b29
Merge pull request #1170 from larchange/metronome_pub_sub
[metronome] activate module pubsub
2021-06-03 19:53:48 +02:00
Alexandre Aubin
03c6646a5f
Merge pull request #1164 from larchange/stanza_mention
[metronome/xmpp] deactivate stanza mention optimization / have quick notification in chat group
2021-06-03 19:53:18 +02:00
MercierCorentin
97d68f85ad Add domain registrar info 2021-06-03 15:01:40 +02:00
MercierCorentin
c66bfc8452 Fix mistake in dns_zone_hosters_list.yml name 2021-06-03 11:25:41 +02:00
MercierCorentin
2665c6235a Rename provider_list.yml into dns_zone_hosters_list.yml 2021-06-03 11:23:03 +02:00
Alexandre Aubin
85e516ccde Update changelog for 4.2.5.3 2021-06-02 20:22:53 +02:00
Alexandre Aubin
25c9fe5319
Merge pull request #1236 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-06-02 20:20:04 +02:00
José M
87dc9c48cd Translated using Weblate (Galician)
Currently translated at 16.5% (105 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-06-02 18:19:35 +00:00
José M
2226823f28 Translated using Weblate (Galician)
Currently translated at 14.3% (91 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-06-02 18:19:35 +00:00
Meta Meta
ae5e26e037 Translated using Weblate (German)
Currently translated at 92.7% (587 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-06-02 18:19:35 +00:00
Leandro Noferini
a68316be63 Translated using Weblate (Italian)
Currently translated at 100.0% (633 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2021-06-02 18:19:35 +00:00
yahoo~~
802db0cc2a Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (633 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/zh_Hans/
2021-06-02 18:19:35 +00:00
qwerty287
adcc680478 Translated using Weblate (German)
Currently translated at 91.3% (578 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-06-02 18:19:35 +00:00
José M
65ce4662d6 Translated using Weblate (Galician)
Currently translated at 3.1% (20 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-06-02 18:19:35 +00:00
Éric Gaspar
0ae605f0ee Translated using Weblate (French)
Currently translated at 100.0% (633 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-06-02 18:19:35 +00:00
yahoo~~
7455f2f40d Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (633 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/zh_Hans/
2021-06-02 18:19:35 +00:00
José M
cba3e7eef7 Translated using Weblate (Galician)
Currently translated at 2.3% (15 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-06-02 18:19:35 +00:00
Éric Gaspar
b8ce5f803c Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (633 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/zh_Hans/
2021-06-02 18:19:35 +00:00
Alexandre Aubin
4a47ce1e07
Merge pull request #1241 from YunoHost/tweak-message-systemd-action
Tweak ynh_systemd_action message : echo -n is pointless
2021-06-02 20:19:29 +02:00
Alexandre Aubin
515bf753c9
Merge pull request #1243 from YunoHost/enh-increase-attachment-limit
[enh] Accept attachment of 25MB instead of 21,8MB
2021-06-01 16:38:49 +02:00
ljf (zamentur)
f84c1f9af0
[enh] Add units in comments 2021-06-01 16:12:35 +02:00
ljf (zamentur)
c819dbb750
[enh] Accept attachment of 25MB instead of 21,8MB 2021-06-01 16:09:04 +02:00
Alexandre Aubin
da57653a01 Misc fixes after tests on the battlefield 2021-05-31 19:12:08 +02:00
Alexandre Aubin
d6baad6f45 Postgresql version is 13 in bullseye 2021-05-31 19:02:05 +02:00
Alexandre Aubin
473bff6e5d Draft for bullseye migration 2021-05-31 18:46:28 +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
Paco
3022a47560 Now using Dict.update() when loading settings
Settings not anticipated will be loaded.
They will not be removed on write.
Original behavior: not anticipated keys are removed.
2021-05-29 19:39:59 +02:00
Paco
1aeb55077f Merge branch 'enh-dns-autoconf' of https://github.com/MercierCorentin/yunohost into enh-dns-autoconf 2021-05-29 19:16:06 +02:00
Paco
00098075fd Split domains.yml into domains/{domain}.yml 2021-05-29 19:15:13 +02:00
Alexandre Aubin
ec017d7ea5
Tweak systemd action pending message : echo -n is pointless 2021-05-29 16:48:19 +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
MercierCorentin
27a976f5a5 Delete file that shouldn't be committed 2021-05-28 11:22:11 +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
tofbouf
f0ae164afe
Apply realpath to find mounted points to unmount
Bindings created by some backup methods appears with their 'real' path in /etc/mtab, that may differ from the original /home/yunohost.backup/tmp/auto_xxx that is passed to _recursive_umount().
This fix applies realpath to the 'directory' parameter passed to _recursive_umount().

Tested OK on my own instance, where backups with Borg were failing (except the first one after a reboot) because of this issue (it was unable to clean temporary dir).
2021-05-27 14:28:48 +02:00
Alexandre Aubin
d4b69527e7
Merge pull request #1235 from YunoHost-Apps/typos
Yunohost -> YunoHost
2021-05-26 16:48:56 +02:00
Alexandre Aubin
11875dd05a
Merge pull request #1237 from noo1ang8/dev
[fix] manpage generation
2021-05-26 16:47:34 +02:00
Noo Langoo
6ecb6c5ae1 [fix] manpage generation 2021-05-26 16:07:41 +02:00
Paco
ced4da4171 Run black & revert misguidedly cosmetic changes
An obscur plugin must have done this...
2021-05-25 16:27:05 +02:00
Corentin Mercier
e40f8fb861
Apply easy fixes from code review
Co-authored-by: ljf (zamentur) <zamentur@users.noreply.github.com>
2021-05-25 13:46:09 +02:00
Kay0u
f288651094
fix generate-helpers-doc job 2021-05-25 12:20:25 +02:00
Alexandre Aubin
825ed82862 Update changelog for 4.2.5.2 2021-05-24 22:11:45 +02:00
Alexandre Aubin
806b7acfb3 nscd -i won't work in chroot ... also 'groups' was a typo, actual name is 'group' 2021-05-24 22:10:56 +02:00
Alexandre Aubin
600b96782e Update changelog for 4.2.5.1 2021-05-24 19:37:53 +02:00
ericgaspar
fc02caea2e
Yunohost -> YunoHost 2021-05-24 18:02:13 +02:00
Alexandre Aubin
e0aad83ea3 Update changelog for 4.2.5 2021-05-24 17:33:31 +02:00
Alexandre Aubin
147fa64779 Inconsistency in translation 2021-05-24 17:32:16 +02:00
Alexandre Aubin
aac2d089d4
Merge pull request #1234 from YunoHost/ci-format-dev
[CI] Format code
2021-05-24 17:31:40 +02:00
yunohost-bot
a8b70bea71 [CI] Format code 2021-05-24 15:08:57 +00:00
Alexandre Aubin
6b4a787871
Merge pull request #1223 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-05-24 16:59:12 +02:00
José M
80de962c53 Translated using Weblate (Galician)
Currently translated at 0.3% (2 of 636 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-05-24 14:57:10 +00:00
Éric Gaspar
74bd304177 Translated using Weblate (French)
Currently translated at 99.8% (635 of 636 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-05-24 14:57:10 +00:00
yahoo~~
c02013be0d Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (636 of 636 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/zh_Hans/
2021-05-24 14:57:10 +00:00
Christian Wehrli
649e1bf3bf Translated using Weblate (German)
Currently translated at 91.9% (585 of 636 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-05-24 14:57:10 +00:00
Stephan Schneider
91b8ce3ea4 Translated using Weblate (German)
Currently translated at 91.9% (585 of 636 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-05-24 14:57:10 +00:00
Radek S
6883d2b8f3 Translated using Weblate (Czech)
Currently translated at 10.3% (66 of 636 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/cs/
2021-05-24 14:57:10 +00:00
Christian Wehrli
c0bc9cd700 Translated using Weblate (German)
Currently translated at 91.5% (582 of 636 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-05-24 14:57:10 +00:00
Stephan Schneider
12c08460df Translated using Weblate (German)
Currently translated at 91.5% (582 of 636 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-05-24 14:57:10 +00:00
Stephan Schneider
56de0950c8 Translated using Weblate (German)
Currently translated at 90.5% (576 of 636 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-05-24 14:57:10 +00:00
yahoo~~
1d3b19d732 Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (636 of 636 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/zh_Hans/
2021-05-24 14:57:10 +00:00
Christian Wehrli
c615b272c2 Translated using Weblate (German)
Currently translated at 89.6% (570 of 636 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-05-24 14:57:10 +00:00
yahoo~~
c9a2a9c9b7 Translated using Weblate (Chinese (Simplified))
Currently translated at 73.8% (470 of 636 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/zh_Hans/
2021-05-24 14:57:10 +00:00
yahoo~~
1bc7760ebb Translated using Weblate (Chinese (Simplified))
Currently translated at 25.3% (161 of 636 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/zh_Hans/
2021-05-24 14:57:09 +00:00
Radek S
dbaccb3c2d Translated using Weblate (Czech)
Currently translated at 2.9% (19 of 636 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/cs/
2021-05-24 14:57:09 +00:00
xaloc33
72e8fd2bed Translated using Weblate (Catalan)
Currently translated at 97.9% (623 of 636 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ca/
2021-05-24 14:57:09 +00:00
José M
9df6e84fd4 Translated using Weblate (Galician)
Currently translated at 0.1% (1 of 636 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/gl/
2021-05-24 14:57:09 +00:00
Éric Gaspar
36e2cf52ea Translated using Weblate (French)
Currently translated at 100.0% (625 of 625 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-05-24 14:57:09 +00:00
Christian Wehrli
f84bf18390 Translated using Weblate (German)
Currently translated at 87.7% (558 of 636 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-05-24 14:57:09 +00:00
Weblate
dca1f47e4f Added translation using Weblate (Galician) 2021-05-24 14:57:09 +00:00
Weblate
d7486116c3 Added translation using Weblate (Finnish) 2021-05-24 14:57:09 +00:00
Alexandre Aubin
7cceec56d8
Merge pull request #1232 from YunoHost/ci-format-dev
[CI] Format code
2021-05-24 16:57:03 +02:00
Alexandre Aubin
a143018abb
Merge pull request #1230 from YunoHost/fix-ldapinit
[fix] Be able to init slapd in a chroot
2021-05-24 16:56:20 +02:00
Alexandre Aubin
27300282da Gotta source the helper when being in the appropriate folder, because of the new 'realpath' for YNH_APP_BASEDIR 2021-05-24 16:55:35 +02:00
Alexandre Aubin
74054f721a Manually create /home/admin with cp and chown instead of relying on mkhomedir_helper, to cover running the procedure in a chroot 2021-05-24 16:05:45 +02:00
yunohost-bot
fbdbd9e039 [CI] Format code 2021-05-24 13:49:17 +00:00
Alexandre Aubin
55a3313bb9
Merge pull request #1233 from YunoHost/fix-bad-timeout-dig
[fix] Diagnosis dns query taking an awful amount of time because of timeout
2021-05-24 15:37:12 +02:00
ljf (zamentur)
75d2f71d1a
[fix] Typo in comments 2021-05-24 15:36:03 +02:00
ljf
8829e2ccce [fix] Diagnosis dns query timeout 2021-05-24 15:30:08 +02:00
ljf
170156ac22 [fix] Check ldap db integrity 2021-05-24 11:50:11 +02:00
Alexandre Aubin
cd2e425890 Fix tools upgrade tip 2021-05-24 01:30:17 +02:00
Alexandre Aubin
be492b5f7f Unused i18n string 2021-05-24 00:33:33 +02:00
Alexandre Aubin
2d45c18961 Unused imports 2021-05-24 00:32:53 +02:00
Alexandre Aubin
9574fd4777 Gotta restart slapd first to prevent admin user not being known when initializing home 2021-05-24 00:20:53 +02:00
Alexandre Aubin
c516cc8eb1 Create admin folder directly in slapd init 2021-05-24 00:03:10 +02:00
Alexandre Aubin
e8a625dba5 Unused i18n key 2021-05-23 23:52:23 +02:00
Alexandre Aubin
8aa911b6e2 Misc renaming/tweaks for more sensible naming 2021-05-23 23:49:36 +02:00
Alexandre Aubin
9dccfa721e Fix ldap init using slapadd 2021-05-23 23:07:28 +02:00
ljf
8efa4dce6e [tmp] debug on ci 2021-05-23 22:54:00 +02:00
ljf
99247e3d08 [fix] Migrations 2021-05-23 22:46:28 +02:00
Alexandre Aubin
f2d57947ea
Merge pull request #1231 from YunoHost/fix-spfbl
[fix] Remove SPFB cause this dnsbl make false positive compared to we…
2021-05-23 20:16:29 +02:00
Alexandre Aubin
6ddc4b8cea
Merge pull request #1229 from Salamandar/patch-1
Set YNH_APP_BASEDIR as an absolute path
2021-05-23 20:16:18 +02:00
Alexandre Aubin
dfb5585021
Merge pull request #1228 from YunoHost/fix-unwanted-warning
[fix] Remove warning to user (transfered in linter)
2021-05-23 20:15:54 +02:00
ljf (zamentur)
ea5a6d301f
[fix] Email on certificate renewing failed (#1227)
* [fix] Email on certificate renewing failed

* [enh] Use check_output instead of subprocess

* Update src/yunohost/certificate.py

Co-authored-by: Kayou <pierre.moltess@gmail.com>

* [mod] Use f-string for readability

Co-authored-by: Kayou <pierre.moltess@gmail.com>
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2021-05-23 20:09:48 +02:00
Paco
914bd1f20a connect domain_push_config to the in-file provider options 2021-05-21 11:32:52 +02:00
Paco
d4b4024532 fix: do not delete provider options when loading them 2021-05-21 11:31:12 +02:00
Paco
5859028022 Uncomment push_config function 2021-05-21 10:36:04 +02:00
ljf (zamentur)
4266cfec6b
[fix] Remove SPFB cause this dnsbl make false positive compared to web version ! 2021-05-21 01:09:19 +02:00
ljf
d241db4c33 [fix] Be able to init slapd in a chroot 2021-05-21 00:46:31 +02:00
MercierCorentin
51d6d19810 Add first version of set domain provider 2021-05-20 13:29:04 +02:00
MercierCorentin
bb140b2ba4 Add providers parameter list 2021-05-19 03:02:13 +02:00
Salamandar
9c21fde52b
Set YNH_APP_BASEDIR as an absolute path
Ping @alexAubin :)
2021-05-18 22:03:06 +02:00
ljf (zamentur)
d1ea646876
[fix] Remove warning to user (transfered in linter) 2021-05-18 21:43:52 +02:00
ljf (zamentur)
0f10b91fa1
[fix] nftable migrations for python3 compatibility 2021-05-13 17:25:28 +02:00
ljf
8cf151668f [fix] CI test 2021-05-11 12:08:00 +02:00
Alexandre Aubin
52e307040e Attempt to fix the 'yunohost-api' being down after yunohost upgrades ... Apparently this is due to the port being still busy, which is puzzling, but also because it tries to restart but hit the StartLimitBurst (defaults is 5 times in 10 s). Increasing RestartSec to 5 may fix the issue (at some point the port gets free and service starts) 2021-05-11 00:21:12 +02:00
Alexandre Aubin
2b0df6c35a Add requirements for new helpers 2021-05-10 19:00:53 +02:00
Alexandre Aubin
06f8c1cc88 Define ynh_node_load_path to be compatible with ynh_replace_vars 2021-05-10 19:00:53 +02:00
Alexandre Aubin
a66b9a89f3
Merge pull request #1224 from YunoHost-Apps/n-upgrade
Update nodejs
2021-05-10 17:24:12 +02:00
ericgaspar
bdd343a4b7
Update nodejs 2021-05-10 09:53:39 +02:00
Alexandre Aubin
4aaf015428
Also catch tarfile.ReadError as possible archive corruption error 2021-05-09 18:38:17 +02:00
ljf
ad73c29dad [fix] Error in import user tests 2021-05-09 01:08:43 +02:00
ljf
6e880c8219 [fix] Avoid password too small error during import operation 2021-05-09 01:02:51 +02:00
ljf (zamentur)
2ea4c2bae9
[fix] Inconsistency in translation 2021-05-09 01:00:59 +02:00
ljf
91e7e5e1c8 [fix] Python3 migration: File args with log 2021-05-08 23:58:36 +02:00
ljf
1d33f333cd [fix] Python3 migration for export user feature 2021-05-08 23:39:33 +02:00
ljf
a78e4c8eac [fix] 1 letter firstname or lastname 2021-05-08 23:31:07 +02:00
ljf
a07314e661 [fix] Download CSV from webadmin - missing commit 2021-05-08 23:31:07 +02:00
ljf
8e2f1c696b [fix] Home not created 2021-05-08 23:31:07 +02:00
ljf
59d7e2f247 [fix] LDAP Size limits 2021-05-08 23:29:52 +02:00
ljf
c7c2928579 [fix] Column list 2021-05-08 23:29:52 +02:00
ljf
57dcf45a7c [fix] User import unit test 2021-05-08 23:29:52 +02:00
ljf
fd06430e8f [fix] Import user with update mode some unit test 2021-05-08 23:28:49 +02:00
ljf
9e2f4a56f3 [enh] Add export feature and refactor user_list 2021-05-08 23:26:43 +02:00
ljf
3e047c4b94 [fix] CSV import 2021-05-08 23:19:28 +02:00
ljf
2ae0ec46f4 [wip] Import users from csv 2021-05-08 23:02:03 +02:00
ljf
fdc2337e0f [wip] Import users by csv 2021-05-08 23:02:03 +02:00
ljf
2315e811fa [wip] Import users with a CSV 2021-05-08 23:02:03 +02:00
Alexandre Aubin
b4570b81da Update changelog for 4.2.4 2021-05-08 15:06:49 +02:00
Alexandre Aubin
1757ce6012
Merge pull request #1222 from yalh76/ynh_systemd_action_stop
ynh_systemd_action: Fix case where service is already stopped
2021-05-08 14:56:58 +02:00
Alexandre Aubin
14c74c5173
Merge pull request #1220 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-05-08 14:45:36 +02:00
Flavio Cristoforetti
abd05beff2 Translated using Weblate (Italian)
Currently translated at 100.0% (636 of 636 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2021-05-08 12:44:57 +00:00
Quentí
badbfacb74 Translated using Weblate (Occitan)
Currently translated at 58.3% (371 of 636 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/oc/
2021-05-08 12:44:57 +00:00
Christian Wehrli
5b52fbeee1 Translated using Weblate (German)
Currently translated at 86.6% (551 of 636 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-05-08 12:44:57 +00:00
Alexandre Aubin
9334e1d8f7
Merge pull request #1221 from YunoHost/ci-format-dev
[CI] Format code
2021-05-08 14:44:53 +02:00
yunohost-bot
b38d5eedf7 [CI] Format code 2021-05-07 18:22:04 +00:00
Alexandre Aubin
51478d14e2 ssh_config: add conf block for sftp apps 2021-05-07 19:48:22 +02:00
yalh76
19d2901d46 Manage case of service already stopped 2021-05-06 13:05:21 +02:00
Alexandre Aubin
af567c6f85 python3: smtplib's sendmail miserably crashes with encoding issue if accent in mail body 2021-05-03 19:02:10 +02:00
Alexandre Aubin
aa0d7195cf Update changelog for 4.2.3.1 2021-04-28 18:00:17 +02:00
Alexandre Aubin
e3d6d2d603
Merge pull request #1219 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-04-28 17:58:07 +02:00
Alexandre Aubin
ee83c3f9ba Recreate the admins group which for some reason didnt exist on old setups .. 2021-04-28 17:47:22 +02:00
Paco
eeab7cd103 ~ working push_config. Tested with Gandi. To be improved! 2021-04-28 00:26:19 +02:00
MercierCorentin
ddeea564f1 Merge branch 'dev' of https://github.com/YunoHost/yunohost into enh-dns-autoconf 2021-04-27 21:54:06 +02:00
Paco
e16f14f794 fix . set operation still not working. 2021-04-27 21:42:18 +02:00
Paco
132085bceb Merge branch 'enh-dns-autoconf' of https://github.com/MercierCorentin/yunohost into enh-dns-autoconf 2021-04-27 21:04:51 +02:00
Éric Gaspar
3e408b20bc Translated using Weblate (French)
Currently translated at 99.8% (628 of 629 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-04-27 17:06:57 +00:00
Weblate
eb1fe7ceef Merge branch 'dev' of https://github.com/YunoHost/yunohost into dev 2021-04-26 21:33:45 +00:00
Alexandre Aubin
d740046a2d
Merge pull request #1218 from YunoHost/ci-format-dev
[CI] Format code
2021-04-26 17:17:17 +02:00
yunohost-bot
2443b2ee1d [CI] Format code 2021-04-26 15:10:07 +00:00
Alexandre Aubin
b3d4872538 Update changelog for 4.2.3 2021-04-26 16:36:13 +02:00
Alexandre Aubin
e5f54f3656
Merge pull request #1208 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-04-26 16:19:36 +02:00
Alexandre Aubin
1484df1bcb
Merge branch 'dev' into weblate-yunohost-core 2021-04-26 16:19:28 +02:00
Alexandre Aubin
a3e01ff5bf
Merge pull request #1216 from YunoHost/ssh_app_group
Add ssh.app, sftp.app groups to cover my_webapp and borg needing ssh access
2021-04-26 16:08:53 +02:00
Alexandre Aubin
913b02e4fc Add diagnosis section to check that app are in catalog with good quality + check for deprecated practices 2021-04-24 21:34:57 +02:00
Alexandre Aubin
db3cc62bc7 Add ssh.app, sftp.app groups to cover my_webapp and borg needing ssh access 2021-04-24 17:26:03 +02:00
Alexandre Aubin
381f789fec ynh_port_available: also check ports used by other apps in settings.yml 2021-04-23 21:00:21 +02:00
Alexandre Aubin
4ae72cc3c8
Don't suggest that we can remove multiple apps 2021-04-22 14:41:54 +02:00
Alexandre Aubin
50af0393d1 Fix a stupid issue where an app's tmp work dir would be deleted during upgrade because of the backup process 2021-04-20 20:22:42 +02:00
Laurent Peuch
dfdc058aab fix(py37-black-run): stop if there is not diff 2021-04-17 05:25:57 +02:00
Alexandre Aubin
de8ca5a8cb Update changelog for 4.2.2 2021-04-17 04:34:20 +02:00
Alexandre Aubin
567bdb9a15 Undefined MoulinetteError 2021-04-17 02:55:55 +02:00
Alexandre Aubin
43591f0cae
Merge pull request #1215 from YunoHost/ci-format-dev
[CI] Format code
2021-04-17 02:54:30 +02:00
Alexandre Aubin
298f8e877e
Merge branch 'dev' into ci-format-dev 2021-04-17 02:54:13 +02:00
Alexandre Aubin
92eb97042f ynh_remove_fpm_config: we probably want to remove the conf file *before* reloading the service... 2021-04-17 02:52:56 +02:00
Alexandre Aubin
229d0ab5cb No need to define run_before_app_restore for migration 0020, let's avoid some confusing/misleading message 2021-04-17 02:35:41 +02:00
yunohost-bot
66f2613518 [CI] Format code 2021-04-17 00:31:06 +00:00
Alexandre Aubin
27c4b33065
Merge pull request #1190 from YunoHost/remove-src_filename
Remove src filename
2021-04-17 01:57:41 +02:00
Alexandre Aubin
65759e978f
Merge pull request #1213 from YunoHost/app_manifest
Add route to fetch app manifest for custom app installs in a forge-agnostic way
2021-04-17 01:56:36 +02:00
Alexandre Aubin
931ed64e1b
Merge pull request #1214 from YunoHost/more-uniform-tmp-workdir-for-apps
More uniform tmp dir for apps, remove some weird 'admin' ownership
2021-04-17 01:56:28 +02:00
Alexandre Aubin
3f892c7f02
Merge pull request #1205 from YunoHost/backup-create-dry-run
Add a --dry-run option to backup_create to fetch an estimate of the backup size
2021-04-17 01:56:20 +02:00
Alexandre Aubin
e2ca2bf9aa
Merge pull request #606 from YunoHost/sftp_permission
Add SFTP / SSH permissions
2021-04-17 01:56:09 +02:00
Alexandre Aubin
daa0c95015 More stupid trick to dump what's wrong with php7.3-fpm during tests... 2021-04-17 01:18:23 +02:00
Alexandre Aubin
16e20fed77 Don't re-run migration if backup is from the same version (mainly to avoid weird stuff during tests) 2021-04-17 01:10:58 +02:00
Alexandre Aubin
3b35f61028 Fix DepreciationWarning 2021-04-17 01:00:28 +02:00
Alexandre Aubin
72e4a584ed Be more robust against re-running the migration 2021-04-17 00:58:12 +02:00
Alexandre Aubin
6e4f1fa42e Stupid tmp fix to try to track why the tests are failing 2021-04-17 00:49:17 +02:00
Alexandre Aubin
aae7c6e296 Unused imports 2021-04-16 22:34:39 +02:00
Alexandre Aubin
8f3a7067d9 Advertise the new SSH port setting for people that manually modified the SSH port 2021-04-16 22:20:06 +02:00
Alexandre Aubin
c53f5ac16a Report an error in the diagnosis and migration if sshd config is insecure 2021-04-16 22:05:36 +02:00
Alexandre Aubin
4a0b343e5e Fix/update migration script, handle applying the new migration during restore 2021-04-16 22:01:22 +02:00
Alexandre Aubin
eadca492f8
Merge branch 'dev' into sftp_permission 2021-04-16 17:55:54 +02:00
Alexandre Aubin
0616d63222
Try to improve the catastrophic error management in domain_add ... 2021-04-16 14:33:17 +02:00
Laurent Peuch
c92e495b21 [fix] first attempt to fix auto sending of black PR 2021-04-16 02:45:06 +02:00
Laurent Peuch
f9419c9606 [fix] correctly format .gitlab/ci/lint.gitlab-ci.yml 2021-04-16 02:39:46 +02:00
Laurent Peuch
d77866621b [mod] correctly format .gitlab-ci.yml 2021-04-16 02:36:00 +02:00
Alexandre Aubin
e1f7a5fa4c
Fix help string 2021-04-16 02:34:52 +02:00
Kayou
9d64e850b8
Update src/yunohost/app.py
Co-authored-by: ljf (zamentur) <zamentur@users.noreply.github.com>
2021-04-16 01:03:34 +02:00
Alexandre Aubin
be6c39bf8c No need for Github CSP rule in the webadmin anymore 2021-04-16 00:45:54 +02:00
Alexandre Aubin
9adf5e522c Add app_manifest to fetch manifest of an app from the catalog or using url 2021-04-16 00:45:54 +02:00
Alexandre Aubin
a373047756 More uniform tmp dir for apps, remove some weird 'admin' ownership 2021-04-15 22:27:05 +02:00
Alexandre Aubin
4726c48ad5
Merge pull request #1211 from YunoHost/kill-floc
[enh] add header to disallow FLoC
2021-04-15 20:37:39 +02:00
ljf (zamentur)
f23982b460
[fix] Remove zip from /etc/yunohost/apps/*/scripts 2021-04-15 19:33:12 +02:00
Laurent Peuch
a0b32d5f1b [enh] add header to disallow FLoC
https://diaspodon.fr/@etienne/106070042112522839
2021-04-15 17:56:50 +02:00
Alexandre Aubin
02a30125b5 service foobar action -> systemctl action foobar 2021-04-15 14:31:33 +02:00
Alexandre Aubin
c3754dd6fa reload fail2ban instead of restart ... restart is doing some funky stuff ... 2021-04-15 14:27:40 +02:00
Alexandre Aubin
95999feafb Also reload firewall when changing ssh port 2021-04-15 12:39:33 +02:00
Alexandre Aubin
37c0825eed Also propagate ssh port on fail2ban config 2021-04-15 12:22:21 +02:00
Alexandre Aubin
fc818cc6a7
Merge pull request #1209 from YunoHost/add-ssh-port-setting
add ssh port setting
2021-04-15 00:57:07 +02:00
Alexandre Aubin
fd58541cc9
Merge pull request #1210 from YunoHost/fix-app-remove
Fix tests
2021-04-15 00:55:24 +02:00
Alexandre Aubin
23e816deaa Only filter stuff if a filter is set... 2021-04-14 23:58:22 +02:00
Alexandre Aubin
7989271e74 user_permission_list: also support filtering for apps not installed or system perms 2021-04-14 20:17:06 +02:00
Kay0u
8b360ac2e6
getargspec is deprecated in Python3 2021-04-13 18:18:15 +02:00
Kay0u
42d671b7c0
fix pytest warnings 2021-04-13 18:17:57 +02:00
Kay0u
ab834f1885
fix clean in test_settings 2021-04-13 16:43:53 +02:00
Kay0u
6745fce647
fix tests 2021-04-13 16:28:32 +02:00
Alexandre Aubin
d1f0064b10
mysql regenconf: Get rid of confusing 'Access denied' message 2021-04-13 14:18:49 +02:00
Kay0u
4fa6a4cde2
trying to fix tests 2021-04-13 14:05:16 +02:00
Kay0u
f6687e69f8
user_permission_list: use the new apps arg when we can 2021-04-13 13:22:07 +02:00
Kay0u
bd72a59e1f
remove app settings after removing the app permissions 2021-04-13 13:21:27 +02:00
Laurent Peuch
b33e7c16ac [mod] no space before ! in english 2021-04-13 12:37:55 +02:00
Alexandre Aubin
bc0fd07680
Add description for new SSH port setting 2021-04-12 19:27:32 +02:00
Kay0u
ee31969be7
add ssh port setting 2021-04-12 18:07:36 +02:00
Alexandre Aubin
1468073f79 Fix user_group_add/remove description 2021-04-12 17:56:40 +02:00
Alexandre Aubin
ce64a6380a
Merge pull request #1192 from YunoHost/uniformize-actionmap-api
Uniformize API routes
2021-04-12 17:51:17 +02:00
Alexandre Aubin
1fa12fa412 Merge tag 'debian/4.2.1.1' into dev 2021-04-12 16:44:08 +02:00
Kay0u
ce9f6b3dc3
use python3 to generate the helper doc 2021-04-12 10:57:14 +02:00
Alexandre Aubin
2b8ffdfe66 Update changelog for 4.2.1.1 2021-04-11 20:24:59 +02:00
Alexandre Aubin
575fab8a19 nginx conf: CSP rules for admin was blocking small images used for checkboxes, radio, pacman in the new webadmin 2021-04-11 20:15:02 +02:00
Alexandre Aubin
6fd5f7e864 firewall_list: Don't miserably crash when trying to sort port range ("12300:12400", ain't an int) 2021-04-11 20:15:02 +02:00
Alexandre Aubin
008e9f1dc5 Missing raw_msg=True 2021-04-11 20:15:02 +02:00
Alexandre Aubin
f878d61f3a log.py: don't inject log_ref if the operation didnt start yet 2021-04-11 20:15:02 +02:00
Alexandre Aubin
357c151ce2 services.py, python3: missing decode() in subprocess output fetch 2021-04-11 20:15:02 +02:00
ppr
265e314119 Translated using Weblate (French)
Currently translated at 99.2% (624 of 629 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-04-11 16:41:05 +00:00
Alexandre Aubin
aabe5f19a9 Remove stale strings (using the util available in tests/) 2021-04-11 18:40:53 +02:00
Christian Wehrli
e1d7a7b3f9 Translated using Weblate (German)
Currently translated at 87.7% (551 of 628 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-04-11 16:28:40 +00:00
Alexandre Aubin
67d5ab15fc
Merge pull request #1199 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-04-11 18:28:37 +02:00
lapineige
48c8dc7dea
Diagnosis command : use "--human-readable" (#1207)
* Diagnosis command : use "--human-readable"

As recommended in the documentation https://yunohost.org/fr/install/hardware:vps_debian

* Diagnosis command : use "--human-readable"

* Propagate changes to all locales

Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2021-04-11 18:25:45 +02:00
Alexandre Aubin
442a1cf96d Return a dict structure to the API for ValidationErrors, for easier error identification/interface 2021-04-10 15:24:22 +02:00
Alexandre Aubin
64c6d7aa64 Merge tag 'debian/4.2.1' into dev 2021-04-10 01:33:33 +02:00
Alexandre Aubin
50bd61fe51 Update changelog for 4.2.1 2021-04-10 01:09:20 +02:00
Alexandre Aubin
fc26837aa7 security: Enforce permissions on /home/ so that they can't sneak in each other home 2021-04-10 01:07:36 +02:00
Alexandre Aubin
aefc100ab4 security: Enforce some permission for regular yunohost users 2021-04-10 01:07:34 +02:00
Weblate
1c675cbb74 Merge branch 'dev' of https://github.com/YunoHost/yunohost into dev 2021-04-09 19:14:53 +00:00
Alexandre Aubin
e6312db3c0 perf: add optional 'apps' argument to user_permission_list to speed up user_info / user_list 2021-04-09 21:07:35 +02:00
Alexandre Aubin
e3b90e6bdc backup: Reorder hook for better readability in webadmin 2021-04-09 20:38:49 +02:00
Alexandre Aubin
09069628fe
Merge pull request #1185 from YunoHost/less-backup-madness
Don't backup stuff that ain't relevant for backup
2021-04-09 20:04:01 +02:00
Alexandre Aubin
81ba89483d backuprestore: Fix binds readonly test 2021-04-09 19:39:52 +02:00
Alexandre Aubin
00b6af5dcb
Merge branch 'dev' into uniformize-actionmap-api 2021-04-09 18:39:45 +02:00
Alexandre Aubin
3a37262deb
Merge pull request #1159 from grenagit/enh-1725-support-smtps-relay
[enh] Support SMTPS Relay
2021-04-09 18:37:53 +02:00
Alexandre Aubin
f4546b3460
Merge pull request #1197 from YunoHost-Apps/upgrade-n
Update nodejs
2021-04-09 18:36:38 +02:00
Alexandre Aubin
f94a5f95a3
nginx conf: CSP rules for admin was blocking small images used for checkboxes, radio, pacman in the new webadmin 2021-04-09 00:00:40 +02:00
Alexandre Aubin
278a95ab0e
firewall_list: Don't miserably crash when trying to sort port range ("12300:12400", ain't an int) 2021-04-08 23:56:16 +02:00
Alexandre Aubin
0af05ea312 Missing raw_msg=True 2021-04-08 15:35:09 +02:00
Alexandre Aubin
05a374d8d5
Merge pull request #1206 from YunoHost/fix-remove-passphrase-from-log
[fix] Remove passphrase keyword from logs
2021-04-07 16:31:42 +02:00
ljf (zamentur)
6779cc272d
[fix] Remove passphrase keyword from logs 2021-04-07 15:21:10 +02:00
Alexandre Aubin
5b754aecc1 Fix moar tests 2021-04-06 03:01:32 +02:00
Alexandre Aubin
2388a16fd2 Fix tests 2021-04-06 02:37:07 +02:00
Alexandre Aubin
82784dc45d Merge firewall, dkim and dyndns backup hook into ynh_settings 2021-04-05 21:39:49 +02:00
Alexandre Aubin
c089d1bdcd No need for random service reload/restart, that should be handled by the auto-regenconf of the core after the restore 2021-04-05 21:11:26 +02:00
Alexandre Aubin
93ce917e5e Backup hooks don't need to be executable 2021-04-05 21:11:26 +02:00
Alexandre Aubin
95ed4d67a0 Also backup Yunohost settings 2021-04-05 21:11:26 +02:00
Alexandre Aubin
9f599fee4c Re-add the certificate backup/restore hook ... 2021-04-05 21:11:26 +02:00
Alexandre Aubin
956e860ff7 Simplify ldap restore hook 2021-04-05 21:11:26 +02:00
Alexandre Aubin
8c351ad176 Fix data_xmpp backup/restore hook 2021-04-05 21:11:26 +02:00
Alexandre Aubin
5884d51b69 Typo 2021-04-05 21:11:26 +02:00
Alexandre Aubin
2be90e35eb Backup ssowat/conf.json.persistent 2021-04-05 21:11:26 +02:00
Alexandre Aubin
7e4536752e Backup xmpp data 2021-04-05 21:11:26 +02:00
Alexandre Aubin
ce2c608253 Do not backup ssh, ssowat, certs, nginx, xmpp confs 2021-04-05 21:11:26 +02:00
Alexandre Aubin
d750b77e46 Add backup/restore hooks for manually modified files 2021-04-05 21:11:26 +02:00
Alexandre Aubin
23ceedf5d1
Merge pull request #1191 from YunoHost/improve-restore-error-management
Improve error management for app restore, similar to what's done in app install
2021-04-05 20:57:34 +02:00
Alexandre Aubin
e5b4d2aa73 Trick to add all the apps/ folder such that they are correctly attributed to the corresponding app when we compute the size_details later 2021-04-05 20:46:33 +02:00
Alexandre Aubin
93166741ee Simplify indentation 2021-04-05 20:45:51 +02:00
Alexandre Aubin
28268c58eb Add a --dry-run option to backup_create that returns the size of items that will be backed up 2021-04-05 20:45:28 +02:00
Scapharnaum
3f3b2f8a57 Translated using Weblate (German)
Currently translated at 87.3% (551 of 631 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-04-05 16:48:24 +00:00
Éric Gaspar
7837b3d108 Translated using Weblate (French)
Currently translated at 99.8% (629 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-04-05 16:48:24 +00:00
Éric Gaspar
f027d9129a Translated using Weblate (French)
Currently translated at 99.8% (629 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-04-05 16:48:24 +00:00
Daniel
5ce4694f9b Translated using Weblate (German)
Currently translated at 86.6% (546 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-04-05 16:48:24 +00:00
Alexandre Aubin
81c43747a0 Increase delay for reloading services + display actual status in error message (seeing some weird php7.3-fpm stuff during some specific test...) 2021-04-05 18:48:05 +02:00
Alexandre Aubin
fe9f0731e8 Add logging to backup_create 2021-04-05 18:39:26 +02:00
Alexandre Aubin
86f22d1b46 Fix warning when there's no patches folder 2021-04-05 18:39:08 +02:00
Alexandre Aubin
42f8c9dcc1 Fix ynh_requirement parsing 2021-04-05 18:35:42 +02:00
Alexandre Aubin
4607d57512
Merge pull request #1188 from YunoHost/sane-default-permission-for-files
Sane default permissions for files added using ynh_add_config and ynh_setup_source
2021-04-05 18:09:58 +02:00
Alexandre Aubin
2b2527fb72 Fix test for failed restore 2021-04-05 17:15:34 +02:00
Alexandre Aubin
5db621bd19
Merge pull request #1203 from YunoHost/smarter-migration-during-restore
Drop support for backups from prior 3.8, introduce hooks in migrations to apply migrations during restore
2021-04-05 16:52:26 +02:00
Alexandre Aubin
0c4e4c67c5 Fix locale strings 2021-04-05 16:44:10 +02:00
Alexandre Aubin
6d3fcd6cc3 Improve error management for app restore, similar to what's done in app install 2021-04-05 16:31:09 +02:00
Alexandre Aubin
80e2e0da71 Misc test fixes for corrupted archive test though not sure what doing .. 2021-04-03 01:28:52 +02:00
Alexandre Aubin
037a2a66a4 Not sure what I'm doing but for some reason can't remove yolo.test anymore because it's the main domain during tests idk 2021-04-03 00:30:44 +02:00
Alexandre Aubin
72eb0b2e49 We don't use the info.json during restore from 3.8 anymore 2021-04-02 23:02:08 +02:00
Alexandre Aubin
dc10e88b1e Unused imports 2021-04-02 22:36:34 +02:00
Alexandre Aubin
2c1923a142 Merge remote-tracking branch 'origin/dev' into smarter-migration-during-restore 2021-04-02 22:20:42 +02:00
Alexandre Aubin
08fbfa2e39 Add new ssowat panel overlay setting description 2021-04-02 17:18:39 +02:00
Alexandre Aubin
8e70484c63 Stale strings 2021-04-02 04:56:03 +02:00
Alexandre Aubin
93813e773f Typo 2021-04-02 04:53:37 +02:00
Alexandre Aubin
c552b4f006 Be able to define directly in migrations hooks that are called when restoring system/apps prior to the introduction of the migration 2021-04-02 04:28:52 +02:00
Alexandre Aubin
df49cc83d5 Drop legacy stuff for backups from before the 3.7 era 2021-04-02 03:55:20 +02:00
Alexandre Aubin
a8656c835c Use backups from 3.8 instead of old 2.4 archives for system/apps restore tests 2021-04-02 03:48:25 +02:00
Alexandre Aubin
8b8a8fb3c7 Drop support for restoring backup archives from prior to 3.8 2021-04-02 03:13:53 +02:00
cyxae
30421954a4
Add an option to disable the 'YunoHost' panel overlay in web apps (#1071)
* Add an option to disable the 'YunoHost' panel overlay in apps

* set default value for overlay as true

* Add a hook to auto-update nginx conf + fix deprecated 'service regen-conf'

* Change name of setting to ssowat.panel_overlay.enabled

* [fix] Duplicate function

* Quote var, just in case the var is empty for some reason

Co-authored-by: ljf (zamentur) <zamentur@users.noreply.github.com>
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2021-04-02 02:21:29 +02:00
Alexandre Aubin
a03b62245d
Merge pull request #1184 from YunoHost/cron-legacy
Don't backup crons + manage crons from the regenconf
2021-04-02 00:27:35 +02:00
Alexandre Aubin
378cf904c8
Merge branch 'dev' into cron-legacy 2021-04-02 00:27:19 +02:00
Alexandre Aubin
37db93b49a Typo 2021-04-01 23:27:56 +02:00
Alexandre Aubin
40b22617d3 Unused mports 2021-04-01 23:14:43 +02:00
Alexandre Aubin
00ec7b2fc4 Support having .tar / .tar.gz in the archive name arg of backup_info/restore 2021-04-01 22:58:04 +02:00
Alexandre Aubin
5c2329c5b6 Refuse to add ssh/sftp permissions to all users 2021-04-01 20:12:31 +02:00
Alexandre Aubin
22e397f71c Fix oopsies 2021-04-01 20:12:17 +02:00
Alexandre Aubin
d5ecdca896
Merge pull request #1201 from YunoHost/helpers-tests
Add quick-and-dirty test system for helpers
2021-04-01 19:53:38 +02:00
Alexandre Aubin
83d03dc074 Simplify migration / be more explicit about what new rdn to inject 2021-04-01 19:37:39 +02:00
Alexandre Aubin
ce946cc0b0 Introduce a decorator to automatically backup/rollback ldap db during ldap-related migrations 2021-04-01 19:12:19 +02:00
Alexandre Aubin
4acfbdeade Fix oopsies, fix and add test for ynh_setup_source with patch 2021-04-01 18:26:18 +02:00
Alexandre Aubin
d11d26bdb4 Generate/server a dummy.tar.gz locally instead of hardcoding an external url 2021-04-01 18:02:23 +02:00
Alexandre Aubin
d76f8d7969 explaaaaain 2021-04-01 18:02:23 +02:00
Alexandre Aubin
d782fe331d Return exit code 1 when at least one test failed 2021-04-01 18:02:23 +02:00
Alexandre Aubin
4d6fcb1b8f mv helpers.tests test_helpers.d, better naming consistency 2021-04-01 18:02:23 +02:00
Alexandre Aubin
875fead9b5 Add test-helpers in gitlab CI pipeline 2021-04-01 18:02:23 +02:00
Alexandre Aubin
94beb52b08 Rename to .sh for syntax highlighting, add /bin/bash shebang 2021-04-01 18:02:23 +02:00
Alexandre Aubin
0ac57e5305 Add drafty test system for helpers 2021-04-01 18:02:23 +02:00
Alexandre Aubin
cd1f64383b log.py: don't inject log_ref if the operation didnt start yet 2021-04-01 15:55:46 +02:00
Alexandre Aubin
4f44df388e services.py, python3: missing decode() in subprocess output fetch 2021-04-01 15:51:49 +02:00
Alexandre Aubin
45b55d1050
Add --keep to ynh_setup_source to keep files that may be overwritten during upgrade (#1200) 2021-03-31 17:41:20 +02:00
MercierCorentin
afe62877d3 Domain settings: transform cli to be like app settings 2021-03-29 14:46:03 +02:00
Paco
4a92f97b4e Merge branch 'dev' of https://github.com/YunoHost/yunohost into enh-dns-autoconf 2021-03-25 21:11:33 +01:00
Paco
1dcf9ab647 Merge branch 'enh-dns-autoconf' of https://github.com/MercierCorentin/yunohost into enh-dns-autoconf 2021-03-25 21:08:47 +01:00
Paco
503a5ed6d2 Add yunohost domain config list command 2021-03-25 21:08:08 +01:00
MercierCorentin
223d260391 Merge branch 'enh-dns-autoconf' of https://github.com/MercierCorentin/yunohost into enh-dns-autoconf 2021-03-25 20:52:18 +01:00
MercierCorentin
b367505157 XMPP configuration for subdomains (i.e. not owned zone dns) 2021-03-25 20:52:14 +01:00
Alexandre Aubin
b40f21458f ssh config: indent, misc readabilty improvements 2021-03-25 16:19:40 +01:00
Alexandre Aubin
f158a4da9e Use YunohostValidationError instead of raw Exceptions 2021-03-25 16:10:00 +01:00
Alexandre Aubin
514112a538 Misc permission tweak, set everything as owned by root by default 2021-03-25 16:03:18 +01:00
Alexandre Aubin
fb1fddd07e To be consistent with migration 0020, all new users should have /bin/bash as terminal, also we probably don't care about fetching loginShell anymore 2021-03-25 15:03:53 +01:00
Alexandre Aubin
f0c4498c80
Merge branch 'dev' into sftp_permission 2021-03-25 14:42:30 +01:00
Kayou
8751dcdd1b
Update changelog for 4.2 (#1195)
* Update changelog for 4.2

* changelog: Improving error semantic

* Update changelog

Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2021-03-25 01:05:41 +01:00
Alexandre Aubin
6f7a8af2de
Merge pull request #1198 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-03-25 01:00:02 +01:00
Flavio Cristoforetti
c2af36a652 Translated using Weblate (Italian)
Currently translated at 100.0% (630 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2021-03-24 19:33:41 +00:00
Daniel
44637237ce Translated using Weblate (German)
Currently translated at 86.5% (545 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-03-24 19:33:40 +00:00
Alexandre Aubin
e27ac6ff2c Rely on YNH_APP_BASEDIR to check the sources/ dir 2021-03-24 20:28:42 +01:00
Alexandre Aubin
d98ec6ce35 Download ynh_setup_source stuff to /var/cache/yunohost/download 2021-03-24 20:28:42 +01:00
Alexandre Aubin
87b0b10e0e Enforce permissions on /var/cache/yunohost 2021-03-24 20:28:42 +01:00
ericgaspar
3a7cf0a1b3
Update nodejs 2021-03-24 18:25:00 +01:00
Alexandre Aubin
0a2633eca0
Merge pull request #1193 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-03-23 04:00:49 +01:00
Krzysztof Nowakowski
ea5971e355 Translated using Weblate (Polish)
Currently translated at 1.5% (10 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pl/
2021-03-22 23:34:11 +00:00
Quentí
cf884b1149 Translated using Weblate (Occitan)
Currently translated at 57.6% (363 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/oc/
2021-03-22 23:34:11 +00:00
Christian Wehrli
c45d1010d6 Translated using Weblate (German)
Currently translated at 85.3% (538 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-03-22 23:34:11 +00:00
Alexandre Aubin
6725a7f2bf
Merge pull request #1187 from YunoHost/improve-error-semantic
Improve error semantic
2021-03-23 00:34:06 +01:00
Alexandre Aubin
a5fe21fd38 Zblerg multiple forgotten import / typo >_> 2021-03-23 00:32:44 +01:00
axolotle
ff772cd294 split '/diagnosis/ignore' and '/diagnosis/ungignore' 2021-03-22 23:41:06 +01:00
axolotle
113d9f5a8b PUT for '/apps/<app>/config' & 'appscatalog' to 'apps/catalog' 2021-03-22 23:22:56 +01:00
axolotle
63f9048504 add PUT '/migration' to avoid specifying the list of the migrations to run 2021-03-22 22:31:18 +01:00
Alexandre Aubin
e63ca06d37 Missing import 2021-03-22 21:58:15 +01:00
Alexandre Aubin
ab454ff62f Missing decode() for Popen output in certificate.py 2021-03-22 21:40:33 +01:00
Alexandre Aubin
33fab1c99f Be more robust against non-int values for level in app catalog (e.g. for apps 'inprogress' for which level is '?') 2021-03-22 20:45:03 +01:00
axolotle
20553de539 update firewall port update routes 2021-03-22 20:29:17 +01:00
Alexandre Aubin
11c50c0187 Fix log_ref injection 2021-03-22 18:49:25 +01:00
axolotle
27eefcb286 reexpose '/hooks/<name>' since the web-admin needs it for backups 2021-03-22 18:43:21 +01:00
axolotle
473c5762c6 replace api action group.update with group.add and group.remove 2021-03-22 18:41:18 +01:00
Alexandre Aubin
09d306924a Fix minor issue with main_space diagnosis: duplicated error/warning, missing / partition when it's on a /dev/loop 2021-03-22 17:46:32 +01:00
Alexandre Aubin
9e032b04bc Fix i18n key tests 2021-03-22 16:49:41 +01:00
axolotle
da3d7db3e6 use PUT for domain cert modifications 2021-03-22 16:25:00 +01:00
axolotle
5f994bba98 separate update, add and remove permission on exposed API 2021-03-22 16:24:23 +01:00
Paco
4876860b47 Merge branch 'enh-dns-autoconf' of https://github.com/MercierCorentin/yunohost into enh-dns-autoconf 2021-03-22 01:58:41 +01:00
Paco
fa818a476a Change API naming etc. Expect a new change to come! 2021-03-22 01:57:20 +01:00
MercierCorentin
3b6599ff0d Check if DNS zone is owned by user 2021-03-22 00:00:03 +01:00
Paco
f295dffd00 Fix old_domains not assigned 2021-03-21 22:27:57 +01:00
Alexandre Aubin
1fb9ddd42a Tweak tools update/upgrade to have a single 'target' arg for simpler routing 2021-03-19 17:45:37 +01:00
Alexandre Aubin
82d5be6802 Uniformize API routes 2021-03-19 16:15:16 +01:00
Paco
fa5b3198cc Add TODOs for locales 2021-03-17 21:26:45 +01:00
Paco
cc3c073dc5 Saving domain settings in /etc/yunohost/domains.yml 2021-03-17 21:24:13 +01:00
Alexandre Aubin
f0827451ca Fix translation inconsistency 2021-03-17 16:37:07 +01:00
Alexandre Aubin
f84b6535f3
Merge pull request #1167 from Salamandar/fix_helper_doc
helper doc : Fix all doc (mostly)
2021-03-17 15:41:26 +01:00
Alexandre Aubin
2aa1898e4a
Merge pull request #1174 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-03-17 15:39:45 +01:00
Christian Wehrli
ad4ca718f7 Translated using Weblate (German)
Currently translated at 84.7% (534 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-03-17 14:32:48 +00:00
Radek S
18cc2ecbc8 Translated using Weblate (Czech)
Currently translated at 1.7% (11 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/cs/
2021-03-17 14:32:48 +00:00
Christian Wehrli
0b7e040ee2 Translated using Weblate (German)
Currently translated at 84.6% (533 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-03-17 14:32:48 +00:00
Christian Wehrli
4fadd4b68f Translated using Weblate (German)
Currently translated at 84.2% (531 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-03-17 14:32:48 +00:00
Scapharnaum
acd4d223cb Translated using Weblate (German)
Currently translated at 83.6% (527 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-03-17 14:32:48 +00:00
Scapharnaum
74a9512d8e Translated using Weblate (German)
Currently translated at 81.1% (511 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-03-17 14:32:48 +00:00
Christian Wehrli
56321d41c4 Translated using Weblate (German)
Currently translated at 81.1% (511 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-03-17 14:32:48 +00:00
Quentí
394fd90383 Translated using Weblate (Occitan)
Currently translated at 53.9% (340 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/oc/
2021-03-17 14:32:48 +00:00
Christian Wehrli
c2506f362c Translated using Weblate (German)
Currently translated at 80.9% (510 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-03-17 14:32:48 +00:00
Kay0u
4a19a60b44 dirty patch to wait for services to finish reloading 2021-03-17 15:32:19 +01:00
Kay0u
3c3e8711ed
fix _patch_legacy_helpers 2021-03-16 16:28:12 +01:00
Kay0u
2b947830aa
remove src_filename 2021-03-16 16:27:51 +01:00
Kay0u
dc6033c399
python3 way to get a list of dict keys 2021-03-15 14:10:13 +01:00
ljf (zamentur)
7a947dbce1
[fix] True instead of description (#1189) 2021-03-15 00:03:31 +01:00
Alexandre Aubin
07f8d6d7af
ynh_clean_check_starting: Let's not trigger an error when vars aren't set 2021-03-14 18:47:33 +01:00
Alexandre Aubin
721f6f265e
Typo ... 2021-03-14 18:45:36 +01:00
Alexandre Aubin
ac26925b91 Sane default permissions for files added using ynh_add_config and ynh_setup_source 2021-03-13 00:18:17 +01:00
Alexandre Aubin
ce04570bfd helpers: Simplify manifest path / parsing 2021-03-12 23:18:25 +01:00
Alexandre Aubin
1a0ef94109 Define HTTP codes for Yunohost Errors 2021-03-12 04:24:27 +01:00
Alexandre Aubin
37f0c30ddc Inject log_ref into all is_unit_operation failures 2021-03-11 03:57:15 +01:00
Alexandre Aubin
61feb39c96 Merge branch 'hotfixes-4.1.7.4' into dev 2021-03-11 03:10:54 +01:00
Alexandre Aubin
4a7129e69b Update changelog for 4.1.7.4 2021-03-11 03:08:41 +01:00
Alexandre Aubin
41b5a12393 Enforce permissions for /home/yunohost.backup and .conf 2021-03-11 03:07:16 +01:00
Alexandre Aubin
01ccab5252 Add semantic of YunohostValidationError for all exceptions which are related to validating stuff 2021-03-11 01:39:52 +01:00
Alexandre Aubin
727e135c72 Unused import 2021-03-10 19:39:45 +01:00
Alexandre Aubin
6f3df383d2 Don't backup/restore crons >_> 2021-03-10 19:06:26 +01:00
Alexandre Aubin
e639c8cd5a Move applist refresh cron + lets encrypt renewal cron to regen conf 2021-03-10 19:00:24 +01:00
Paco
8dd5859a46 Integration of domain settings loading/generation with domains DNS entries generation 2021-03-09 23:59:42 +01:00
Paco
01fe61c15b Merge branch 'enh-dns-autoconf' of https://github.com/MercierCorentin/yunohost into enh-dns-autoconf 2021-03-09 23:54:03 +01:00
Paco
1a4d02c9bf Add loading of domain settings. Generate defaults for missing entries (and backward-compability) 2021-03-09 23:53:50 +01:00
MercierCorentin
c111b9c6c2 First implementation of configurable dns conf generation 2021-03-09 22:57:46 +01:00
Paco
9a8cbbd883 sample _get_domain_and_subdomains_settings() 2021-03-09 21:34:30 +01:00
Alexandre Aubin
78cc445bd2 Typo 2021-03-09 06:00:04 +01:00
Alexandre Aubin
50a42e1d87 Rework the authenticator system, split the LDAP stuff into auth part and utils part 2021-03-09 05:45:24 +01:00
Alexandre Aubin
b85d959d7e ynh_install_n: No need to mkdir ../conf 2021-03-08 20:56:32 +01:00
Éric Gaspar
ad602ee0a1
Upgrade n (#1178)
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2021-03-08 20:55:45 +01:00
Alexandre Aubin
db93b82b23 ynh_setup_source: add a check that we could actually parse SOURCE_URL 2021-03-08 18:41:54 +01:00
Alexandre Aubin
9e7eda681b ynh_install_n: put the source descriptor file in the appropriate dir during backup/restore 2021-03-08 18:37:53 +01:00
Kay0u
5539751ca4
fix others_var 2021-03-08 17:38:10 +01:00
72da2ad8e3 helper doc fixes : utils 2021-03-03 11:17:59 +01:00
3699648265 helper doc fixes : user 2021-03-03 11:17:59 +01:00
f0d7eba64a helper doc fixes : systemd 2021-03-03 11:17:59 +01:00
d7fc5d31ec helper doc fixes : string 2021-03-03 11:17:59 +01:00
305a70a8d5 helper doc fixes : setting 2021-03-03 11:17:59 +01:00
dc27fd3ec3 helper doc fixes : postgresql 2021-03-03 11:17:59 +01:00
706dbe723e helper doc fixes : php 2021-03-03 11:17:59 +01:00
3844b48962 helper doc fixes : nodejs 2021-03-03 11:17:59 +01:00
52cc5949da helper doc fixes : nginx 2021-03-03 11:17:59 +01:00
94097d1153 helper doc fixes : network 2021-03-03 11:17:59 +01:00
75539472ea helper doc fixes : mysql 2021-03-03 11:17:59 +01:00
27caab7234 helper doc fixes : multimedia 2021-03-03 11:17:59 +01:00
0dde41fe4a helper doc fixes : logrotate 2021-03-03 11:17:59 +01:00
33f8337f11 helper doc fixes : logging 2021-03-03 11:17:59 +01:00
966cd2ff16 helper doc fixes : hardware 2021-03-03 11:17:59 +01:00
8f294916d9 helper doc fixes : fail2ban 2021-03-03 11:06:54 +01:00
d69f031d8f helper doc fixes : backup 2021-03-03 11:06:54 +01:00
e6f3adfa08 helper doc fixes : apt 2021-03-03 11:06:51 +01:00
4603697ac5 helper doc fixes : permission 2021-03-03 11:06:43 +01:00
Alexandre Aubin
9b13c95f77 Re-add --others_var in fail2ban and systemd helpers for backward compatibility... 2021-03-02 19:54:24 +01:00
Alexandre Aubin
7ba08eb550 Merge branch 'hotfixes-4.1.7.3' into dev 2021-03-02 02:14:35 +01:00
Alexandre Aubin
234ae15d77 Update changelog for 4.1.7.3 2021-03-02 02:07:58 +01:00
Alexandre Aubin
bd8644a651 Translation typo.. 2021-03-02 02:03:26 +01:00
Alexandre Aubin
6ce02270ae Gotta escape \ during ynh_replace_vars 2021-03-02 02:02:10 +01:00
Kay0u
05969184fe fix ynh_systemd_action in case of service fails 2021-03-02 02:02:10 +01:00
Alexandre Aubin
d12f403fe3 Fix permission helper doc format 2021-03-02 02:02:10 +01:00
Alexandre Aubin
88b414c8f3 Don't redact empty string... 2021-03-02 02:02:10 +01:00
yalh76
2402a1db39 Fixing ___APP__ 2021-03-02 02:02:09 +01:00
yalh76
9bbc3b72ae Make grep lazy 2021-03-02 02:02:09 +01:00
yalh76
2728801d17 Force destination to be replaced 2021-03-02 02:02:08 +01:00
Alexandre Aubin
a43cd72c72 Fix ynh_replace_vars again, mystical bash is mystic... 2021-03-02 02:00:45 +01:00
Alexandre Aubin
0c172cd3f9 Catch more secrets not redacted 2021-03-02 02:00:44 +01:00
Alexandre Aubin
01058aca28 Catch more secrets not redacted 2021-03-02 01:49:23 +01:00
Alexandre Aubin
d763247df4
No need for mysql root password (#912)
* Get rid of /etc/yunohost/mysql

* Get rid of restore hook for mysql password

* Tab -> spaces

* declare->local lost while merging conflicts etc

* Gotta keep that var
2021-03-01 19:11:41 +01:00
Alexandre Aubin
4a20cf8003
Merge pull request #1168 from Salamandar/helper_template
Enhance the jinja template for bash helpers
2021-03-01 18:13:18 +01:00
Alexandre Aubin
0884a0c162 Further simplify logging configuration by using the 'cli' handler when running yunohost-api in debug mode instead of creating a 'console' handler which is pretty much the same 2021-03-01 18:06:43 +01:00
Alexandre Aubin
dbedec3546
Merge pull request #1177 from yalh76/more_ynh_add_config_fix
Fixing ___APP__
2021-02-28 20:08:52 +01:00
yalh76
c86d432783 Fixing ___APP__ 2021-02-28 18:56:30 +01:00
Alexandre Aubin
997fd4d2f4
Merge pull request #1119 from YunoHost/moulinette-logging
Simpler and more consistent logging initialization
2021-02-28 17:34:18 +01:00
Alexandre Aubin
38bed2aab2
Merge branch 'dev' into moulinette-logging 2021-02-28 17:03:15 +01:00
Alexandre Aubin
4131ddb070 Fix cases where we want to test if translation exists for a key 2021-02-28 17:00:48 +01:00
Alexandre Aubin
65424cc1ec
Merge pull request #1176 from yalh76/ynh_add_config
Make grep lazy
2021-02-28 15:22:05 +01:00
yalh76
fcea5a6af0 Make grep lazy 2021-02-28 13:38:10 +01:00
Alexandre Aubin
9480678aa1
Merge pull request #1175 from yalh76/ynh_add_config
[enh] - Force destination to be replaced
2021-02-27 20:47:47 +01:00
yalh76
c6d14219cc Force destination to be replaced 2021-02-27 20:39:55 +01:00
Alexandre Aubin
bb1d600227
Merge pull request #1149 from YunoHost/fix-dyndns-madness
Fix dyndns madness
2021-02-26 00:28:13 +01:00
Alexandre Aubin
64a1b4cad2 Misc fixes after testing 2021-02-26 00:20:39 +01:00
Alexandre Aubin
071732dd7f Improve check that a dyndns domain already exists 2021-02-26 00:00:19 +01:00
Alexandre Aubin
cc6cc1860a Do not backup damn cron jobs ... they will automatically be regenerated by the regenconf 2021-02-25 23:59:51 +01:00
Alexandre Aubin
a8e11c19db Delete dyndns key during domain removal if any 2021-02-25 23:59:51 +01:00
Alexandre Aubin
2752a8e485 Deprecate yunohost dyndns installcron/removecron 2021-02-25 23:59:51 +01:00
Alexandre Aubin
7efc6dcd07 Handle the dyndns cron from the regenconf 2021-02-25 23:59:17 +01:00
Alexandre Aubin
675c4d0eea Fix permission helper doc format 2021-02-25 16:57:57 +01:00
Alexandre Aubin
0dd0337450 Don't redact empty string... 2021-02-25 16:44:55 +01:00
Alexandre Aubin
33f291be96 Fix ynh_replace_vars again, mystical bash is mystic... 2021-02-25 16:36:28 +01:00
Alexandre Aubin
3be6b822eb
Merge pull request #1173 from YunoHost/enh-ynh_systemd_action
[fix] Automatically call ynh_clean_check_starting when ynh_systemd_action fails
2021-02-25 16:00:31 +01:00
Kay0u
47420c6232
fix multimedia helper 2021-02-25 12:40:49 +01:00
Kay0u
1d3380415e
add missing getops 2021-02-25 11:17:46 +01:00
Kay0u
8f7ced35a5
fix ynh_systemd_action in case of service fails 2021-02-25 11:16:34 +01:00
Alexandre Aubin
a8b315b873
Fix nl translation 2021-02-25 05:18:21 +01:00
Alexandre Aubin
fdba94e2e5
Fix fr translation 2021-02-25 05:17:36 +01:00
Alexandre Aubin
a7a97535bb
Merge pull request #1153 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-02-25 04:22:13 +01:00
Nils Van Zuijlen
a5038b5cc0 Translated using Weblate (French)
Currently translated at 99.5% (630 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-02-25 03:20:32 +00:00
Christian Wehrli
a0cd4d3ca5 Translated using Weblate (German)
Currently translated at 79.7% (505 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-02-25 03:20:32 +00:00
Christian Wehrli
2ea7b02653 Translated using Weblate (German)
Currently translated at 78.9% (500 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-02-25 03:20:32 +00:00
Christian Wehrli
dc844b5d73 Translated using Weblate (German)
Currently translated at 74.7% (473 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-02-25 03:20:32 +00:00
MrMorals
b050a35b8a Translated using Weblate (Dutch)
Currently translated at 8.3% (53 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/nl/
2021-02-25 03:20:32 +00:00
Christian Wehrli
5e6f77c8f7 Translated using Weblate (German)
Currently translated at 73.4% (465 of 633 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-02-25 03:20:32 +00:00
Christian Wehrli
351928f566 Translated using Weblate (German)
Currently translated at 72.1% (456 of 632 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-02-25 03:20:32 +00:00
xaloc33
46ceef1467 Translated using Weblate (Catalan)
Currently translated at 100.0% (632 of 632 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ca/
2021-02-25 03:20:32 +00:00
Christian Wehrli
eacc571cc3 Translated using Weblate (German)
Currently translated at 68.3% (432 of 632 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-02-25 03:20:32 +00:00
Christian Wehrli
def4115fd7 Translated using Weblate (German)
Currently translated at 64.7% (409 of 632 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-02-25 03:20:32 +00:00
Christian Wehrli
0ff75e1e22 Translated using Weblate (German)
Currently translated at 64.5% (408 of 632 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-02-25 03:20:32 +00:00
Christian Wehrli
d5f82856c6 Translated using Weblate (German)
Currently translated at 63.6% (402 of 632 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-02-25 03:20:32 +00:00
Christian Wehrli
a7152e2c69 Translated using Weblate (German)
Currently translated at 63.6% (402 of 632 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-02-25 03:20:32 +00:00
Yifei Ding
6880a6f017 Translated using Weblate (Chinese (Simplified))
Currently translated at 2.2% (14 of 631 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/zh_Hans/
2021-02-25 03:20:32 +00:00
ppr
c6974932b4 Translated using Weblate (French)
Currently translated at 100.0% (631 of 631 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-02-25 03:20:32 +00:00
Mathieu Massaviol
7d4ef2b142 Translated using Weblate (French)
Currently translated at 100.0% (631 of 631 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-02-25 03:20:32 +00:00
Christian Wehrli
7f8a4c16ae Translated using Weblate (German)
Currently translated at 63.3% (400 of 631 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-02-25 03:20:32 +00:00
Miloš Kroulík
4168a9d193 Translated using Weblate (Czech)
Currently translated at 0.1% (1 of 631 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/cs/
2021-02-25 03:20:32 +00:00
Alexandre Aubin
53576a43e1
Merge pull request #1160 from YunoHost/use-jq-in-helpers
Use jq / output-as json to get info from yunohost commands instead of scraping with grep
2021-02-25 04:20:24 +01:00
Gabriel
dbf19b585c [locales] add "domain_cannot_add_muc_upload" string to en.json 2021-02-23 20:17:53 +01:00
Alexandre Aubin
d0088053fb
Merge pull request #1171 from YunoHost/fix-replace-string-escape
Gotta escape \ during ynh_replace_vars
2021-02-23 14:24:51 +01:00
Alexandre Aubin
5ba94f4add
Merge pull request #1172 from YunoHost/fix_ynh_add_config_basedir
Define YNH_APP_BASEDIR to be able to properly point to conf folder depending on the app script we're running
2021-02-23 14:24:43 +01:00
Alexandre Aubin
acfea3d76d Define YNH_APP_BASEDIR to be able to properly point to conf folder depending on the app script we're running 2021-02-23 02:17:04 +01:00
Alexandre Aubin
25024622e4
Merge pull request #1129 from YunoHost/add_multimedia_helpers
Add multimedia helpers and hooks
2021-02-22 23:49:35 +01:00
Alexandre Aubin
59da04e92b Gotta escape \ during ynh_replace_vars 2021-02-22 23:46:12 +01:00
Alexandre Aubin
29b511f5e3 Fix multimedia hook if not media directory yet 2021-02-22 23:42:52 +01:00
Gabriel
822c05da2b [metronome] activate module pubsub 2021-02-22 22:01:29 +01:00
Alexandre Aubin
1adff77e3a Add multimedia helpers and hooks 2021-02-22 21:01:23 +01:00
Alexandre Aubin
c9676d4333 Merge tag 'debian/4.1.7.2' into dev 2021-02-21 19:56:42 +01:00
Alexandre Aubin
1846c3a07b Update changelog for 4.1.7.2 2021-02-21 05:28:30 +01:00
Alexandre Aubin
f398f463f4 Replace \t in conf.json.persistent... 2021-02-21 05:23:52 +01:00
Alexandre Aubin
cd4fdb2b61 Mysql is a fucking joke (... trying to fix the mysql issue on RPi ...) 2021-02-21 05:23:52 +01:00
ljf (zamentur)
29bd3c4a26 [fix] Avoid admin part of apps to be reachable from visitors 2021-02-21 05:23:50 +01:00
Alexandre Aubin
3b6ea369ab
Merge pull request #1166 from YunoHost/fix-admin-available-by-visitors
[fix] Avoid admin part of apps to be reachable from visitors
2021-02-21 05:19:41 +01:00
Alexandre Aubin
0f8a44028c Replace \t in conf.json.persistent... 2021-02-21 05:12:38 +01:00
Alexandre Aubin
c7c1eaca4e Mysql is a fucking joke (... trying to fix the mysql issue on RPi ...) 2021-02-21 05:04:06 +01:00
Alexandre Aubin
aa92954f1b
Translation typo.. 2021-02-20 17:07:38 +01:00
8003288a67 Enhance the jinja template for bash helpers 2021-02-16 14:15:33 +01:00
Alexandre Aubin
0f7c0b039a
Merge pull request #1125 from YunoHost/domain-remove-remove-apps
Add '--remove-apps' (and '--force') options to "yunohost domain remove"
2021-02-13 20:43:59 +01:00
Alexandre Aubin
e7db40e9c8
Merge branch 'dev' into domain-remove-remove-apps 2021-02-13 20:43:46 +01:00
ljf (zamentur)
6d625d457d
[fix] Unused import 2021-02-11 19:42:55 +01:00
ljf (zamentur)
958c052f1e
[fix] Avoid admin part of apps to be reachable from visitors 2021-02-11 18:35:35 +01:00
Gabriel
df70a75007 [metronome] deactivate stanza mention optimization 2021-02-09 20:34:06 +01:00
Gabriel
1fb42bb8af [muc subdomain] forbid admin to add a muc subdomain (reserved to xmpp) 2021-02-09 18:54:31 +01:00
Kay0u
933b73400b
change artifacts filename 2021-02-07 15:54:01 +01:00
Kay0u
59d3e387f1
Update template for the new doc (grav) 2021-02-07 15:52:50 +01:00
Gabriel
4432d28c09 [muc subdomain] add to domain's certificate the alt subdomain muc 2021-02-04 20:40:36 +01:00
Alexandre Aubin
3bbc93d54b Merge branch '4.1.7-hotfixes' into dev 2021-02-03 17:01:48 +01:00
Alexandre Aubin
e1062f1457 Update changelog for 4.1.7.1 2021-02-03 16:59:56 +01:00
Alexandre Aubin
6efbc03d43 Remove getopts from ynh_exec_as 2021-02-03 16:58:23 +01:00
Alexandre Aubin
ac38e53a7c Remove getopts from ynh_exec_as 2021-02-03 16:50:04 +01:00
Kay0u
dfa0b21fce
fixing my mess about firewall _TO_CLOSE 2021-02-03 14:33:10 +01:00
Alexandre Aubin
717cd26927 Yo dawg i heard you like exceptions so i created an exception in your exception so you can debug while you debug 2021-02-03 03:09:32 +01:00
Alexandre Aubin
ab3ea8b338
Merge pull request #1162 from YunoHost/fix-linter
fix linter, remove allow_failure for corresponding tests
2021-02-02 21:01:27 +01:00
Kay0u
9faf2d89a2
fix format 2021-02-02 17:15:45 +01:00
Kay0u
3bd314e940
readd allow_failure 2021-02-02 17:14:05 +01:00
Kay0u
bfd7257a8c
fix linter, remove allow_failure for corresponding tests 2021-02-02 16:16:07 +01:00
Laurent Peuch
97f26015c6 [fix] kill all bare exceptions 2021-02-02 14:40:29 +01:00
Kayou
5ac2355882
ignore some flake8 errors 2021-02-02 14:14:36 +01:00
Kayou
ce1045a26a
fix the postinstall with double quotes 2021-02-02 11:10:52 +01:00
Alexandre Aubin
6500ac01ae Make sure that dir exists :/ 2021-02-02 05:55:19 +01:00
Alexandre Aubin
a6149fb6e2 Merge tag 'debian/4.1.7' into dev 2021-02-02 05:53:15 +01:00
Alexandre Aubin
9414365edc
Merge pull request #1161 from YunoHost/ci-format-dev
[CI] Format code
2021-02-02 05:47:31 +01:00
yunohost-bot
c4439110e1 [CI] Format code 2021-02-02 03:37:40 +00:00
Alexandre Aubin
adc83b4c9c Update changelog for 4.1.7 2021-02-02 04:25:05 +01:00
Alexandre Aubin
08e7b42c82 logger.exception -> logger.error because logger.exception displays a stacktrace and it ain't relevant in any of these cases 2021-02-02 04:15:01 +01:00
Alexandre Aubin
29fe7c3103 Do not ynh_die if systemctl action fails, because we don't want to exit in the middle of a remove script ... instead, return a non-zero code which should trigger script failure only if set -eu is enabled 2021-02-02 04:13:42 +01:00
ericgaspar
6b2d76dddd Move ynh_exec_as helper to user section 2021-02-02 04:13:42 +01:00
ericgaspar
b94ff1c200 Add ynh_exec_as to official 2021-02-02 04:13:42 +01:00
Alexandre Aubin
9fbd1a02db Recommend yunohost.local in yunoprompt 2021-02-02 04:13:42 +01:00
ljf
aef3ee1434 [fix] If uid is less than 1001 nsswitch ignore it 2021-02-02 04:13:42 +01:00
ljf
4e335e0782 [fix] If uid is less than 1000 nsswitch ignore it 2021-02-02 04:13:42 +01:00
Alexandre Aubin
5ab5c83d54 Misc issues with yunoprompt 2021-02-02 04:13:42 +01:00
Alexandre Aubin
62e84d8b4b service_regen_conf is deprecated in factor of regen_conf 2021-02-02 04:13:42 +01:00
Alexandre Aubin
2fc016e3e5 Make sure tmp_script exists .. 2021-02-02 04:13:42 +01:00
Alexandre Aubin
536fd9be9e diagnosis: Ignore /dev/loop devices in systemresources 2021-02-02 04:13:42 +01:00
Kayou
4725e05470 fix de locale 2021-02-02 04:13:42 +01:00
Alexandre Aubin
4b876ff07f Handle case where DKIM record is split into several pieces 2021-02-02 04:13:42 +01:00
Kayou
12244036a9 Typo 2021-02-02 04:13:42 +01:00
Alexandre Aubin
10ba00affe logger.exception -> logger.error because logger.exception displays a stacktrace and it ain't relevant in any of these cases 2021-02-02 03:57:33 +01:00
Alexandre Aubin
06185a2392 Use jq / output-as json to get info from yunohost commands instead of scraping with grep 2021-02-02 03:45:13 +01:00
Alexandre Aubin
071d8c4cbe Misc fixes for cert / local CA management 2021-01-31 18:15:51 +01:00
Alexandre Aubin
d152e7299b
Merge pull request #1064 from YunoHost/move-ldap-init-before-postinstall
Move ldap initialization before the postinstall
2021-01-31 16:25:04 +01:00
Alexandre Aubin
29a3ad0484
Merge branch 'dev' into move-ldap-init-before-postinstall 2021-01-31 16:21:23 +01:00
Alexandre Aubin
f73c642795
Merge pull request #1063 from YunoHost/folder-init-in-regenconf
Initialize folders during .deb install instead of regen conf
2021-01-31 16:19:22 +01:00
Alexandre Aubin
3c0649f1e3
Merge branch 'dev' into folder-init-in-regenconf 2021-01-31 16:19:03 +01:00
Alexandre Aubin
68e24c986a
Merge pull request #1062 from YunoHost/move-local-ca-mangement-to-regenconf
Refactor local CA management for more consistency and simpler postinstall
2021-01-31 16:17:20 +01:00
Alexandre Aubin
a618ae4f4d
Merge pull request #1118 from YunoHost/normalize-conf-template-handling
Normalize conf template handling for nginx, php-fpm, systemd and fail2ban using ynh_add_config
2021-01-31 16:15:45 +01:00
Alexandre Aubin
2ab330a0e2 I think we don't need this hack anymore 2021-01-31 16:14:28 +01:00
Alexandre Aubin
fcf9e58ce4 Rework logging configuration 2021-01-31 16:14:28 +01:00
Laurent Peuch
c931f8a532 [mod] activate moulinette.core and moulinette.interface.api logging in api 2021-01-31 16:14:28 +01:00
Laurent Peuch
cf560b8f91 [mod] activate moulinette.core logging in cli 2021-01-31 16:14:28 +01:00
Alexandre Aubin
4476c968c0
Merge pull request #1154 from YunoHost/fix-upnp-closing-port
fix upnp closing port
2021-01-31 14:39:20 +01:00
Alexandre Aubin
b3244e0661
Merge pull request #1145 from YunoHost/report_low_total_space_for_rootfs
Report low total space for rootfs
2021-01-31 14:38:51 +01:00
Alexandre Aubin
2758c1636b
Merge branch 'dev' into report_low_total_space_for_rootfs 2021-01-31 14:38:34 +01:00
Alexandre Aubin
9d0bda548a Do not ynh_die if systemctl action fails, because we don't want to exit in the middle of a remove script ... instead, return a non-zero code which should trigger script failure only if set -eu is enabled 2021-01-31 11:57:34 +01:00
grenagit
6273790a63
Update main.cf 2021-01-31 10:15:32 +01:00
Alexandre Aubin
35425a1b36
Merge pull request #1147 from YunoHost/dont_miserably_rerun_postinstall
Abort postinstall if /etc/yunohost/apps ain't empty
2021-01-30 16:47:04 +01:00
Alexandre Aubin
598408aeb2
Merge pull request #1151 from ericgaspar/ynh_exec_as
Add ynh_exec_as to official
2021-01-30 16:43:59 +01:00
Alexandre Aubin
1c0cfec67d
Merge pull request #1150 from YunoHost/fix-can-ynh-admin-vuejs
fix cache ynh-admin vuejs
2021-01-30 15:06:31 +01:00
ericgaspar
43f121baed
Move ynh_exec_as helper to user section 2021-01-28 08:07:53 +01:00
Alexandre Aubin
b6b33d99de
We don't want any output of ls, just the return code
Co-authored-by: Kayou <pierre@kayou.io>
2021-01-28 00:29:38 +01:00
Kayou
fea1ad474b
remove cache 2021-01-28 00:03:38 +01:00
Alexandre Aubin
048d4f56c4
Merge pull request #1156 from YunoHost/remove-travis
remove travis
2021-01-27 23:21:53 +01:00
Alexandre Aubin
3672b1dcd2
Merge pull request #1158 from smart4life/fix-letsencrypt-generation
Fix let's encrypt certificat generation
2021-01-27 23:21:13 +01:00
Sébastien Mennetrier
f9478b93cd Fix let's encrypt certificat generation 2021-01-27 11:00:32 +01:00
Kay0u
535fe5aebf
remove travis 2021-01-26 22:21:58 +01:00
Kayou
bf2ef03b9e
Merge pull request #1155 from YunoHost/fix-i18n-test-after-format
fix i18n test after format
2021-01-26 22:17:20 +01:00
Kay0u
0c382420d3
fix i18n test after format 2021-01-26 22:03:44 +01:00
Kay0u
a3f3f891e4
fix upnp closing port 2021-01-26 20:05:37 +01:00
Alexandre Aubin
ba3705bbc6 Recommend yunohost.local in yunoprompt 2021-01-25 17:51:17 +01:00
ljf
dccc3526e4 [fix] If uid is less than 1001 nsswitch ignore it 2021-01-25 04:00:38 +01:00
ljf
903d4d1881 [fix] If uid is less than 1000 nsswitch ignore it 2021-01-25 04:00:38 +01:00
Alexandre Aubin
8430e4f197 Misc issues with yunoprompt 2021-01-25 03:57:51 +01:00
Alexandre Aubin
2c73c50cce
Unused import 2021-01-24 05:05:28 +01:00
Alexandre Aubin
bff5ad59dc
Merge pull request #1070 from cyxae/enh-app-search
Define a new "yunohost app search" command
2021-01-24 05:04:13 +01:00
Alexandre Aubin
bcb83b86d2
Merge pull request #1146 from YunoHost/misc_rename_and_alias
Misc command rename and alias
2021-01-24 05:02:20 +01:00
Alexandre Aubin
a105b58541
Merge pull request #1148 from YunoHost/prevent_apache2_install
Prevent the installation of apache2 ...
2021-01-24 05:01:32 +01:00
Alexandre Aubin
c091559e7b
Merge pull request #1077 from YunoHost/return-additional-error-data-to-api
Support more complex errors (be able to return additional data in a json structure)
2021-01-23 16:05:54 +01:00
Alexandre Aubin
c0fc29eef9
Merge pull request #1137 from ericgaspar/N---Node.js-version-management
Upgrade n to v7.0.0
2021-01-23 16:05:02 +01:00
Alexandre Aubin
72822ce987 Replace #sub_path_only and #root_path_only in the template *before* calling ynh_add_config, otherwise the it ain't in the checksum computation 2021-01-23 04:33:28 +01:00
Alexandre Aubin
c023b177fe Normalize conf template handling for nginx, php-fpm, systemd and fail2ban using ynh_add_config 2021-01-23 04:33:28 +01:00
Alexandre Aubin
68cc952a89 Remove stale strings 2021-01-23 01:30:20 +01:00
Alexandre Aubin
46138e9e73 We need that file for the first domain_add during postinstall 2021-01-23 01:27:14 +01:00
Kayou
4a302dc786
add auto-format-code (#1142)
* add auto-format-code
* add github remote
* add GITHUB_TOKEN to the remove url
* select Yunohost:dev
* force push as it's only a code format
* pull before running black
* working on a clean directory
* pull before push? /o\
* do not clone single branch
* a last one?
* only on dev branch
2021-01-23 00:21:02 +01:00
Alexandre Aubin
75ebadfcff
Merge pull request #1090 from yalh76/composer
[enh] Adding composer helper
2021-01-23 00:13:08 +01:00
Alexandre Aubin
0606df529b Also add a check on debian/postinst because we're about to move a bunch of init step to debian/postinst instead of 'yunohost tools postintall' 2021-01-23 00:08:50 +01:00
Alexandre Aubin
ed35915e7f Move ldap initialization before the postinstall 2021-01-23 00:03:25 +01:00
Alexandre Aubin
f755259790 Initialize folders during .deb install instead of regen conf 2021-01-23 00:01:26 +01:00
Alexandre Aubin
25f2bdf83a Refactor local CA management for more consistency and simpler postinstall 2021-01-22 23:58:12 +01:00
ericgaspar
6e9ab553b8
Add ynh_exec_as to official 2021-01-22 17:08:28 +01:00
Kay0u
0efd830743
fix can ynh-admin vuejs 2021-01-22 14:49:47 +01:00
Kayou
f5ab4443ff
We don't need this conflict anymore because the python3-miniupnpc package is no longer in our repositorie. 2021-01-22 14:13:58 +01:00
Alexandre Aubin
9c11fd58e2 service_regen_conf is deprecated in factor of regen_conf 2021-01-22 03:37:29 +01:00
Alexandre Aubin
c659216e23 Make sure tmp_script exists .. 2021-01-22 03:32:27 +01:00
Alexandre Aubin
148bfdac0d Also ban bind9 2021-01-21 23:59:22 +01:00
Alexandre Aubin
3e290d5c37 Prevent the installation of apache2 ... 2021-01-21 23:55:37 +01:00
Alexandre Aubin
1fdccb7c7a Forgot to rename function #oopsies 2021-01-21 23:30:15 +01:00
Alexandre Aubin
9971c1751b Abort postinstall if /etc/yunohost/apps ain't empty 2021-01-21 22:49:40 +01:00
Alexandre Aubin
c7b55cdfad migrations migrate -> migrations run 2021-01-21 22:30:31 +01:00
Alexandre Aubin
e22168a98d log display -> log show (+ fix API route) 2021-01-21 21:35:37 +01:00
Alexandre Aubin
15e47b2a2b yunohost log share 2021-01-21 21:34:12 +01:00
Alexandre Aubin
b53859db50 [fix] python3: fix yunopaste encoding 2021-01-21 21:23:57 +01:00
Alexandre Aubin
fd61900352 Also complain about low rootfs total disk space during postinstall 2021-01-21 20:53:07 +01:00
Alexandre Aubin
8b3ec8a137 Diagnosis: report low total space for rootfs 2021-01-21 20:34:43 +01:00
Alexandre Aubin
21a0c65ed6 diagnosis: Ignore /dev/loop devices in systemresources 2021-01-21 20:03:59 +01:00
Kayou
8d02766098
fix de locale 2021-01-21 19:06:15 +01:00
Alexandre Aubin
c8a23f26bb Handle case where DKIM record is split into several pieces 2021-01-21 16:25:58 +01:00
Kayou
02ed684f9a
shell=True, because Aleks says so 2021-01-21 12:00:27 +01:00
Alexandre Aubin
1387dff47c
Not sure what i'm doing but tests failing because of this package for some reasons... we had a custom build for python-miniupnpc (python2) because Debian vanilla doesn't provide it ... but not we're in python3 and turns out the custom build also built the python3 version .. but ideally we want to fall back to debian vanilla version ? 2021-01-21 05:04:39 +01:00
Alexandre Aubin
9185d044a5 Require moulinette >= 4.2 + placeholder / bump version to 4.2 for unstable deb builds / CI stuff 2021-01-20 05:24:25 +01:00
Alexandre Aubin
a97a9df316 Fix more implicit references to python2, adapt generate_manpages for python3 2021-01-20 05:06:43 +01:00
Alexandre Aubin
041e175319 Merge branch '4.1.6-hotfixes' into dev 2021-01-20 02:13:46 +01:00
Alexandre Aubin
1eab77aa9b
Merge pull request #1139 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-01-20 01:57:41 +01:00
Alexandre Aubin
99ab7c642c Update changelog for 4.1.6 2021-01-20 01:53:04 +01:00
Daniel
a61dece925 Translated using Weblate (German)
Currently translated at 62.5% (395 of 631 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-01-20 01:31:34 +01:00
penguin321
f617b2fe72 Translated using Weblate (German)
Currently translated at 61.3% (387 of 631 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-01-20 01:31:34 +01:00
Christian Wehrli
63a0fcc753 Translated using Weblate (German)
Currently translated at 59.2% (374 of 631 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-01-20 01:31:34 +01:00
Alexandre Aubin
35a0711713
Stupid yolopatch for not-normalized app path settings >_> (#1141)
* Update app.py
* Be more careful (c.f. _normalize_domain_path code ... maybe the path doesn't start with / either ..)
* Annnnnd ignore case where path is '/' which is fine
2021-01-20 01:28:55 +01:00
Alexandre Aubin
b7293f33b9
Merge pull request #1140 from YunoHost/dyndns-update-more-resilient
Make dyndns update more resilient to ns0.yunohost.org being down
2021-01-20 01:22:30 +01:00
Daniel
7c837a2db3 Translated using Weblate (German)
Currently translated at 62.5% (395 of 631 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-01-19 22:26:45 +00:00
penguin321
cfd80a9478 Translated using Weblate (German)
Currently translated at 61.3% (387 of 631 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-01-19 22:26:45 +00:00
Christian Wehrli
754e779296 Translated using Weblate (German)
Currently translated at 59.2% (374 of 631 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-01-19 22:26:45 +00:00
Alexandre Aubin
47181a4598
Merge pull request #1096 from YunoHost/less-madness-for-hook-exec
Less madness for hook exec
2021-01-19 23:26:10 +01:00
Alexandre Aubin
09acc2a466
Merge branch 'dev' into less-madness-for-hook-exec 2021-01-19 23:25:43 +01:00
Alexandre Aubin
b98dd8585b
Merge pull request #1116 from YunoHost/enh-python3
Python2 -> Python3
2021-01-19 23:06:57 +01:00
Kayou
5c7e503316
Typo 2021-01-19 11:20:07 +01:00
Alexandre Aubin
8b05248ad4
Turns out we need to feed the IP of the resolver and can't use the doman name :/ 2021-01-19 02:34:28 +01:00
Alexandre Aubin
e730085970 Linter is angry about unused import 2021-01-18 20:53:38 +01:00
Alexandre Aubin
d5403e5f5f Typo 2021-01-18 20:25:36 +01:00
Alexandre Aubin
7dad37ed04 Make dyndns update more resilient to ns0.yunohost.org being down 2021-01-18 19:57:31 +01:00
Kay0u
c4004b701e
Update changelog for 4.1.5 2021-01-14 21:40:59 +01:00
Alexandre Aubin
75193337b1
Merge pull request #1136 from YunoHost/fix-ynh_check_app_version_changed
set ynh_check_app_version_changed as deprecated
2021-01-14 20:25:15 +01:00
Alexandre Aubin
910ccf29aa
Merge pull request #1133 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-01-14 19:48:54 +01:00
Yobar
2397820e31 Translated using Weblate (French)
Currently translated at 99.8% (630 of 631 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-01-14 18:47:38 +00:00
Flavio Cristoforetti
d71792e439 Translated using Weblate (Italian)
Currently translated at 100.0% (631 of 631 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2021-01-14 18:47:38 +00:00
Jorge-vitrubio.net
f46a3e1ef1 Translated using Weblate (Spanish)
Currently translated at 92.5% (584 of 631 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/es/
2021-01-14 18:47:38 +00:00
xaloc33
00944c243d Translated using Weblate (Catalan)
Currently translated at 100.0% (631 of 631 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ca/
2021-01-14 18:47:38 +00:00
Jorge-vitrubio.net
7e37353943 Translated using Weblate (Catalan)
Currently translated at 100.0% (631 of 631 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ca/
2021-01-14 18:47:38 +00:00
Alexandre Aubin
739d831cf9
Merge pull request #1135 from YunoHost/fix-default-in-arg-parse
fix default arg parse for password
2021-01-14 19:46:54 +01:00
Alexandre Aubin
c59393fcc7
Merge pull request #1138 from YunoHost/ynh_exec_warn_less-dyndns-backup
ynh_exec_warn_less dyndns backup
2021-01-14 19:46:26 +01:00
Kayou
7f1938df6f
ynh_exec_warn_less dyndns backup 2021-01-14 15:47:10 +01:00
ericgaspar
d5efb06b62
Upgrade n to v7.0.0 2021-01-14 11:21:07 +01:00
Alexandre Aubin
1e7c3ffc21
Merge pull request #1134 from YunoHost/fix-boolean-arg-parse
fix boolean arg parse
2021-01-13 23:04:32 +01:00
Kay0u
090cd0b13a
copy the behavior of the old ynh_check_app_version_changed helper 2021-01-13 11:34:41 +01:00
Kayou
5b1cee4b70
One priority arg is enough 2021-01-13 11:21:41 +01:00
Kay0u
2ace0741c4
set ynh_check_app_version_changed as deprecated 2021-01-12 13:53:38 +01:00
Kay0u
e11741ca94
fix default arg parse for password 2021-01-12 10:53:12 +01:00
Kay0u
5999f13142
fix boolean arg parse 2021-01-12 10:21:20 +01:00
Alexandre Aubin
1d2b1d9601
[internally screaming] Follow-up of 116a15f9f1 ... breaking cert regen conf on some setup ... 2021-01-11 23:26:29 +01:00
Alexandre Aubin
9d2dac5062 Update changelog for 4.1.4.4 2021-01-11 14:19:03 +01:00
Alexandre Aubin
c56883d027 Gotta explicitly return 0, otherwise the return code of last command is used, which in that case is 1 ... 2021-01-11 14:16:50 +01:00
Alexandre Aubin
adaf539e98
Merge pull request #1132 from Saxodwarf/fix-1435-pass-user-password-to-grep-as-raw-string
Add the -F flag to prevent grep from using the user password as a regex pattern
2021-01-10 21:43:47 +01:00
Alexandre Aubin
c43a51ba30
Merge branch 'dev' into enh-python3 2021-01-10 18:31:19 +01:00
Saxodwarf
bca527aca5 Add the -F flag to prevent grep from using the user password as a regex pattern 2021-01-10 12:09:04 +01:00
Alexandre Aubin
a665c702d0 Annnd of course we have references to python2 in bash stuff and other misc scripts 2021-01-10 02:07:24 +01:00
Alexandre Aubin
807b577cf2 Update changelog for 4.1.4.3 2021-01-10 01:59:24 +01:00
Alexandre Aubin
b5bbb44a95 Make sure to use a keyword argument since we have a new arg 2021-01-10 01:51:39 +01:00
Laurent Peuch
fffbd2d10f [fix] only ask about remove apps from a domain being remove in cli 2021-01-10 01:17:34 +01:00
Laurent Peuch
74d956f92b [enh] add --force to 'yunohost domain remove --remove-apps' 2021-01-10 01:17:05 +01:00
Alexandre Aubin
30dde208dc Fix ynh_replace_vars in case var is define but empty 2021-01-09 23:57:09 +01:00
Alexandre Aubin
6f2b9e12a4 Update changelog for 4.1.4.2 2021-01-09 19:00:00 +01:00
Alexandre Aubin
ac4b62cebc Reduce the noise in logs because of ynh_app_setting 2021-01-09 18:16:08 +01:00
Alexandre Aubin
00508c9698 For some reason sometimes submetadata is None ... 2021-01-09 18:10:41 +01:00
Alexandre Aubin
8f1b05f3cf [fix] Prevent info from being redacted (because of foobar_key=) by the logging system 2021-01-09 18:08:23 +01:00
Alexandre Aubin
48672b1ec0 Update changelog for 4.1.4.1 2021-01-08 16:21:25 +01:00
Alexandre Aubin
b25cde0b67
[fix] Make sure relay_user var exists in all cases (otherwise in the jinja template later, relay_user != "" is True if the var doesn't exists...) 2021-01-08 15:57:41 +01:00
Alexandre Aubin
f56a00d4a7 Update changelog for 4.1.4 2021-01-08 03:14:07 +01:00
Alexandre Aubin
1bad8267c6
Merge pull request #1109 from leo-lb/lle-bout/fix-upnp
firewall: force source port for UPnP.
2021-01-08 02:40:34 +01:00
Alexandre Aubin
54fb87fa54 Update changelog for 4.1.3 2021-01-07 00:52:20 +01:00
Kay0u
2fd5f3886a
fix locale test 2021-01-06 20:34:13 +01:00
Alexandre Aubin
0022c80d59
Merge pull request #1128 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2021-01-06 18:43:12 +01:00
Alexandre Aubin
6705e707c5
Fix translation 2021-01-06 18:43:02 +01:00
ppr
987f08dcd9 Translated using Weblate (French)
Currently translated at 99.5% (628 of 631 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-01-06 17:16:57 +00:00
Christian Wehrli
69f9ac4b86 Translated using Weblate (German)
Currently translated at 58.0% (366 of 631 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2021-01-06 17:16:57 +00:00
ppr
121bcbcc48 Translated using Weblate (French)
Currently translated at 99.6% (628 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2021-01-06 17:16:56 +00:00
Alexandre Aubin
35946f42d5
Merge pull request #1117 from YunoHost/new-permissions-helpers
New permissions helpers
2021-01-06 18:16:40 +01:00
Alexandre Aubin
2f856cbe07
Merge pull request #1131 from YunoHost/fix-legacy-persistent-migration
use read_yaml for json because lol
2021-01-06 18:05:37 +01:00
Kay0u
239dc539a1
use read_yaml for json because lol 2021-01-06 16:34:55 +01:00
Kay0u
4a0526ec91
Add doc 2021-01-06 12:04:09 +01:00
Kayou
2c39afc6fa
Merge pull request #1130 from YunoHost/readd-comment
readd comment of #1075
2021-01-06 01:41:58 +01:00
Kay0u
9d79bd8bee
readd comment of aefdd424d8 2021-01-06 01:35:02 +01:00
ljf (zamentur)
bb914db82e [fix] Work around to avoid moulinette bug 2021-01-06 01:17:47 +01:00
cricriiiiii
4c25f442c1 checking that we are in the cli interface 2021-01-06 01:17:47 +01:00
cricriiiiii
c2a730f26c user update -p without argument allowed
when not giving an argument (to avoid clear passwords in bash history) to "yunohost user update -p", now you are prompted for a password
2021-01-06 01:17:47 +01:00
Alexandre Aubin
25ed25e6e9 Annnnd our legacy app is using restore_dir in restore script... 2021-01-04 03:50:25 +01:00
Alexandre Aubin
b0accd506e Report / patch old usage of foo= in install/backup/restore scripts 2021-01-04 01:06:19 +01:00
Alexandre Aubin
9807b76d34 Turns out msettings interface is None is ran from pytest because we bypass the usual moulinette init :/ 2021-01-03 23:53:00 +01:00
Alexandre Aubin
9bf4a12f32 Zblerg debug ain't displayed on the CI 2021-01-03 23:26:46 +01:00
Alexandre Aubin
46a902a263 Merge branch 'dev' into less-madness-for-hook-exec 2021-01-03 23:05:44 +01:00
Alexandre Aubin
fee888d330 Small debug line to try to understand why the test are failing on the CI 2021-01-03 23:03:38 +01:00
Alexandre Aubin
e479b32674
Merge pull request #1069 from YunoHost/report-backport-in-source-list
Diagnosis: report usage of backports repository in apt's sources.list
2021-01-03 22:25:47 +01:00
Alexandre Aubin
57c302cb63 Merge branch 'dev' into report-backport-in-source-list 2021-01-03 21:20:07 +01:00
Alexandre Aubin
c272d20a31 Zblerg, forgot an unused 'e' 2021-01-03 04:00:51 +01:00
Alexandre Aubin
de126fcdce Don't allow failure for invalid python3 code + fix unsued variables 2021-01-02 20:43:39 +01:00
Alexandre Aubin
58522d4105 Had a buggy exception here ... this syntax ain't supported anymore in python3 2021-01-02 20:31:42 +01:00
Alexandre Aubin
112054f345 Gotta decode the output of subprocess 2021-01-02 19:51:16 +01:00
Alexandre Aubin
2b12b67847 python3: Add some list() where that sounds relevant 2021-01-02 19:48:44 +01:00
Alexandre Aubin
4ddf632e75 We don't need that print ? 2021-01-02 19:10:00 +01:00
Alexandre Aubin
c755f17015 python -> python3 in ci's yml 2021-01-02 18:54:00 +01:00
Alexandre Aubin
0781150f20 Remove python2.7 lint from CI 2021-01-02 18:43:58 +01:00
Alexandre Aubin
bbfd5eb9d0 python3: Gotta add list() when we manipulate the dict during the loop 2021-01-02 18:39:36 +01:00
Alexandre Aubin
4491568e6d
Merge pull request #1066 from YunoHost/no-upgrade-advertise-for-bad-quality-apps
Do not advertise upgrades for bad-quality apps
2021-01-02 00:40:16 +01:00
Laurent Peuch
865265ea54 [enh] add new option --remove-apps to 'yunohost domain remove' 2021-01-01 21:28:12 +01:00
Alexandre Aubin
1149be5801
Merge pull request #1121 from YunoHost/permission-docstring
[doc] tell users how to get all permissions
2021-01-01 20:49:57 +01:00
Alexandre Aubin
aacb269b0d
Merge pull request #1124 from YunoHost/domain-remove-apps-ux
[mod] also display app label on remove_domain with apps
2021-01-01 20:44:22 +01:00
Laurent Peuch
e51a1b670e [ux] add command instructions and suggest change-url for domain_uninstall_app_first 2021-01-01 19:59:13 +01:00
Laurent Peuch
c7d315c7e0 [mod] also display app label on remove_domain with apps 2021-01-01 18:52:24 +01:00
Alexandre Aubin
d31ba05a26
Merge pull request #1123 from YunoHost/fix-app-info-name-label
[fix] key name of app label wasn't the real label
2021-01-01 18:46:33 +01:00
Alexandre Aubin
968a707a4c
Merge pull request #1122 from YunoHost/avoid_calling_app_list_in_user_permission_list
[mod] avoid calling app_list in user_permission_list
2021-01-01 18:44:58 +01:00
Laurent Peuch
effc87da26 [fix] key name of app label wasn't the real label 2021-01-01 18:36:11 +01:00
Laurent Peuch
2768def391 [mod] avoid calling app_list in user_permission_list 2021-01-01 18:32:41 +01:00
Laurent Peuch
f2dc7bacd1 [doc] tell users how to get all permissions 2021-01-01 17:28:55 +01:00
Laurent Peuch
165d2b3225 [mod] no catchall exceptions 2021-01-01 17:14:53 +01:00
Alexandre Aubin
f7c3521e27
Merge pull request #1120 from YunoHost/app_list_domain_path
[enh] display domain_path of app on app list
2021-01-01 16:02:21 +01:00
Laurent Peuch
9eb6fa1961 [enh] display domain_path of app on app list 2021-01-01 15:53:50 +01:00
Alexandre Aubin
caa5e07d41 X-Python-Version is obsolete 2021-01-01 05:20:04 +01:00
Alexandre Aubin
1ac59f9877 More encode/decode fixes 2021-01-01 05:04:54 +01:00
Alexandre Aubin
d5da3d899a Ignore the __pycache__ folder in diagnosis hook folder 2021-01-01 05:04:33 +01:00
Alexandre Aubin
cce020daac Uniformize check_output calls to use moulinette helpers which shall now automatically decode() automatically + also strip() etc 2021-01-01 05:03:55 +01:00
Alexandre Aubin
0434bd5dc2 cmp() doesn't exists anymore 2021-01-01 04:07:27 +01:00
Alexandre Aubin
0335bcbf4c .keys() now returns a generator, gotta wrap it in a list() for what we do here 2021-01-01 04:07:16 +01:00
Alexandre Aubin
5f0b1b7450 Encoding fixes 2021-01-01 04:06:09 +01:00
Alexandre Aubin
86a612fab1 c.f. change in the moulinette regarding call_async_output and the handling of stdinfo ... YNH_STDINFO is now a file descriptor instead of a named pipe 2021-01-01 04:04:56 +01:00
Kay0u
5c17ac5eec
[wip] add legacy permissions management 2020-12-31 18:34:37 +01:00
Kay0u
78751ac655
Move permissions helpers to a new file 2020-12-31 18:33:09 +01:00
Alexandre Aubin
28b9b672b3 Update changelog for 4.1.2 2020-12-31 16:32:13 +01:00
Alexandre Aubin
6ea29d8501
Merge pull request #1110 from YunoHost/dont-mess-sury-pinning
Don't mess with Sury's pinning
2020-12-31 16:19:06 +01:00
Alexandre Aubin
5218e12966
Merge pull request #1111 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2020-12-31 16:18:36 +01:00
Christian Wehrli
2e8aa6442e Translated using Weblate (German)
Currently translated at 57.6% (363 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2020-12-31 15:17:59 +00:00
Alexandre Aubin
d437257e5c
Merge pull request #1114 from YunoHost/user_create_regex
[mod](user_create) only ask for one letter for first/last name
2020-12-31 16:17:51 +01:00
Alexandre Aubin
299e04cfc7 Set yunohost(-api) bins to python3 2020-12-30 22:38:02 +01:00
Alexandre Aubin
6b1fed53d6 Update tox.ini to python3 only 2020-12-30 22:38:02 +01:00
Alexandre Aubin
177957138c Naively updating debian/control to python3 2020-12-30 22:37:47 +01:00
Alexandre Aubin
8e30768598 2to3-2.7 ./src/yunohost/{,data_migrations/,utils/,tests/}*.py data/hooks/diagnosis/*.py -w -x dict -x print --nobackups --no-diffs 2020-12-30 21:53:43 +01:00
Alexandre Aubin
479f3ebe72
Merge pull request #1113 from YunoHost/fix-legacy-permission-migration
fix legacy permission migration
2020-12-30 12:11:10 +01:00
Laurent Peuch
7e096a8aeb [mod](user_create) only ask for one letter for first/last name 2020-12-30 11:25:54 +01:00
Kayou
9e2e5ce55e
not protected by default 2020-12-29 23:59:13 +01:00
Kayou
2b80bac769
Fix restore permission 2020-12-29 23:12:14 +01:00
Kayou
e70f27b7ff
Update legacy.py 2020-12-29 22:48:10 +01:00
Kayou
d6d75c528e
fix legacy permission migration 2020-12-29 22:37:59 +01:00
Alexandre Aubin
b685a27481 [yolo] Detect moar hardware name 2020-12-28 22:57:52 +01:00
Alexandre Aubin
d77d5afb2c When encountering unknown setting, also save the regular setting so we don't re-encounter the unknown settings everytime 2020-12-28 20:05:51 +01:00
Alexandre Aubin
bdff5937f0
Handle permission regexes that may start with ^ or \ 2020-12-28 16:58:50 +01:00
Laurent Peuch
0c977d8c70 [fix] double return prevent new code from working 2020-12-28 01:45:00 +01:00
Alexandre Aubin
6419c2ac64 Don't mess with Sury's pinning 2020-12-24 15:38:39 +01:00
Léo Le Bouter
42f3ff6b00 firewall: force source port for UPnP.
miniupnpc uses a random source port by default, the issue is that the
firewall rule to allow destination port 1900 incoming is unused because
the UPnP server will use the random source port as destination port in
the reply which iptables will block. Forcing the source port to be 1900
will ensure the UPnP server also uses that as destination port in the
reply and pass the firewall.

python-miniupnpc 2.0 or later is required for this change to have any
effect, it is otherwise silently ignored. A debian package upgrade is in
the works for official Yunohost repos.
2020-12-21 00:21:50 +01:00
Alexandre Aubin
6c75aa0074 Update changelog for 4.1.1 2020-12-19 01:48:10 +01:00
Alexandre Aubin
4f81be6d80
Merge pull request #1095 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2020-12-19 01:31:50 +01:00
Alexandre Aubin
94c1fc8d41
Fix duplicated stuff in fr string 2020-12-19 01:31:31 +01:00
Flavio Cristoforetti
1441ddea57 Translated using Weblate (Italian)
Currently translated at 100.0% (630 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2020-12-18 16:54:04 +00:00
Flavio Cristoforetti
a26d341d59 Translated using Weblate (Italian)
Currently translated at 63.6% (401 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2020-12-18 16:54:04 +00:00
Flavio Cristoforetti
602ca3752a Translated using Weblate (Italian)
Currently translated at 63.0% (397 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2020-12-18 16:54:04 +00:00
Flavio Cristoforetti
1a92a905aa Translated using Weblate (Italian)
Currently translated at 58.4% (368 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2020-12-18 16:54:04 +00:00
Christian Wehrli
6360f46972 Translated using Weblate (German)
Currently translated at 57.4% (362 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2020-12-18 16:54:04 +00:00
Flavio Cristoforetti
9fb7684e0f Translated using Weblate (Italian)
Currently translated at 53.1% (335 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2020-12-18 16:54:04 +00:00
Quentí
1044e82655 Translated using Weblate (Occitan)
Currently translated at 54.2% (342 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/oc/
2020-12-18 16:54:04 +00:00
Flavio Cristoforetti
3608af5912 Translated using Weblate (Italian)
Currently translated at 41.5% (262 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2020-12-18 16:54:04 +00:00
Eric COURTEAU
0c98fd0c7e Translated using Weblate (French)
Currently translated at 100.0% (630 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2020-12-18 16:54:04 +00:00
Alexandre Aubin
f9143d531f Fix a small issue where metadata could be None (because of empty yaml maybe?) 2020-12-18 17:53:05 +01:00
Kayou
173cbd409f
Merge pull request #1108 from YunoHost/do-not-reload-php7.3-too-fast
do not reload php7.3 too fast
2020-12-18 17:29:48 +01:00
Kay0u
b7c43df661
no more ; 2020-12-18 17:03:51 +01:00
Kay0u
58dcf45bd9
do not reload php7.3 too fast 2020-12-18 16:55:39 +01:00
Alexandre Aubin
ff5d8ebd61 Missing ;, probably 2020-12-18 15:29:52 +01:00
Kayou
4f1ea2405d
fix my mess 2020-12-18 15:11:37 +01:00
Alexandre Aubin
dfeb05a8eb
Merge pull request #1074 from YunoHost/increase-ldap-size-limit
Increase ldap size limit?
2020-12-17 21:24:44 +01:00
Alexandre Aubin
f253b9f215
Merge pull request #1093 from YunoHost/use-organization-name-for-LE-cert
Use organization name for le cert
2020-12-17 21:24:05 +01:00
Alexandre Aubin
6dd6d71487
Merge pull request #1105 from YunoHost/add-all_users-in-protected_urls
add all_users in protected_urls
2020-12-17 21:23:44 +01:00
Alexandre Aubin
0888d87745
Merge pull request #1104 from YunoHost/fix-the-fixme
fix the fixme
2020-12-17 21:23:32 +01:00
Alexandre Aubin
3fb27c9462
Merge pull request #1107 from YunoHost/remove-old-phpfpm-conf
handle change php version
2020-12-17 21:20:49 +01:00
Kay0u
aad676f486
Merge remote-tracking branch 'origin/dev' into add-all_users-in-protected_urls 2020-12-17 18:52:39 +01:00
Kay0u
b188cd56c0
Merge remote-tracking branch 'origin/dev' into fix-the-fixme 2020-12-17 18:52:19 +01:00
Kay0u
38d4519c0e
Merge remote-tracking branch 'origin/dev' into remove-old-phpfpm-conf 2020-12-17 18:47:03 +01:00
Kayou
fc1160f242
fix version number in tests 2020-12-17 18:45:31 +01:00
Kay0u
8cab56787e
handle change php version 2020-12-17 16:06:45 +01:00
ljf (zamentur)
11fe9d7e02
[fix] Accept all kind of relay even the unencrypted 2020-12-15 22:08:49 +01:00
Alexandre Aubin
c5d06af20e Guess what ... If people manually tweaked their nginx.conf to enable gzip globally, this will break cert renewal .. 2020-12-11 20:40:45 +01:00
Kay0u
0194fa1932
Merge remote-tracking branch 'origin/dev' into fix-the-fixme 2020-12-11 17:44:03 +01:00
Kay0u
580c9581b3
Merge remote-tracking branch 'origin/dev' into add-all_users-in-protected_urls 2020-12-11 17:43:33 +01:00
Kayou
43cc1d890e
Merge pull request #1106 from YunoHost/fix-tests
fix tests
2020-12-11 17:43:09 +01:00
Kayou
b767f4b033
fix tests 2020-12-11 17:11:44 +01:00
Kay0u
c3e750a97a
add all_users in protected_urls 2020-12-11 16:29:10 +01:00
Kay0u
401778f68e
fix the fixme 2020-12-11 16:22:29 +01:00
Alexandre Aubin
aab090fa7c
Merge pull request #1103 from YunoHost/indent-ssow-persistent-conf
indent ssow conf
2020-12-11 16:01:53 +01:00
Kay0u
c823f5ffd5
indent ssow conf 2020-12-11 15:09:37 +01:00
Alexandre Aubin
379c6e435c
Merge pull request #1094 from YunoHost/fix-too-many-recipient
[fix] Avoid too many recipient
2020-12-11 14:22:30 +01:00
Alexandre Aubin
d3ef9f305b
Merge pull request #1102 from YunoHost/fix-dnsmasq-wildcard
[fix] Avoid to define the ip on wildcard subdomains too
2020-12-10 19:22:12 +01:00
ljf (zamentur)
116a15f9f1
[fix] Avoid to define the ip on wildcard subdomains too 2020-12-10 18:18:09 +01:00
Alexandre Aubin
5422a49d82 We don't care that 'apt-key output should not be parsed' 2020-12-10 17:25:58 +01:00
Alexandre Aubin
8790d51b8c
Merge pull request #1101 from YunoHost/fix-dyndns-key-nobackup
[fix] Add Dyndns domains keys to backup
2020-12-10 14:11:09 +01:00
Alexandre Aubin
736ba4e7b5
Merge pull request #1100 from YunoHost/fix-backup
[fix] Unix permission on dkim
2020-12-10 14:10:36 +01:00
Alexandre Aubin
af0160b2a4
Merge pull request #1099 from YunoHost/fix-dns-conf
[fix] DNS conf
2020-12-10 14:08:55 +01:00
ljf
60d838843e [fix] Missing mkdir 2020-12-09 02:36:39 +01:00
ljf
9a87d8a52d [fix] Missing dir 2020-12-09 01:59:06 +01:00
ljf
ef9cc98d5e [enh] Use ynh_backup helpers 2020-12-09 01:35:40 +01:00
ljf
8b53d6562e [fix] Add Dyndns domains keys to backup 2020-12-09 01:31:17 +01:00
ljf
2c9a668afe [fix] Unix permission on dkim 2020-12-08 23:45:44 +01:00
ljf
cdb1d83eae [fix] No need for fake password, no app use ,4,5 2020-12-08 18:06:42 +01:00
ljf
2ebef4ebb4 [fix] Missing hook_callback 2020-12-08 17:57:48 +01:00
ljf
792643607b [fix] Avoid password are given in users hooks 2020-12-08 17:55:29 +01:00
ljf
6aebe6faf9 [fix] Unused line 2020-12-08 17:11:10 +01:00
ljf
f1f97d0235 [fix] DNS conf 2020-12-08 17:05:51 +01:00
Alexandre Aubin
555f0e3c65
Merge pull request #1098 from YunoHost/fix-backup
[fix] Backup/restore dkim keys
2020-12-08 14:15:51 +01:00
ljf
2be911d369 [fix] Missing backup conf 2020-12-08 12:17:59 +01:00
Alexandre Aubin
efdb2ee6b5 Gotta make sure everything is a string 2020-12-05 21:06:37 +01:00
Alexandre Aubin
81f3b493e4 Also copy the script env 2020-12-05 21:06:23 +01:00
Alexandre Aubin
2428f01521 Do not pass app args to the command line, they're already provided in the env... 2020-12-05 20:35:53 +01:00
Alexandre Aubin
d6d45cf7a6 Simplify command call, no need to wrap this in a dummy 'sh -c' 2020-12-05 20:30:03 +01:00
Alexandre Aubin
14f6f09993 Do not write the env explicitly in the command to avoid leaking secrets in ps -ef... 2020-12-05 20:19:53 +01:00
Alexandre Aubin
e0ac7de432 We ain't using argument user nor no_trace 2020-12-05 20:17:58 +01:00
ljf (zamentur)
11fb2659c6
[fix] Avoid too many recipient 2020-12-04 14:13:21 +01:00
ljf
efcf5e1ceb [fix] Unsuded import 2020-12-03 22:25:58 +01:00
ljf
14ff5cf4fc [fix] Remove unused i18n keys 2020-12-03 19:50:44 +01:00
ljf
dec4b25275 [fix] Missing description keys 2020-12-03 19:49:52 +01:00
ljf
f3db1c99aa [fix] Small residual rebase conflict 2020-12-03 18:42:22 +01:00
ljf
8ca092d984 [fix] Remove old command 2020-12-03 18:39:08 +01:00
ljf
0e8cc1851d [fix] Rename migrations 2020-12-03 18:32:36 +01:00
ljf
0f67278afe [fix] Rename migrations 2020-12-03 18:32:21 +01:00
ljf
95eea93c4a [fix] Remove rebase conflict blank line 2020-12-03 18:27:09 +01:00
ljf (zamentur)
cd5798763c [fix] No new line 2020-12-03 18:23:14 +01:00
ljf
32fcbea757 [fix] Remove old ssh allow method 2020-12-03 18:22:02 +01:00
ljf
2db6fbda69 [fix] Remove specific ssh tunnel perm 2020-12-03 18:22:02 +01:00
ljf
aa9b8318e7 [fix] pep8 2020-12-03 18:22:02 +01:00
ljf
f79b0ff0a3 [enh] SFTP and SSH permissions 2020-12-03 18:20:45 +01:00
Josué Tille
5e6bcb2346 Add possibility to restrict the user allowed to access by sftp 2020-12-03 18:17:52 +01:00
Kay0u
28b8a0ef6a
Update changelog for 4.1.0 2020-12-03 16:38:21 +01:00
Kay0u
34087d63c6 Merge branch '4.0-le-hotfix' into dev 2020-12-03 14:07:23 +00:00
Kay0u
a52b7f0153 Update changelog for 4.0.8.3 release 2020-12-03 14:04:53 +00:00
frju365
59018e4e8b [fix] Factorisons... 2020-12-03 13:58:51 +00:00
frju365
6736f25079 [FIX] New CN for LE. 2020-12-03 13:58:45 +00:00
Kay0u
7780aa658f
fix staging cert url 2020-12-03 14:39:40 +01:00
Kay0u
d15ccc6c23
use organization name for LE cert 2020-12-03 14:39:20 +01:00
Kayou
2e4074bd91
Merge pull request #1092 from frju365/patch-2
[FIX] New CN for LE.
2020-12-03 14:33:06 +01:00
frju365
cc2dbaa6b1
[fix] Factorisons... 2020-12-03 12:09:20 +01:00
frju365
22c1cd8e88
[FIX] New CN for LE. 2020-12-03 11:59:33 +01:00
Kayou
31cd163260
Merge pull request #1073 from ericgaspar/upgrade-n
Upgrade n version to upstream
2020-12-02 21:51:05 +01:00
Kayou
e91807f83c
Merge pull request #1091 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2020-12-02 21:49:45 +01:00
xaloc33
57d6f7718a Translated using Weblate (Catalan)
Currently translated at 100.0% (630 of 630 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ca/
2020-12-02 16:27:58 +00:00
yalh76
11cef18ab9 [enh] Adding composer helper 2020-12-01 23:19:07 +01:00
Alexandre Aubin
2277a28056
Merge pull request #1080 from YunoHost/doc-on-new-version
Create a PR on new tags (for new YNH version)
2020-11-30 23:33:32 +01:00
Alexandre Aubin
b07fc2061a
Do not reload php-fpm if conf breaks it (#1087) 2020-11-30 23:20:45 +01:00
Alexandre Aubin
74272de52c
We need to have YNH_MANIFEST_VERSION also defined during backup/restore (#1088)
* We need to have YNH_MANIFEST_VERSION also defined during backup/restore

Co-authored-by: Kayou <pierre@kayou.io>
2020-11-30 23:20:13 +01:00
Alexandre Aubin
199cc50f66 Ignore stupid warnings from apt 2020-11-29 19:55:39 +01:00
Alexandre Aubin
a54f99117b Fix typo in it string 2020-11-29 04:53:53 +01:00
Alexandre Aubin
5bf4a2d60b
Merge pull request #1082 from YunoHost/add-number-arg-parser
Add number arg parser
2020-11-29 04:09:27 +01:00
Alexandre Aubin
f6ac6bb4f7
Merge pull request #1081 from YunoHost/fix-show-config-panel
[fix] show config panel
2020-11-29 04:08:17 +01:00
Alexandre Aubin
ac6408fbae
Merge pull request #1072 from yunohost-bot/weblate-yunohost-core
Translations update from Weblate
2020-11-28 19:42:35 +01:00
Flavio Cristoforetti
450653a6ba Translated using Weblate (Italian)
Currently translated at 38.4% (242 of 629 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2020-11-28 18:39:25 +00:00
Flavio Cristoforetti
9fd0acb0df Translated using Weblate (Italian)
Currently translated at 31.7% (200 of 629 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2020-11-28 18:39:25 +00:00
Éric Gaspar
ccb6f5ccd8 Translated using Weblate (Portuguese)
Currently translated at 6.2% (39 of 629 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/pt/
2020-11-28 18:39:25 +00:00
Éric Gaspar
1385d34539 Translated using Weblate (French)
Currently translated at 96.9% (610 of 629 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2020-11-28 18:39:25 +00:00
Weblate
ed10b535ca Added translation using Weblate (Czech) 2020-11-28 18:39:25 +00:00
Flavio Cristoforetti
9ecb1fdd7c Translated using Weblate (Italian)
Currently translated at 28.6% (180 of 629 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2020-11-28 18:39:25 +00:00
Andrés Villarreal
5fc83c1009 Translated using Weblate (Spanish)
Currently translated at 75.9% (478 of 629 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/es/
2020-11-28 18:39:25 +00:00
Christian Wehrli
1b5068f313 Translated using Weblate (German)
Currently translated at 57.0% (360 of 631 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2020-11-28 18:39:25 +00:00
Kayou
c463cab829 Translated using Weblate (French)
Currently translated at 94.4% (596 of 631 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2020-11-28 18:39:25 +00:00
Quentí
d333b3e427 Translated using Weblate (Occitan)
Currently translated at 53.7% (339 of 631 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/oc/
2020-11-28 18:39:25 +00:00
Levin Herr
321d5263df Translated using Weblate (German)
Currently translated at 56.8% (359 of 631 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2020-11-28 18:39:25 +00:00
Christian Wehrli
dea78f693b Translated using Weblate (German)
Currently translated at 56.8% (359 of 631 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2020-11-28 18:39:25 +00:00
Alexandre Aubin
d5563170ef
Fix syntax issue found by linter 2020-11-28 19:39:18 +01:00
Alexandre Aubin
63166d05fa
Catch stupid error if root is not in /etc/passwd 2020-11-28 19:13:12 +01:00
Alexandre Aubin
38bd061b98
Merge pull request #1076 from YunoHost/translate_legacy_rules_in_ssowat_conf_persistent
Automatically translate legacy rules in /etc/ssowat/conf.json.persistent
2020-11-28 17:31:32 +01:00
Kay0u
96d7855de7
current_branch -> current_commit 2020-11-26 16:40:51 +01:00
Alexandre Aubin
b18fecce60
Merge pull request #1085 from YunoHost/enh-helpers-generation
add branch name in the helper template
2020-11-26 16:35:42 +01:00
Kayou
ae7efe820e
Use commit instead of the branch name 2020-11-26 16:28:52 +01:00
Alexandre Aubin
de3a83e37d
Merge pull request #1083 from YunoHost/kay0u-patch-1
Keep helpers consistent
2020-11-26 16:15:59 +01:00
Kay0u
146537dcc1
fix error on generate helper script 2020-11-26 14:12:45 +01:00
Kay0u
bbb68e8ef9
add branch name in the helper template 2020-11-26 11:45:01 +01:00
Kayou
7a0aa851a6
Keep helpers consistent 2020-11-26 11:00:24 +01:00
Kay0u
9bb94ebfdb
add test with a float 2020-11-26 09:59:42 +01:00
Kay0u
a84439a0f3
Merge branch 'add-number-arg-parser' of github.com:YunoHost/yunohost into add-number-arg-parser 2020-11-25 20:17:28 +01:00
Kay0u
c45feb7cae
fix test 2020-11-25 20:17:25 +01:00
Kayou
1ddca81f5a
Use isdigit 2020-11-25 19:13:50 +01:00
Kay0u
d79c9b4bf8
Add number arg parser 2020-11-25 18:42:18 +01:00
Alexandre Aubin
fe6333d2d2
Merge pull request #1079 from YunoHost/fix-optional-args
Fix optional args
2020-11-25 18:38:23 +01:00
Alexandre Aubin
b363ae88f4
Merge pull request #1078 from YunoHost/set-url-by-default
Set default url
2020-11-25 18:38:02 +01:00
Kay0u
ad4678362a
[fix] show config panel 2020-11-25 18:30:00 +01:00
Kayou
233141bd47
Create a PR on new tags (for new YNH version) 2020-11-25 15:41:16 +01:00
Kay0u
698d543c56
Fix tests 2020-11-25 11:47:57 +01:00
Kay0u
f0d3d36365
An optional password should be either empty or strong enough 2020-11-25 11:41:00 +01:00
Kay0u
93fd101663
check if password is strong enough only if it's not an optional argument 2020-11-25 11:14:15 +01:00
Kay0u
6a550f9318
Add tests for optional args with empty input 2020-11-25 11:12:58 +01:00
Alexandre Aubin
2f19f3311e Uniformize imports (who knows if there's a completely unrelated python module called 'permission' or 'utils' maybe...) 2020-11-25 03:23:39 +01:00
Alexandre Aubin
c39bfd309d Move all the webapp permissions handling at the end of app_install to app_register_url for the sake of clarity/consistency 2020-11-25 03:22:48 +01:00
Kay0u
f495f1cf71
default value (True) for sync_perm param in helpers 2020-11-25 02:11:06 +01:00
Kay0u
4ce9e4a446
set url when register and url 2020-11-24 23:10:57 +01:00
ljf (zamentur)
67e03e6f1b
[fix] Missing abuse@ 2020-11-23 09:59:43 +01:00
Alexandre Aubin
bfecb8b7dc Support more complex errors (be able to return additional data in a json structure) 2020-11-22 02:19:56 +01:00
Alexandre Aubin
3f8b922e92 Automatically translate legacy rules in /etc/ssowat/conf.json.persistent 2020-11-21 17:41:43 +01:00
Alexandre Aubin
fe888dd841 Fix stupid fr translations 2020-11-17 18:57:28 +01:00
Alexandre Aubin
1cb75497c4 Increase ldap size limit? 2020-11-17 15:29:24 +01:00
Alexandre Aubin
083b3ead74 Gotta return here to not create a regular setting for legacy settings... 2020-11-16 19:15:31 +01:00
Alexandre Aubin
0aaaeef807 Backup restore: Only ask that question about 'system already installed' if some system parts are actually going to be restored... 2020-11-16 18:42:04 +01:00
Alexandre Aubin
144f98ad44
Gotta define a default value to avoid unbound variable 2020-11-10 17:09:23 +01:00
ericgaspar
9269c55cb0
Upgrade n version to upstream 2020-11-08 23:15:35 +01:00
Alexandre Aubin
0fa17ec2b1 Typo in previous commit, we want the interface name directly.. 2020-11-07 00:45:26 +01:00
Alexandre Aubin
166df3a359 Merge branch 'hotfix-certificate-chain-double-entry' into dev 2020-11-04 23:33:55 +01:00
Alexandre Aubin
c640c045d9 Update changelog for 4.0.8.2 2020-11-04 23:32:40 +01:00
Alexandre Aubin
8c735cdc07 Remove stale code 2020-11-04 23:31:24 +01:00
Laurent Peuch
ade6481ccb [fix] intermediate_certificate is now included in signed certificate
Fixes #1644
2020-11-04 23:31:24 +01:00
Alexandre Aubin
685da06703 Unused string 2020-11-04 18:22:32 +01:00
Alexandre Aubin
37d7eace43 Merge branch 'privacy-hotfix' into dev 2020-11-04 17:53:12 +01:00
Alexandre Aubin
d4813e1378 Update changelog for 4.0.8.1 2020-11-04 17:26:31 +01:00
Alexandre Aubin
d34d6b1949 App installs logs were still disclosing secrets when shared sometimes... 2020-11-04 17:26:02 +01:00
Kay0u
45f91fec24
Fix tests, again 2020-11-02 19:45:04 +01:00
Alexandre Aubin
5cfaa7d72c Fix tests 2020-11-02 19:12:52 +01:00
Dave
6b04a4cae4 Define a new "yunohost app search" command 2020-11-02 15:30:23 +01:00
Alexandre Aubin
337387ccbc Make sure the account key exists when renewing certificate (in particular because the account key is not backup/restored) 2020-11-01 18:59:23 +01:00
Alexandre Aubin
a5b282e5c6 Diagnosis: report usage of backports repository in apt's sources.list 2020-10-31 19:14:33 +01:00
Alexandre Aubin
7aa3ff5255 Added a .strip() to moulinette's check_output because was tired of adding it all over the places 2020-10-31 18:58:19 +01:00
Alexandre Aubin
5c19fb0a42 List all permissions in app_info() output, not just those with actual urls ... otherwise for example the user won't be able to change the label from the webadmin for non-webapps ? 2020-10-31 14:13:16 +01:00
Alexandre Aubin
d96d06e915 Label ain't in setting anymore ... but let's add a shortcut to get it easily from app_info() 2020-10-31 14:12:16 +01:00
Alexandre Aubin
05b1a8f96e autopep8 --in-place -a -a -a --ignore E402,E501,E722 -r src/yunohost/*.py 2020-10-30 15:22:40 +01:00
Alexandre Aubin
485044335d autopep8 --in-place -a -a -a -a -a -r data/ doc/ tests/ src/yunohost/tests/ src/yunohost/utils/ src/yunohost/data_migrations/ 2020-10-30 15:18:16 +01:00
Alexandre Aubin
31b68b9463 == True -> is True 2020-10-30 15:16:56 +01:00
Alexandre Aubin
2cf7ff4eb4
Merge pull request #1061 from yunohost-bot/weblate-yunohost-core
Update from Weblate
2020-10-30 15:00:28 +01:00
Quentí
58619582e5 Translated using Weblate (Occitan)
Currently translated at 55.7% (342 of 614 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/oc/
2020-10-30 13:52:04 +00:00
Leandro Noferini
82c7e5de75 Translated using Weblate (Italian)
Currently translated at 29.5% (181 of 614 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2020-10-30 13:52:04 +00:00
Christian Wehrli
e9bab10ca4 Translated using Weblate (German)
Currently translated at 59.0% (362 of 614 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2020-10-30 13:52:04 +00:00
Colin Wawrik
b1273b4acc Translated using Weblate (German)
Currently translated at 59.0% (362 of 614 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2020-10-30 13:52:04 +00:00
Christian Wehrli
9ac243cf6e Translated using Weblate (German)
Currently translated at 57.5% (353 of 614 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2020-10-30 13:52:04 +00:00
Christian Wehrli
e064ae8d86 Translated using Weblate (German)
Currently translated at 56.1% (345 of 615 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2020-10-30 13:52:04 +00:00
Christian Wehrli
9d4e6b102c Translated using Weblate (German)
Currently translated at 55.6% (342 of 615 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2020-10-30 13:52:04 +00:00
ppr
b2dac2a45d Translated using Weblate (French)
Currently translated at 98.7% (607 of 615 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2020-10-30 13:52:04 +00:00
Christian Wehrli
8df033e542 Translated using Weblate (German)
Currently translated at 55.4% (341 of 615 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2020-10-30 13:52:04 +00:00
Alexandre Aubin
c45c182980
Merge pull request #861 from YunoHost/permission_protection
Extends permissions features
2020-10-30 14:51:52 +01:00
Alexandre Aubin
d2c6397f82 Fix typo in previous fix ;[ 2020-10-30 14:26:35 +01:00
Alexandre Aubin
51f5b3f716 Fix a regression for full-domain apps 2020-10-30 01:17:30 +01:00
Alexandre Aubin
6085918b03
Typo in comment
Co-authored-by: Kayou <pierre@kayou.io>
2020-10-30 00:55:50 +01:00
Alexandre Aubin
3a693b58de Fix an edge case where app is install on the root... 2020-10-30 00:19:17 +01:00
Alexandre Aubin
db14d73e11 Simplify(?) migration code 2020-10-30 00:11:40 +01:00
Alexandre Aubin
4e40f8b86a The key can't be in app_settings anymore because it got migrated ... 2020-10-30 00:04:40 +01:00
Alexandre Aubin
d4635f0eaa Fix i18n key IDs so that translators don't have to retranslate something already translated.. 2020-10-29 23:49:23 +01:00
Alexandre Aubin
122a9dd877 Remove the trailing _1 in migration id ..? 2020-10-29 23:48:50 +01:00
Alexandre Aubin
00a10c9a5d Fix some possible label inconsistencies when restoring apps permissions 2020-10-29 23:35:03 +01:00
Alexandre Aubin
e91f2de0dc Move 'label' migration to migrate_legacy_permission_settings in legacy.py, because the previous code could led to some inconsistencies when restoring apps backuped before the migration 2020-10-29 23:26:28 +01:00
Alexandre Aubin
e047b67b1d Move legacy permission setting migration to legacy.py 2020-10-29 23:16:27 +01:00
Alexandre Aubin
2cb6f4e2c2 Don't add show_tile for non-webapps apps 2020-10-29 22:26:13 +01:00
Alexandre Aubin
fd5c66db1b Do not display regexes in app_map because that doesn't really make sense ..? 2020-10-29 21:54:12 +01:00
Alexandre Aubin
e748f7a80e Fix handling of multiple legacy perm _regexes in app_setting set 2020-10-29 21:50:43 +01:00
Alexandre Aubin
c2b24d1e1c Keep track of the 'sublabel' for sub-permissions... c.f. also webadmin 2020-10-29 21:02:08 +01:00
Alexandre Aubin
092caba505 Fix some inconsistent stuff in the migration considering app_setting() now maps get/set/delete of legacy permission setting to the new permission system ... gotta use the low-level helpers to really access the value of legacy settings 2020-10-29 20:57:47 +01:00
Alexandre Aubin
66f5d14e0c Only display the deprecration warning when setting the setting (avoid displaying a huge wall of warnings when getting/deleting the legacy settings) 2020-10-29 20:33:48 +01:00
Alexandre Aubin
4279c108ba Don't forget to handle _regex legacy permission settings 2020-10-29 19:58:07 +01:00
Alexandre Aubin
e564ecd3c0 Be sligtly more robust when re-running the migration 2020-10-29 19:57:11 +01:00
Alexandre Aubin
a73683cb66
Merge pull request #1065 from YunoHost/fix-mariadb-max_allowed_packet
[fix] MySQL server has gone away in nextcloud
2020-10-27 17:17:23 +01:00
Alexandre Aubin
65673c4df6
Merge pull request #1060 from YunoHost/drop-manifest-arg-type-app
We don't need app-type argument for manifest questions ?
2020-10-27 17:01:08 +01:00
Alexandre Aubin
c979d1e640 Do not display a huge wall of boring logs while waiting for the service to start 2020-10-20 14:21:27 +02:00
Alexandre Aubin
4d494c7e7c
Merge pull request #1067 from YunoHost/fix-certificate-chain-double-entry
[fix] intermediate_certificate is now included in signed certificate
2020-10-14 18:01:55 +02:00
Alexandre Aubin
46268185c5 Remove stale code 2020-10-14 04:08:34 +02:00
Laurent Peuch
7154551882 [fix] intermediate_certificate is now included in signed certificate
Fixes #1644
2020-10-14 03:50:21 +02:00
Alexandre Aubin
cb1d02243e Do not advertise upgrades for bad-quality apps 2020-10-14 01:45:53 +02:00
Alexandre Aubin
711b64f81e No need to display this --test_status warning when adding postgresql service 2020-10-12 15:13:13 +02:00
ljf (zamentur)
02105568f8
[fix] MySQL server has gone away in nextcloud
[Warning] Aborted connection 110060 to db: 'nextcloud' user: 'nextcloud' host: 'localhost' (Got a packet bigger than 'max_allowed_packet' bytes)
2020-10-12 14:39:03 +02:00
Alexandre Aubin
3a23f9715f We don't need app-type argument for manifest questions 2020-10-08 20:04:50 +02:00
ljf
2b8f7e1494 [fix] SSH or SFTP permission migrations 2020-10-07 01:04:52 +02:00
Alexandre Aubin
b55c28c26a
Merge pull request #1059 from YunoHost/fix-warning-app-dependencies
[fix] Avoid warning message during app install
2020-10-05 00:08:22 +02:00
ljf (zamentur)
3a2b2d06e2
[fix] Avoid warning message during app install
Info: [########++..........] > Upgrading dependencies...
Warning: debconf: delaying package configuration, since apt-utils is not installed
2020-10-04 23:25:02 +02:00
Alexandre Aubin
ba884d5b6d Get rid of yunohost.local in main domain nginx conf ... because this interfer with using yunohost.local for postinstall. Just let it be handled by the default vhost 2020-10-03 16:32:31 +02:00
Alexandre Aubin
14644f0567
Merge pull request #1058 from Chostakovitch/fix_redis_hook
Fix redis hook (bash does not allow empty function)
2020-10-03 11:30:01 +02:00
Quentin Duchemin
6940ea1946
Fix redis hook (bash does not allow empty function
Add a dummy instruction equivalent to true
2020-10-03 11:24:47 +02:00
Alexandre Aubin
2c6736df29 These fail2ban jails do not exists anymore (since buster I guess ?) 2020-10-03 11:19:44 +02:00
Alexandre Aubin
fb44bd1c66 Try to uh simplify the whole full_path=True / False thing, most of the time internally we want it set to False 2020-10-01 23:47:56 +02:00
Alexandre Aubin
de96b094b2 Fix regression following small refactoring 2020-10-01 19:19:00 +02:00
Alexandre Aubin
a5df52200a Moaaar fixes 2020-09-30 23:11:41 +02:00
Alexandre Aubin
aaba3fe6aa Merge branch 'dev' into permission_protection 2020-09-30 19:07:12 +02:00
Alexandre Aubin
76f042cca4 Looks like it's typo day today ~_~ 2020-09-30 19:06:49 +02:00
Alexandre Aubin
62e9250297 Annnnd more typo/untested stuff #shame 2020-09-30 18:51:38 +02:00
Alexandre Aubin
a7d105ace6 Merge branch 'dev' into permission_protection 2020-09-30 18:48:26 +02:00
Alexandre Aubin
c94a7614ad Only restore set -x option if it was previously set 2020-09-30 18:43:11 +02:00
Alexandre Aubin
d5abc12b82 Many typo :| 2020-09-30 18:18:39 +02:00
Alexandre Aubin
c847b8265e The real display label is later defined as App (Subperm) so not doing that now 2020-09-30 18:04:44 +02:00
Alexandre Aubin
00d40e5d31 Typo 2020-09-30 18:03:53 +02:00
Alexandre Aubin
11d6cd0cd3 Try to fix uh a bunch of weird undefined stuff 2020-09-30 17:55:28 +02:00
Alexandre Aubin
07cec39af5 Move a bunch of function from domain.py to app.py because it's much simpler to have them here 2020-09-30 17:38:42 +02:00
Alexandre Aubin
1ce1ecc2be Fix tests, keep a special exception when we know we're checking full-domain apps 2020-09-30 17:30:04 +02:00
Alexandre Aubin
950dbc6b46
Merge pull request #935 from YunoHost/remove_legacy_settings
Remove legacy settings
2020-09-30 17:06:08 +02:00
Alexandre Aubin
9a221a8d0b
Merge pull request #1057 from yunohost-bot/weblate-yunohost-core
Update from Weblate
2020-09-29 23:10:49 +02:00
Éric Gaspar
82f89c5d70 Translated using Weblate (French)
Currently translated at 98.7% (607 of 615 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2020-09-29 14:24:44 +00:00
Éric Gaspar
45b1441b30 Translated using Weblate (French)
Currently translated at 98.9% (607 of 614 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2020-09-29 14:24:44 +00:00
Alexandre Aubin
6e69df3768 Add configuration tests for dnsmasq, fail2ban, slapd 2020-09-29 16:24:30 +02:00
Alexandre Aubin
452b178d44 journalctl -x in fact makes everything bloated, the supposedly additional info it displays does not contains anything relevant... 2020-09-29 15:57:47 +02:00
Alexandre Aubin
a1c1057ab4 Add redis hook to enforce permissions on /var/log/redis 2020-09-29 15:10:03 +02:00
Alexandre Aubin
f73ae4eeab c.f. issue 1274, test at the beginning of postinstall that iptables is working instead of miserably crashing at a later stage 2020-09-28 20:00:33 +02:00
Alexandre Aubin
c9b8e27e32 Typo :[ 2020-09-27 18:49:14 +02:00
Alexandre Aubin
dd9df5943e Set sub-permission labels as 'Mainlabel (Sublabel)' 2020-09-27 18:20:29 +02:00
Alexandre Aubin
b55d8e023f Typo 2020-09-24 21:55:34 +02:00
Alexandre Aubin
2b4e14cca7 Hardcode some permission labels for non-trivial legacy permissions 2020-09-24 21:46:33 +02:00
Alexandre Aubin
afee23f44a
Merge pull request #1056 from YunoHost/enh-display-self-signed-sha256
[enh] Add x509 fingerprint in /etc/issue
2020-09-24 21:26:50 +02:00
Alexandre Aubin
ea685c46d4
Merge pull request #1055 from YunoHost/add-config-helper
Add ynh_add_config helper
2020-09-24 21:25:34 +02:00
Alexandre Aubin
815c8fc49e Refactor app_setting to better separate legacy permission setting vs. regular setting, hopefully make the core more readable 2020-09-24 20:25:28 +02:00
Alexandre Aubin
eceb0aeca9
Merge pull request #1022 from Salamandar/stretch-unstable
Add default domain to API response
2020-09-24 17:30:24 +02:00
Alexandre Aubin
05d5d8b81d
Merge branch 'dev' into stretch-unstable 2020-09-24 17:30:09 +02:00
Alexandre Aubin
96873edba8
Merge pull request #818 from jershon/fix-1333-update_email_regex
Update the email regex so it accept the '+' sign.
2020-09-24 17:25:49 +02:00
Alexandre Aubin
f36a17d645
Merge pull request #860 from cyxae/enh-1355-sort-alphabetically-domains
[enh] Sort alphabetically the domain list
2020-09-24 17:22:54 +02:00
Alexandre Aubin
14e8888078 My god, please no, there's no damn jessie anymore 2020-09-23 22:45:26 +02:00
Alexandre Aubin
8f776d23fc
default -> main 2020-09-23 22:14:42 +02:00
Alexandre Aubin
5a905769dc
(Do no sort domain, to be done in other PR) 2020-09-23 22:12:47 +02:00
Alexandre Aubin
6bd5655830
Return main domain directly, not its index
Co-authored-by: ljf (zamentur) <zamentur@users.noreply.github.com>
2020-09-23 22:11:04 +02:00
Alexandre Aubin
b48f6521e2 Removing the pattern/required flag from --mail in user_create was intentional because it's now deprecated ... + restablish support xn-- stuff... 2020-09-23 21:55:15 +02:00
Alexandre Aubin
c0234a75f5 Better naming ? :s 2020-09-23 21:48:31 +02:00
Alexandre Aubin
9a4ba0bfe1 Merge branch 'dev' into fix-1333-update_email_regex 2020-09-23 21:45:44 +02:00
Alexandre Aubin
f2b6a883a8 Unused import 2020-09-23 21:37:08 +02:00
Alexandre Aubin
ae897994ca Remove legacy stuff, every instances that got migrated to Buster already have this applied 2020-09-23 21:33:10 +02:00
ljf (zamentur)
95f6772cba
[fix] Typo and ssh as system perm 2020-09-23 03:25:26 +02:00
ljf
4510b2b913 [fix] Add pattern email desc 2020-09-23 02:03:46 +02:00
Julien Jershon
69e20fa114 Update the email regex so it accept the '+' sign. Fix https://github.com/YunoHost/issues/issues/1333. 2020-09-23 01:56:40 +02:00
ljf
c8e24d898a [enh] Group same domains and subdomains together 2020-09-23 00:57:41 +02:00
cyxae
3cecc7cb30 Sort alphabetically domain list 2020-09-23 00:51:38 +02:00
Alexandre Aubin
4186f757e1 Cleanup some old stuff in postinstall code 2020-09-22 17:48:00 +02:00
Alexandre Aubin
c7347ef04f
Merge pull request #1054 from autra/fix_ynh_app_upstream_version
Fix ynh_app_upstream_version : restore ability to read manifest
2020-09-20 21:52:15 +02:00
Alexandre Aubin
ebe6c8a5f2
Apply suggestions from code review (comment indentation)
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
2020-09-20 21:15:59 +02:00
ljf
51c66dde94 [enh] Add x509 fingerprint in /etc/issue 2020-09-20 20:59:38 +02:00
Alexandre Aubin
3b94b23516
Update data/helpers.d/utils
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
2020-09-20 20:37:45 +02:00
Alexandre Aubin
1e79e50d68 Add ynh_add_config helper 2020-09-20 20:01:55 +02:00
Alexandre Aubin
bca4cd0c51 Admin/API wasn't logging or displaying messages anymore 2020-09-19 17:27:21 +02:00
Augustin Trancart
ffcd0e33ac Fix ynh_app_upstream_version : restore ability to read manifest
The documentation was saying A, the code was doing B, and calling
functions were expecting both A and B (see
ynh_check_app_version_changed). So this commit aims at making
everyone agree, by matching usage.
2020-09-19 15:29:38 +02:00
Josue-T
c4dc8b4cea
Fix typo
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2020-09-16 23:22:22 +02:00
Alexandre Aubin
8c92f011d5 Rework function that validate and sanitize permission url 2020-09-16 22:38:18 +02:00
Alexandre Aubin
2d3dee8d41 Simplify small piece of code 2020-09-16 20:59:19 +02:00
Alexandre Aubin
15d749fe5a
Merge pull request #1048 from yunohost-bot/weblate-yunohost-core
Update from Weblate
2020-09-16 19:43:49 +02:00
Alexandre Aubin
5c47a87cc0
Apply suggestions from code review
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
Co-authored-by: Kayou <pierre@kayou.io>
2020-09-16 19:43:18 +02:00
Christian Wehrli
10abc848bb Translated using Weblate (German)
Currently translated at 52.1% (319 of 612 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2020-09-16 17:29:00 +00:00
Christian Wehrli
e9fc4bc7f3 Translated using Weblate (German)
Currently translated at 51.3% (314 of 612 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2020-09-16 17:29:00 +00:00
Christian Wehrli
dff93e950b Translated using Weblate (German)
Currently translated at 50.7% (308 of 608 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2020-09-16 17:29:00 +00:00
Christian Wehrli
16b5257ad3 Translated using Weblate (German)
Currently translated at 48.7% (296 of 608 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2020-09-16 17:29:00 +00:00
Christian Wehrli
adc7a4f156 Translated using Weblate (French)
Currently translated at 96.4% (586 of 608 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2020-09-16 17:29:00 +00:00
Baptiste Wojtkowski
dd92828bf6 Translated using Weblate (French)
Currently translated at 96.4% (586 of 608 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2020-09-16 17:29:00 +00:00
Alexandre Aubin
d5f8eb06c8 Simplify code (suggestion from Bram) 2020-09-16 19:28:45 +02:00
Alexandre Aubin
56ebb06d2b Typo 2020-09-16 18:49:17 +02:00
Alexandre Aubin
b50bf9d7d3
Merge pull request #1047 from SiM/backup-msg
move BACKUP_CORE_ONLY message to standard output
2020-09-16 17:43:53 +02:00
Alexandre Aubin
2864c07266
Merge pull request #1046 from YunoHost/backup_download
Add possibility to download backups
2020-09-16 17:41:08 +02:00
Alexandre Aubin
ad98b82702
Merge pull request #1049 from YunoHost/enh-package-download-refactoring
[enh] Refactoring of package download process
2020-09-16 17:26:29 +02:00
Alexandre Aubin
8bd1758c8c
Merge pull request #1052 from YunoHost/detect-wrong-arguments
[fix] detect misformated arguments in getopts
2020-09-16 17:17:18 +02:00
Alexandre Aubin
674d8e7cb9 [fix] Minor issues in app questions parsing 2020-09-16 17:01:21 +02:00
Alexandre Aubin
776c1ab84b Update changelog for 4.0.8 2020-09-16 16:27:49 +02:00
Alexandre Aubin
b59ed4120b Diagnose ssl libs installed from sury (#1053)
* Small fix / syntax improvement in apt conf regen hook

* Diagnose, report and add a tip if some ssl libs are installed from Sury (shouldnt happen with the new pinning strategy, but some user still encounter issues because of this because of legacy installs)
2020-09-16 16:21:52 +02:00
Alexandre Aubin
92068590a2 [enh] Better problematic apt dependencies auto-investigation mechanism (#1051)
* [enh] Better problematic apt dependencies auto-investigation mechanism

* Misc tweak / fixes following tests
2020-09-16 16:21:52 +02:00
Alexandre Aubin
532cd5e87e Force locale to C during postgresql migration to avoid some stupid issue related to locale 2020-09-16 16:21:50 +02:00
Alexandre Aubin
d2c0cc9240 Use php7.3 by default in CLI 2020-09-16 16:21:00 +02:00
Kayou
7dcf4b008b Epic bugfix 2020-09-16 16:21:00 +02:00
Alexandre Aubin
8d4f36e131 Remove pipe char when trying to re-run apt with dry-run ... Because apt becomes absolutely crazy and make every package installed conflict with weird stuff 2020-09-16 16:21:00 +02:00
Alexandre Aubin
a60cd4f559
Diagnose ssl libs installed from sury (#1053)
* Small fix / syntax improvement in apt conf regen hook

* Diagnose, report and add a tip if some ssl libs are installed from Sury (shouldnt happen with the new pinning strategy, but some user still encounter issues because of this because of legacy installs)
2020-09-16 16:18:10 +02:00
Alexandre Aubin
d243fe76ce
[enh] Better problematic apt dependencies auto-investigation mechanism (#1051)
* [enh] Better problematic apt dependencies auto-investigation mechanism

* Misc tweak / fixes following tests
2020-09-16 16:14:03 +02:00
Alexandre Aubin
4805d43b96 Force locale to C during postgresql migration to avoid some stupid issue related to locale 2020-09-16 15:27:32 +02:00
Alexandre Aubin
6a618b0f33 Use php7.3 by default in CLI 2020-09-16 15:24:28 +02:00
Kayou
6945867f86
detect wrong arguments 2020-09-16 13:23:10 +02:00
Kayou
15a7967f47
Epic bugfix 2020-09-15 20:53:26 +02:00
Alexandre Aubin
9156b1e56a Fix warnings and weird stuff >_> 2020-09-14 17:54:20 +02:00
Alexandre Aubin
ca5f264baf Remove pipe char when trying to re-run apt with dry-run ... Because apt becomes absolutely crazy and make every package installed conflict with weird stuff 2020-09-14 17:06:40 +02:00
Kay0u
db9d2aac30
permissions in app_info 2020-09-14 12:09:55 +02:00
Alexandre Aubin
56644a5ffe Update changelog for 4.0.7.1 2020-09-11 21:10:52 +02:00
ljf (zamentur)
1b62ce0240 [fix] Reduce right given to ynh users with ssh (#1050)
* [fix] Avoid ynh user to be able to use X11 forwarding

* [fix] Avoid some bad situations

* [fix] Remove chroot restrictions and x11 authorization

* Update comments

Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2020-09-11 20:35:08 +02:00
Maniack Crudelis
d2bd6b6c12 Add doc about is_big 2020-09-11 20:29:23 +02:00
ljf (zamentur)
5923114b20
[fix] Reduce right given to ynh users with ssh (#1050)
* [fix] Avoid ynh user to be able to use X11 forwarding

* [fix] Avoid some bad situations

* [fix] Remove chroot restrictions and x11 authorization

* Update comments

Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2020-09-11 20:27:40 +02:00
Alexandre Aubin
99b0a4184d
Apply suggestions from code review
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
2020-09-11 16:47:49 +02:00
Alexandre Aubin
4c9f4f228d
Apply suggestions from code review
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
2020-09-11 16:46:48 +02:00
Alexandre Aubin
a76bf11ab6
Merge pull request #773 from YunoHost/enh-relay-smtp
[enh] Allow admin to specify an smtp relay
2020-09-11 00:30:44 +02:00
Josue-T
9b0d839492
Fix locales/en.json
Co-authored-by: Kayou <pierre@kayou.io>
2020-09-10 21:45:22 +02:00
Alexandre Aubin
0ad014ad1f
Merge branch 'dev' into enh-relay-smtp 2020-09-10 17:50:10 +02:00
ljf
78c5ea9098 [enh] Refactoring of package download process 2020-09-10 04:02:25 +02:00
ljf (zamentur)
bc2de62c7b
[fix] Typo in setting name 2020-09-10 03:29:09 +02:00
ljf (zamentur)
ce9689e0ef
[enh] Force encrypt if we are using an smtp relay
Thanks to @khimaros for this suggestion
2020-09-10 03:27:13 +02:00
Alexandre Aubin
d1d24cb6eb
Merge pull request #1013 from YunoHost/refactoring-yunohost-format-arguments-parsing
WIP: Refactoring yunohost format arguments parsing
2020-09-10 02:18:51 +02:00
Alexandre Aubin
b9189b1979 Fix tests 2020-09-09 23:58:30 +02:00
Alexandre Aubin
250f69028a Moar fixes 2020-09-09 23:24:39 +02:00
Alexandre Aubin
c6905ed2c8 Merge branch 'dev' into permission_protection 2020-09-09 02:22:35 +02:00
Alexandre Aubin
9cdf8dffc9 Fix linter and tests 2020-09-09 02:21:26 +02:00
Alexandre Aubin
7483d04f54 Fix a weird issue that may arise during test, strangely unspotted so far 2020-09-09 00:06:23 +02:00
Alexandre Aubin
864a186862
Merge branch 'dev' into refactoring-yunohost-format-arguments-parsing 2020-09-08 22:25:09 +02:00
Alexandre Aubin
bfa0f304aa mail-aliases key only exists if it's not empty? 2020-09-08 22:23:03 +02:00
Alexandre Aubin
07fb335972 Missing imports 2020-09-08 21:20:40 +02:00
Alexandre Aubin
9792cfed22 Attempt to clarify/simplify some complex pieces of code 2020-09-08 21:13:55 +02:00
Alexandre Aubin
db93307fea
Update src/yunohost/app.py
Co-authored-by: Kayou <pierre@kayou.io>
2020-09-08 19:48:05 +02:00
Alexandre Aubin
33e1567c54 Minor wording/typo, semantic improvements 2020-09-08 18:52:59 +02:00
SiM
9a2a6385bb move BACKUP_CORE_ONLY msg to standard output 2020-09-08 18:10:34 +02:00
Kayou
ddb2be23a2
Merge branch 'dev' into refactoring-yunohost-format-arguments-parsing 2020-09-08 18:05:02 +02:00
Alexandre Aubin
50f68e2886 Properly handle case where no match from grep 2020-09-08 17:25:11 +02:00
Alexandre Aubin
83585b2375
Merge branch 'dev' into permission_protection 2020-09-08 17:06:49 +02:00
Alexandre Aubin
8b98360fd2
Merge pull request #1042 from YunoHost/code-cleanup
Code cleanup
2020-09-08 16:55:58 +02:00
Alexandre Aubin
1be93094b5 Fix syntax error + more minor refactoring/cleanup 2020-09-08 16:16:35 +02:00
Alexandre Aubin
42f430d234 Get rid of misleading/old 'no_compress' option 2020-09-08 16:02:47 +02:00
Alexandre Aubin
835701d590 Clean more madness / fix tests 2020-09-08 15:49:54 +02:00
Alexandre Aubin
a6bbe41705 Fuck it these messages are confusing people and we don't need them 2020-09-08 01:18:43 +02:00
Alexandre Aubin
4c75620ee9
Merge branch 'dev' into code-cleanup 2020-09-06 22:16:06 +02:00
Alexandre Aubin
5807d25667 Add possibility to download backups 2020-09-06 21:24:06 +02:00
Alexandre Aubin
9640b22a23 Do not miserably fail if no oom_reaper line found... 2020-09-05 19:15:34 +02:00
Alexandre Aubin
fad373c016 Forgot to propagate change in user_create here as well 2020-09-05 19:05:45 +02:00
Alexandre Aubin
a5a3a905b6
Merge branch 'dev' into code-cleanup 2020-09-05 18:58:47 +02:00
Alexandre Aubin
34227b6172 Remove unused i18n strings 2020-09-05 18:57:11 +02:00
Alexandre Aubin
f8ea418a93
Merge pull request #1045 from yunohost-bot/weblate-yunohost-core
Update from Weblate
2020-09-05 18:48:32 +02:00
Yifei Ding
1307e3b286 Translated using Weblate (Chinese (Simplified))
Currently translated at 2.3% (14 of 609 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/zh_Hans/
2020-09-05 16:43:06 +00:00
Leandro Noferini
91c301dc7d Translated using Weblate (Italian)
Currently translated at 23.0% (140 of 609 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2020-09-05 16:43:06 +00:00
Christian Wehrli
51e3e0ea0f Translated using Weblate (French)
Currently translated at 95.2% (580 of 609 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2020-09-05 16:43:06 +00:00
Christian Wehrli
d83a718038 Translated using Weblate (German)
Currently translated at 49.3% (300 of 609 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2020-09-05 16:43:06 +00:00
Alexandre Aubin
66dc1dc578 Merge branch 'dev' into 4.1 2020-09-05 18:42:17 +02:00
Alexandre Aubin
3bc14bc280
Merge pull request #962 from ekhae/enh-1365-mail-user-creation-ux
[enh] c.f. issue 1365, asking a mail address during user creation is confusing ux, people try enter their existing mail addresses
2020-09-05 18:37:26 +02:00
Alexandre Aubin
5805acbf6a Reimplement --mail as a deprecated option 2020-09-05 18:35:35 +02:00
Alexandre Aubin
3fc4baa08f Propagate change to unit tests 2020-09-05 17:21:45 +02:00
Alexandre Aubin
d49f1ce733 Update changelog for 4.0.7 2020-09-04 14:35:16 +02:00
Alexandre Aubin
0ea492bef9
Merge pull request #1044 from YunoHost/fix-sso-unavailable
[fix] Make sure app nginx confs do not prevent the loading of /yunohost/sso
2020-09-03 23:48:22 +02:00
Alexandre Aubin
cc4db7a6f6
Add a comment explaining why the location is empty 2020-09-03 23:47:24 +02:00
ljf
f92b84bd94 [fix] SSO unavailable 2020-09-03 22:27:46 +02:00
Alexandre Aubin
3b6830bdc7 Merge branch 'dev' into 4.1 2020-09-03 19:15:17 +02:00
Kayou
cb3ff1ed83
Woups, my grep in ci/build 2020-09-03 19:14:14 +02:00
Alexandre Aubin
a2726d595a
Merge pull request #1043 from YunoHost/ci-debian-depends
Try to clone moulinette and ssowat with the version in the debian/control
2020-09-03 19:12:58 +02:00
Kayou
37e8ba57ac
Update build.gitlab-ci.yml 2020-09-03 19:09:29 +02:00
Kayou
e9e7fba41d
Update build.gitlab-ci.yml 2020-09-03 18:59:01 +02:00
Kayou
ca97118116
Try to clone moulinette and ssowat with the version in the debian/control 2020-09-03 18:51:18 +02:00
Alexandre Aubin
a1807d1f88 Update flake8 lint test policy 2020-09-03 17:41:33 +02:00
Alexandre Aubin
49f6394233 autopep8 --in-place -a -a -a --ignore E402,E501,E722 -r src/yunohost/{__init__.py,certificate.py,diagnosis.py,domain.py,dyndns.py,firewall.py,hook.py,log.py,regenconf.py,service.py,settings.py,ssh.py,tools.py} 2020-09-03 17:37:08 +02:00
Alexandre Aubin
ecbd63636b autopep8 --in-place -a -a -a -a -a -r data/ doc/ tests/ src/yunohost/tests/ src/yunohost/utils/ src/yunohost/data_migrations/ 2020-09-03 17:36:59 +02:00
Alexandre Aubin
fa19c9480c Cleanup unused imports / misc 'fatal' flake8 errors 2020-09-03 17:01:24 +02:00
Alexandre Aubin
1288159a39 Require explicitly php7.3-foo packages because in some cases Sury's php7.4- packages are installed and php7.3-fpm doesn't get installed ... 2020-09-03 16:13:40 +02:00
Alexandre Aubin
6f75b889b7
Merge pull request #955 from YunoHost/parent-relation-between-log-operations
Keep track of 'parent' operation in operation loggers
2020-09-03 15:52:00 +02:00
Alexandre Aubin
b869f3a7d7
Merge pull request #864 from YunoHost/abort_if_up_to_date_manifest
Implement `upgrade_only_if_version_changes` in manifest
2020-09-03 15:51:47 +02:00
Alexandre Aubin
88997f5728 Small old issue where the number of line filtered doesnt match the requested number, and then the admin doesn't display the 'show more line' button.. 2020-09-02 20:57:51 +02:00
Alexandre Aubin
7edd3ff840 Minor fixes after tests.. 2020-09-02 20:30:50 +02:00
Alexandre Aubin
8831c638e6 Add options to include metadata about suboperations 2020-09-02 19:33:48 +02:00
Alexandre Aubin
955508c33a Wording 2020-09-02 17:03:14 +02:00
Alexandre Aubin
083776bc4a Get rid of example settings, only keep them for tests 2020-09-02 16:30:29 +02:00
Alexandre Aubin
b10393a5e1
Merge pull request #1020 from YunoHost/do-not-compress-backups
Backup to uncompressed tar by default
2020-09-02 16:07:50 +02:00
Alexandre Aubin
1da9666da7 Add description for new setting about backup compression 2020-09-02 16:07:25 +02:00
ljf (zamentur)
b941874664
[fix] Accept all domain 2020-09-02 12:56:41 +02:00
ljf (zamentur)
ef4c3066ec
[fix] Accept chinese/arabic domain 2020-09-02 12:55:37 +02:00
Alexandre Aubin
9a7bd77269 Get rid of unused complexity for other log categories ... it's been since 3.2 and we only have operations 2020-09-01 18:09:15 +02:00
Alexandre Aubin
0f2e9ab1d6 Lazy loading of smtplib to reduce memory footprint a bit 2020-09-01 17:29:24 +02:00
Alexandre Aubin
d00421641c
Merge branch '4.1' into parent-relation-between-log-operations 2020-09-01 17:22:36 +02:00
Alexandre Aubin
bd064e317e
Use global var 2020-09-01 17:22:07 +02:00
Alexandre Aubin
624c7eaf77 Move import to top of file 2020-09-01 17:21:12 +02:00
Alexandre Aubin
6c3a74c5ac Handle case where the lock doesn't exist : just assume we're the root logger 2020-09-01 17:19:50 +02:00
Alexandre Aubin
080fe88b2d
Duplicate Depends entry 2020-09-01 17:07:24 +02:00
Alexandre Aubin
84c1a0ea88 Update changelog for 4.0.6.1 2020-09-01 02:00:50 +02:00
Alexandre Aubin
f46e318374 [fix] Stupid syntax issue in dovecot conf 2020-09-01 01:59:49 +02:00
Alexandre Aubin
43417bd00b Update changelog for 4.0.6 2020-08-31 20:00:23 +02:00
Alexandre Aubin
3612ac434d Enable this behavior by default (no need to enable the option in the app manifest) 2020-08-31 19:45:41 +02:00
Alexandre Aubin
dea6a18712 Polish UX 2020-08-31 19:33:09 +02:00
Alexandre Aubin
4a15358ed9 Revert a few unecessary changes / polish code 2020-08-31 19:33:09 +02:00
ekhae
78a2d012bb UX improved about mail and domains 2020-08-31 19:33:09 +02:00
Alexandre Aubin
9fe7c43aef Merge branch 'dev' into 4.1 2020-08-31 19:30:53 +02:00
Alexandre Aubin
41813744a8 Explicitly require php-fpm >= 7.3 ... 2020-08-31 19:15:27 +02:00
Alexandre Aubin
48ee808711
Merge branch '4.1' into do-not-compress-backups 2020-08-31 19:10:38 +02:00
Alexandre Aubin
acaa05c2ca Fix a small issue where there would be duplicated entries in backup_list 2020-08-31 19:09:28 +02:00
Alexandre Aubin
839a7b9a47 Add a global setting to still compress tar archives 2020-08-31 19:08:43 +02:00
Alexandre Aubin
7ccc7fa13e No moar borg i18n keys 2020-08-31 18:51:23 +02:00
Alexandre Aubin
659d23ceb3 Simplify the damn spaggethi 2020-08-31 18:36:57 +02:00
Alexandre Aubin
efc2e7ef1d Fuck it let's keep that code simple, we don't need to maintain the list of exception that a command is likely to return, this is supposed to be simple to read if code is well written 2020-08-31 17:51:41 +02:00
Alexandre Aubin
98e972a49a Get rid of unimplemented Borg stuff because that code is complicated enough already -_- 2020-08-31 17:32:03 +02:00
Alexandre Aubin
503e08b58b Add xmpp-upload stuff in dnsmasq conf 2020-08-31 16:41:54 +02:00
Alexandre Aubin
bc7344b636 Use proper templating for dnsmasq conf 2020-08-31 16:41:31 +02:00
Alexandre Aubin
85ad965e4d
Merge pull request #1041 from YunoHost/add-apt-conf-regen-hook
Add apt conf regen hook
2020-08-31 15:17:23 +02:00
Alexandre Aubin
346728e55d Remove the pinning stuff of sury from the helpers, since it's now managed by the regenconf core 2020-08-28 22:31:10 +02:00
Alexandre Aubin
a23233ab0f Add apt regenconf hook to manage sury pinning policy on all 2020-08-28 22:30:20 +02:00
Alexandre Aubin
b7c4f8f85e
Merge pull request #1040 from yunohost-bot/weblate-yunohost-core
Update from Weblate
2020-08-28 18:46:13 +02:00
Christian Wehrli
c29b816efc Translated using Weblate (German)
Currently translated at 39.2% (239 of 609 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2020-08-28 16:40:44 +00:00
xaloc33
74afd229e5 Translated using Weblate (Catalan)
Currently translated at 100.0% (609 of 609 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ca/
2020-08-28 16:40:41 +00:00
Titus PiJean
683c06308f Translated using Weblate (French)
Currently translated at 90.3% (550 of 609 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2020-08-28 16:40:03 +00:00
Alexandre Aubin
5a4c09d2c7 Yunohost 4.1 requires moulinette 4.1 2020-08-28 17:58:16 +02:00
Alexandre Aubin
ed528d43bf Fix stupid typo in postfix conf T_T 2020-08-28 17:55:02 +02:00
Alexandre Aubin
f6a25dcbb3 Bump version number to fix the CI 2020-08-28 17:27:56 +02:00
Alexandre Aubin
f5acbffb5c Add a diagnosis of processes rencently killed by oom_reaper 2020-08-28 17:12:07 +02:00
Alexandre Aubin
2ee08189ba Don't log helper loading because hmpf 2020-08-28 15:06:28 +02:00
Alexandre Aubin
77ce657ae1 Ugly hack to have the name of the main logger, otherwise error/exception messages ain't displayed 2020-08-27 19:22:09 +02:00
Alexandre Aubin
5f242aea18 Fix code that was half broken because of undefined vars :| 2020-08-27 17:54:44 +02:00
Alexandre Aubin
4286523653 Merge branch 'dev' into 4.1 2020-08-27 16:52:47 +02:00
Alexandre Aubin
1ef1dbf564
Merge pull request #981 from YunoHost/default_questions_for_app_args
Default 'ask' questions for common app manifest args
2020-08-27 16:25:12 +02:00
Alexandre Aubin
f9c075097c Update changelog for 4.0.5 2020-08-25 20:09:38 +02:00
Alexandre Aubin
e5e26c2b81 Typo in postfix's conf template 2020-08-25 16:46:02 +02:00
Kayou
d491b3208b
Update acme_tiny to 4.1.0 (#1037) 2020-08-24 23:25:40 +02:00
Alexandre Aubin
6ec0e7b6af Fix stupid encoding issue when fetching service description 2020-08-24 15:41:41 +02:00
Josué Tille
8e1e1e607b
Merge branch 'permission_protection' into remove_legacy_settings 2020-08-23 22:01:55 +02:00
Josué Tille
e6da35abd1
Merge branch 'dev' into permission_protection 2020-08-23 21:48:18 +02:00
Alexandre Aubin
8454f2ec12 Recursively enforce ownership for rspamd 2020-08-21 20:40:55 +02:00
Josue-T
7c6748e928
Merge branch '4.1' into abort_if_up_to_date_manifest 2020-08-18 21:07:30 +02:00
Alexandre Aubin
a891d20a17 Merge remote-tracking branch 'origin/add-black' into dev 2020-08-18 19:05:51 +02:00
Alexandre Aubin
d902d9eb6c
Merge pull request #1038 from YunoHost/fix-ci
trying to fix the ci
2020-08-18 15:20:35 +02:00
Alexandre Aubin
2d661737b3 Update dovecot configuration now that we have a DH param 2020-08-18 13:29:02 +02:00
Alexandre Aubin
89bcf1ba6d Update postfix configuration now that we're on Buster + we have DH param 2020-08-18 13:25:38 +02:00
Kay0u
0c9b6eec98
fix travis 2020-08-18 00:02:13 +02:00
Kayou
03e84f9ebd
Merge pull request #1039 from YunoHost/impove-tox,-add-python3-linter
imove tox and add python3 linter
2020-08-17 23:55:35 +02:00
Kay0u
93bff46bc3
imove tox and add python3 linter 2020-08-17 23:54:20 +02:00
Kay0u
0fb5b13924
trying to fix the ci 2020-08-17 19:51:32 +02:00
Kay0u
485c65a9a5
apt-daily is now disabled by the CI 2020-08-15 11:05:59 +02:00
Kay0u
ca0a42f2b4
git clone with depth during CI 2020-08-14 18:08:51 +02:00
Alexandre Aubin
9b396693cf
Merge pull request #982 from YunoHost/default-value-for-user-args
During app installs, set default answer for user-type args to main user
2020-08-14 17:31:43 +02:00
Alexandre Aubin
8a5914c2e7
Merge branch '4.1' into default-value-for-user-args 2020-08-14 17:31:23 +02:00
Alexandre Aubin
e4d637f490
Merge pull request #1033 from ericgaspar/patch-caps-php
Add capitalization to PHP
2020-08-14 17:24:05 +02:00
Alexandre Aubin
814f5043e3
Merge pull request #922 from YunoHost/clean-usr-bin-yunohost
YunoHost "as a python lib" ? Clean usr/bin/yunohost and yunohost-api ... Move moulinette initialization and other stuff to src/yunohost/__init__.py
2020-08-14 15:43:27 +02:00
Alexandre Aubin
f3a4334a13 Upgrade nginx configuration according to Mozilla guidelines now that we're on Buster 2020-08-14 14:50:54 +02:00
Alexandre Aubin
7b1f02e01f Fix ref to variable in i18n string (c.f. issue 1647) 2020-08-14 13:27:07 +02:00
Alexandre Aubin
1697943afc Update changelog for 4.0.4 2020-08-12 18:15:32 +02:00
Alexandre Aubin
4b14402c5a Moaaar debug 2020-08-12 18:13:15 +02:00
Alexandre Aubin
4cb6f7fddc Improve debugging for xtables -> nftables migration 2020-08-12 17:21:32 +02:00
Alexandre Aubin
59bd7d6664 Improve robustness of postgresql 9.6 -> 11 migration (in particular dropcluster in case cluster 11 doesn't exists yet) 2020-08-12 17:12:21 +02:00
Alexandre Aubin
accc2da4e3 Improve debugging of postgresql 9.6 -> 11 migration 2020-08-12 17:11:58 +02:00
Kayou
e35d806ae1
Update lint.gitlab-ci.yml 2020-08-10 12:04:34 +02:00
Kayou
53bc87149a
Update lint.gitlab-ci.yml 2020-08-10 11:40:53 +02:00
ericgaspar
05ff84e5af
Update php 2020-08-04 18:36:19 +02:00
Alexandre Aubin
fed5c2c1e0 Stupid fr wording ~_~ 2020-07-29 18:49:39 +02:00
Alexandre Aubin
b4ced44ad4 Update changelog for 4.0.3 2020-07-29 17:10:41 +02:00
Alexandre Aubin
6a9a7b1cf6 Update changelog for 4.0.2~beta 2020-07-27 19:26:18 +02:00
Alexandre Aubin
c2422d8c3e Let's create the home after we validate that admin actually does exists 2020-07-27 19:26:18 +02:00
Kay0u
509d417070 create admin home folder 2020-07-27 19:26:18 +02:00
Alexandre Aubin
1f2061c9ee Fix version number >.> 2020-07-27 19:26:18 +02:00
Alexandre Aubin
c5ae774e8d Funny jokes with char meanings in deb versions, apparently using a dash makes everything explode suddently >.> 2020-07-27 19:26:18 +02:00
Alexandre Aubin
5a6dca897b Update changelog for 4.0.0-alpha1 2020-07-27 19:26:18 +02:00
Josué Tille
f22f64103a Backup/restore also slapd.ldif
We need this because the regen-conf need to get the state of the slapd config database if it is customized or not and if some update are need.
2020-07-27 19:26:18 +02:00
Josué Tille
7c10ea6b93 Fix index config 2020-07-27 19:26:18 +02:00
Josué Tille
8af56c82ef slapd.conf is no more used, but ldap.conf need to be saved/restored 2020-07-27 19:26:18 +02:00
Alexandre Aubin
e28c618e67 Those single quotes were probably meant to be double quotes? 2020-07-27 19:26:18 +02:00
Alexandre Aubin
2bbff1d264 Factorize the actual slapd regeneration 2020-07-27 19:26:18 +02:00
Alexandre Aubin
a179e9107a Misc comment improvements? 2020-07-27 19:26:18 +02:00
Alexandre Aubin
4eb93d62e9 Improve comment about editing slapd.ldif 2020-07-27 19:26:18 +02:00
Josue-T
c0d3a361e3 Update data/hooks/conf_regen/06-slapd
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2020-07-27 19:26:18 +02:00
Josué Tille
e6a52f09bd [fix] Clean old files 2020-07-27 19:26:18 +02:00
Josué Tille
9bb8c0437d Rewrite slapd regen-conf for new config file 2020-07-27 19:26:18 +02:00
Josué Tille
d73a71fa61 Rewrite LDAP configuration in LDIF format 2020-07-27 19:26:18 +02:00
Josué Tille
7099750323 Change file type of LDAP schema from 'schema' to ldif 2020-07-27 19:26:18 +02:00
Alexandre Aubin
ca20eda9ca [firewall] Let's not disable nftables that makes the script crash if it's not installed and we don't really need to disable it anyway since it's already configured to conflict 2020-07-27 19:26:18 +02:00
Alexandre Aubin
5914740957 [firewall] nftables is the new iptables-persistent and it should conflict with yunohost-firewall 2020-07-27 19:26:18 +02:00
Alexandre Aubin
bbb6a4ce91 [firewall] Add draft of migration for xtable->nftable 2020-07-27 19:26:18 +02:00
Alexandre Aubin
56a5b5aae2 [psql] Fix hardcoded fix for postgresql status check 2020-07-27 19:25:24 +02:00
Alexandre Aubin
50f1e9a681 [psql] Add migration for Postgresql cluster upgrade from 9.6 to 11 2020-07-27 19:25:24 +02:00
Alexandre Aubin
70fab24247 [psql] Upgrade postgresql helper to use version 11 2020-07-27 19:23:53 +02:00
Alexandre Aubin
73356eed75 [php] Also patch php7.0 settings on the fly during restore 2020-07-27 19:23:53 +02:00
Alexandre Aubin
b6d1bb7901 [php] Also migrate app settings to fix inconsistencies (e.g. during remove of migrated apps) 2020-07-27 19:23:53 +02:00
Alexandre Aubin
a90540ddeb [php] php-mcrypt doesn't exist anymore in buster 2020-07-27 19:23:53 +02:00
Alexandre Aubin
b747c17369 [php] Also patch stuff in subfolers inside scripts/ (some apps have an experimental_helpers/ folder) 2020-07-27 19:23:53 +02:00
Alexandre Aubin
9dbf626b36 [php] More ugly hack for php helpers shipped by apps that assume php 7.0 by default 2020-07-27 19:23:53 +02:00
Alexandre Aubin
2c7b3a1fd1 [php] Add migration procedure for php7.0 -> php7.3 pool files 2020-07-27 19:23:53 +02:00
Alexandre Aubin
5930b6ddf2 [php] Now use php7.3 instead of php7.0 + autopatch app scripts like we did for php5 2020-07-27 19:23:53 +02:00
Alexandre Aubin
57ce323cab [conf] Update nslcd and nsswitch stuff using new Buster's default configs + get rid of nslcd service, only keep the regen-conf part 2020-07-27 19:23:07 +02:00
Alexandre Aubin
01ccd5dd8c [conf] Small tweak in dovecot conf (deprecated settings) 2020-07-27 19:23:07 +02:00
Alexandre Aubin
16ce8bf693 [conf] Remove deprecated option in sshd conf, c.f. https://patchwork.openembedded.org/patch/139981/ 2020-07-27 19:23:07 +02:00
Alexandre Aubin
fa59ad35a9 [conf] Automatically disable/stop systemd-resolved that conflicts with dnsmasq on fresh setups ... 2020-07-27 19:23:07 +02:00
Alexandre Aubin
fa5130a7fc [cleanup] Move migration 0011 code to legacy.py 2020-07-27 19:23:07 +02:00
Alexandre Aubin
bde5dab71d [cleanup] Fix typo in string name, remove stale string 2020-07-27 19:22:21 +02:00
Alexandre Aubin
06c5f23c2b [cleanup] These arent used anywhere 2020-07-27 19:22:21 +02:00
Alexandre Aubin
60dd1fc848 [cleanup] Remove legacy migrations and code snippets which won't be needed anymore on buster 2020-07-27 19:22:21 +02:00
Alexandre Aubin
04894b1b87 [deb] Update moulinette and ssowat required version to >= 4.0.0~alpha 2020-07-27 19:21:12 +02:00
Alexandre Aubin
d935ab64f6 [deb] Add conflicts with versions from backports for critical dependencies 2020-07-27 19:21:12 +02:00
Alexandre Aubin
e9d5abf5e6 [deb] Clean control file, remove some legacy Conflicts and Replaces -- it is safe to do so because 3.x instances already have these Conflicts / Replaces, so it's okay to remove them for 4.x 2020-07-27 19:21:12 +02:00
Alexandre Aubin
4f9216b07c [deb] Tmp version for debian builds during experimental/alpha dev for Buster 2020-07-27 19:21:12 +02:00
Étienne Mollier
0a9f4d59cb [fix] Ldap interface seems to expect lists everywhere now? 2020-07-27 19:20:36 +02:00
Alexandre Aubin
834b767000 [fix] Explicitly create home using mkhomedir_helper instead of obscure pam rule that doesn't work anymore 2020-07-27 19:20:36 +02:00
Kay0u
8d5422d13f [fix] Fix getopts and helpers 2020-07-27 19:20:36 +02:00
Alexandre Aubin
bc19bef59e Workaround for custom backup/restore hook issue 2020-07-27 19:20:36 +02:00
Alexandre Aubin
6b72fc5fc5 It just make no sense to backup/restore the mysql password... 2020-07-27 19:20:36 +02:00
Alexandre Aubin
02385c58b0 Update changelog for 3.8.5.5 2020-07-27 19:13:28 +02:00
Alexandre Aubin
4d7423c498
Merge pull request #1030 from ericgaspar/patch-1
Update en.json
2020-07-27 18:15:28 +02:00
Alexandre Aubin
852dea07f3 Tweak custom disclaimer about the migration still being a bit touchy in preparation for stable release 2020-07-27 17:13:00 +02:00
Kayou
fca1df6805
[FIX] patch sources list for armbian (#1028)
* [FIX] patch sources list for armbian

* Update src/yunohost/data_migrations/0015_migrate_to_buster.py

Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2020-07-27 15:30:15 +02:00
Alexandre Aubin
c9bb3d0bde
Merge pull request #1027 from yunohost-bot/weblate-yunohost-core
Update from Weblate
2020-07-24 00:55:20 +02:00
Leandro Noferini
6412959af4 Translated using Weblate (Italian)
Currently translated at 21.2% (139 of 657 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/it/
2020-07-23 22:52:59 +00:00
ppr
ae38781714 Translated using Weblate (French)
Currently translated at 99.8% (656 of 657 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2020-07-23 22:52:59 +00:00
xaloc33
df239f946e Translated using Weblate (Catalan)
Currently translated at 100.0% (657 of 657 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ca/
2020-07-23 22:52:59 +00:00
Quentí
fcdc1bf37b Translated using Weblate (Occitan)
Currently translated at 57.2% (375 of 656 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/oc/
2020-07-23 22:52:59 +00:00
ppr
bbbafaddd2 Translated using Weblate (French)
Currently translated at 99.8% (655 of 656 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2020-07-23 22:52:59 +00:00
Alexandre Aubin
1a2f26dc34
[fix] Let's not redefine the value for the 'service' var ... 2020-07-24 00:52:46 +02:00
Éric Gaspar
95cbc23733
Update en.json 2020-07-19 19:21:53 +02:00
Alexandre Aubin
8911499bf3
Merge pull request #1026 from YunoHost/remove-useless-robots-protection
Remove useless robot protection code
2020-07-05 02:52:23 +02:00
Alexandre Aubin
e2cd52a2b5
Merge pull request #1024 from ericgaspar/stretch-unstable
Silence info: wasn't deleted because it doesn't exist.
2020-07-04 18:56:11 +02:00
Laurent Peuch
bcd2364d74 [fix] re-put assert password is strong enough 2020-07-03 00:57:09 +02:00
Laurent Peuch
2eb5f6b6da [fix] re-put forbidding some chars in passwords 2020-07-03 00:49:14 +02:00
Laurent Peuch
49b9146065 [fix] reintroduce custom exceptions for input fields type 2020-07-03 00:33:44 +02:00
Kay0u
7bfe564aab fix get_files_diff if {orig,new}_file is None 2020-06-30 15:46:15 +02:00
Alexandre Aubin
d435889776 Make sure to validate/upgrade that we don't have any active weak certificate used by nginx at the beginning of the buster migration, otherwise nginx will later miserably fail to start 2020-06-29 22:04:04 +02:00
Alexandre Aubin
ac9182d69f Move redirect to /yunohost/admin to a separate nginx conf file to allow customizing it more easily 2020-06-25 21:42:46 +02:00
Alexandre Aubin
f1bfc521ae Allow to extend the nginx default_server configuration 2020-06-25 20:04:11 +02:00
Alexandre Aubin
74ef4d1cf7
Remove useless robot protection code 2020-06-25 19:46:22 +02:00
ericgaspar
82d59d59be
silence info: wasn't deleted because it doesn't exist. 2020-06-23 10:26:09 +02:00
Alexandre Aubin
649179338a Update changelog for 3.8.5.4 2020-06-21 23:38:42 +02:00
Alexandre Aubin
b373eb6076
Fix parsing of unscd version... 2020-06-21 23:35:50 +02:00
Alexandre Aubin
8f8be838b6 Enforce permissions on rspamd log directory 2020-06-21 19:57:51 +02:00
1ff3c1cd07 Add default domain to API response 2020-06-21 14:15:46 +02:00
Alexandre Aubin
c473902776 Yes, we don't give a flying fuck that sudo-ldap is already provided 2020-06-19 19:02:18 +02:00
Alexandre Aubin
5a87fea596 Update changelog for 3.8.5.3 2020-06-19 18:51:19 +02:00
Alexandre Aubin
7a1e779684 Fix unscd downgrade + add debug infos to apt_install() 2020-06-19 18:46:53 +02:00
Alexandre Aubin
9933290836 Create backup archive dir during postinstall 2020-06-19 15:08:22 +02:00
Alexandre Aubin
ad10fc5f6c Merge branch 'stretch-testing' into stretch-unstable 2020-06-18 16:22:04 +02:00
Alexandre Aubin
e1d5450da9 Update changelog for 3.8.5.2 2020-06-18 16:20:10 +02:00
Alexandre Aubin
9624c4dc1c Fix small issue with unscd upgrade/downgrade ... new version ain't always 0.53.1, so find it using dirty scrapping 2020-06-18 16:18:40 +02:00
Alexandre Aubin
d5ad76efce Merge branch 'stretch-testing' into stretch-unstable 2020-06-18 15:21:10 +02:00
Alexandre Aubin
4e8642f675 Merge branch 'stretch-stable' into stretch-testing 2020-06-18 15:20:38 +02:00
Alexandre Aubin
9c33f64269 Update changelog for 3.8.4.9 2020-06-18 15:19:44 +02:00
Alexandre Aubin
7805837b1d Move the general regen_conf after we regen ssh, otherwise there's a non-relevant warning displayed because the regen-conf tells to rerun ssh specifically which is already done... 2020-06-18 15:12:55 +02:00
Julien Rabier
9c1eca8d4a fix destination concurrency
Hi,
Postfix has this very peculiar behavior where the target of some config keys changes depending on the value. 
Here, if `smtp_destination_concurrency_limit` is set to 1, then according to http://www.postfix.org/postconf.5.html#default_destination_concurrency_limit it doesn't mean "1 concurrent mail per domain, but per recipiend address".

So, if set to 1, it means we can send any volume of e-mails concurrently (with a 5s delay) if all recipient addresses are different.
In order to avoid this, we should increase the value to restore the expected behavior (concurrency per domain, not per recipient).
2020-06-18 15:12:32 +02:00
Yasss Gurl
bf88d3e41e Translated using Weblate (German)
Currently translated at 33.8% (222 of 656 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2020-06-18 15:11:41 +02:00
ppr
e93cbb1151 Translated using Weblate (French)
Currently translated at 99.4% (652 of 656 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2020-06-18 15:11:41 +02:00
xaloc33
47c2bce67a Translated using Weblate (Catalan)
Currently translated at 100.0% (656 of 656 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ca/
2020-06-18 15:11:41 +02:00
xaloc33
3b6083df4a Translated using Weblate (Catalan)
Currently translated at 100.0% (655 of 655 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ca/
2020-06-18 15:11:41 +02:00
Alexandre Aubin
f45254884b Following previous regenconf fixes, the regen-conf was now outputing a whole lot of 'forget-about-it' when e.g. running regen-conf for nginx because of files flagged as 'should-not-exists'... so this is a dirty workaround 2020-06-18 15:11:41 +02:00
Alexandre Aubin
51d53be54c Alway filter irrelevant log lines when sharing it 2020-06-18 15:11:41 +02:00
Alexandre Aubin
38704cbae4 Tweak log filter logic to be able to apply it during --share as well 2020-06-18 15:11:41 +02:00
Alexandre Aubin
d615546b18 Add yunohost version to logs metadata 2020-06-18 15:11:41 +02:00
Alexandre Aubin
0f0194beff Fix error / debug message when diagnosis ain't happy when renewing certs 2020-06-18 15:11:41 +02:00
Alexandre Aubin
cd115ed83a dirmngr is needed for apt-key / gpg ... usually installed but it's only a Recommends so sometimes it's not >.> 2020-06-18 15:11:41 +02:00
ljf (zamentur)
804f4b3e21 [fix] lower domain
Lower domain to avoid some edge cases issues
See: https://forum.yunohost.org/t/invalid-domain-causes-diagnosis-web-to-fail-fr-on-demand/11765
2020-06-18 15:11:41 +02:00
Alexandre Aubin
35eec1eea3 Move the general regen_conf after we regen ssh, otherwise there's a non-relevant warning displayed because the regen-conf tells to rerun ssh specifically which is already done... 2020-06-18 15:08:51 +02:00
Alexandre Aubin
ecb27ed124
Merge pull request #988 from taziden/patch-1
[fix] postfix per-domain destination concurrency
2020-06-17 21:10:03 +02:00
Alexandre Aubin
bed2ddfb77
Merge pull request #1017 from yunohost-bot/weblate-yunohost-core
Update from Weblate
2020-06-17 18:22:02 +02:00
Yasss Gurl
868ffad7d1 Translated using Weblate (German)
Currently translated at 33.8% (222 of 656 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/de/
2020-06-17 15:38:12 +00:00
ppr
19f3f86510 Translated using Weblate (French)
Currently translated at 99.4% (652 of 656 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2020-06-17 15:38:12 +00:00
xaloc33
e8cab1feeb Translated using Weblate (Catalan)
Currently translated at 100.0% (656 of 656 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ca/
2020-06-17 15:38:12 +00:00
xaloc33
98f144e61f Translated using Weblate (Catalan)
Currently translated at 100.0% (655 of 655 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/ca/
2020-06-17 15:38:12 +00:00
Alexandre Aubin
b970cba6c4 Following previous regenconf fixes, the regen-conf was now outputing a whole lot of 'forget-about-it' when e.g. running regen-conf for nginx because of files flagged as 'should-not-exists'... so this is a dirty workaround 2020-06-17 17:37:54 +02:00
Alexandre Aubin
3f1888a041 We expect .tar instead of .tar.gz now 2020-06-15 22:40:57 +02:00
Alexandre Aubin
1a537039c7 Backup to uncompressed tar by default 2020-06-15 22:23:26 +02:00
Alexandre Aubin
84d325495b
Merge pull request #1016 from YunoHost/alexAubin-patch-1
We don't really use / need these super bureaucratic validation checkboxes
2020-06-15 20:26:10 +02:00
Alexandre Aubin
bbd354b869 Alway filter irrelevant log lines when sharing it 2020-06-15 19:22:39 +02:00
Alexandre Aubin
bb0e48c773 Tweak log filter logic to be able to apply it during --share as well 2020-06-15 19:22:01 +02:00
Alexandre Aubin
a9e91f26ee Add yunohost version to logs metadata 2020-06-15 19:01:57 +02:00
Alexandre Aubin
384c7bc608 Fix error / debug message when diagnosis ain't happy when renewing certs 2020-06-11 22:48:41 +02:00
Alexandre Aubin
6defbfdbac Fix small issue with unscd upgrade/downgrade ... new version ain't always 0.53.1, so find it using dirty scrapping 2020-06-10 16:09:05 +02:00
Alexandre Aubin
ef15130980 dirmngr is needed for apt-key / gpg ... usually installed but it's only a Recommends so sometimes it's not >.> 2020-06-10 15:19:53 +02:00
ljf (zamentur)
f46eb01c03
[fix] lower domain
Lower domain to avoid some edge cases issues
See: https://forum.yunohost.org/t/invalid-domain-causes-diagnosis-web-to-fail-fr-on-demand/11765
2020-06-06 16:07:18 +02:00
Alexandre Aubin
d2f8f720ab Update changelog for 3.8.5.1 2020-06-06 03:34:47 +02:00
Alexandre Aubin
b57cfaac92 Add alpha stage disclaimer in the disclaimer 2020-06-06 03:33:38 +02:00
Alexandre Aubin
643de7cf5f Update changelog for 3.8.5 2020-06-06 02:16:29 +02:00
Alexandre Aubin
95fac921a6 Merge branch 'stretch-stable' into stretch-unstable 2020-06-06 02:11:11 +02:00
Alexandre Aubin
051d14a945 Update changelog for 3.8.4.8 2020-06-06 02:08:05 +02:00
Alexandre Aubin
f27355d4b1 Properly handle stale hashes of files even when file got manually removed/modified 2020-06-06 02:02:54 +02:00
Alexandre Aubin
28a922de51 Get rid of old hashes of file that 'are expected to be removed' and are indeed 'already removed' 2020-06-06 02:02:17 +02:00
Alexandre Aubin
5e877449ed Set sury default pinning to 600 2020-06-06 02:00:38 +02:00
Éric Gaspar
3b1a67d963 Update data/helpers.d/nodejs
Co-authored-by: Kayou <pierre@kayou.io>
2020-06-06 02:00:38 +02:00
Éric Gaspar
f0c9f612af Update data/helpers.d/nodejs
Co-authored-by: Kayou <pierre@kayou.io>
2020-06-06 02:00:38 +02:00
ericgaspar
6e2e9b830d add n_version variable 2020-06-06 02:00:38 +02:00
ericgaspar
9c11570926 fix stupid mistake 2020-06-06 02:00:38 +02:00
ericgaspar
9810ccbf99 Update nodejs 2020-06-06 02:00:38 +02:00
ericgaspar
d30ec3953a Update n to upstream version (6.5.1) 2020-06-06 02:00:38 +02:00
Alexandre Aubin
5dfa45518d More accurate grep to avoid mistakenly grepping commented lines... 2020-06-06 02:00:38 +02:00
Alexandre Aubin
33fc9d78d2 Make sure to propagate change in slapd systemd conf during initial install 2020-06-06 02:00:38 +02:00
Alexandre Aubin
35dc0e797a Propagate location change for ffdhe2048.pem 2020-06-06 02:00:38 +02:00
Alexandre Aubin
5a74155dd4 Put ffdhe2048.pem in /usr/share/yunohost/other/ instead of /etc/ssl 2020-06-06 02:00:38 +02:00
Alexandre Aubin
daed21c975 Rename dh2048.pem to ffdhe2048.pem 2020-06-06 02:00:38 +02:00
Alexandre Aubin
ea43f68552 Add comments about where the DH param comes from 2020-06-06 02:00:38 +02:00
SohKa
d00261d7a5 Add pre-defined DHE group and set up Nginx to use it 2020-06-06 02:00:38 +02:00
Josué Tille
6ffd0d8f5a Don't add unprotected_urls if it's already in skipped_urls 2020-06-06 02:00:38 +02:00
Alexandre Aubin
ea26182ad1 Fix regen-conf mechanism for SSH 2020-06-06 02:00:38 +02:00
Alexandre Aubin
2ff1cd8dd6
Merge pull request #1014 from YunoHost/fix-regen-conf-for-ssh
Fix regen-conf mechanism for SSH
2020-06-06 01:57:15 +02:00
Alexandre Aubin
5a003291bc
Merge branch 'stretch-unstable' into fix-regen-conf-for-ssh 2020-06-06 01:57:03 +02:00
Alexandre Aubin
30528565eb
Merge pull request #1009 from YunoHost/remove-stale-files-in-regen-conf
Clean stale file/hashes in regen-conf
2020-06-06 01:54:04 +02:00
Alexandre Aubin
653c5fde8f Set sury default pinning to 600 2020-06-06 01:16:54 +02:00
Alexandre Aubin
b050c1b3a4
Merge pull request #1012 from ericgaspar/update-n-to-6.5.1
Update n to 6.5.1
2020-06-05 17:50:54 +02:00
Alexandre Aubin
2408a62059
More accurate grep to avoid mistakenly grepping commented lines... 2020-06-05 16:58:46 +02:00
Éric Gaspar
2ab56428f8
Update data/helpers.d/nodejs
Co-authored-by: Kayou <pierre@kayou.io>
2020-06-05 11:27:43 +02:00
Alexandre Aubin
4167baa7ee
We don't really use / need these super bureaucratic validation checkboxes 2020-06-04 18:53:21 +02:00
Éric Gaspar
c62527a0af
Update data/helpers.d/nodejs
Co-authored-by: Kayou <pierre@kayou.io>
2020-06-04 15:04:02 +02:00
ericgaspar
63e6abdf1e
add n_version variable 2020-06-04 11:23:51 +02:00
Alexandre Aubin
0a9875b607 Fix regen-conf mechanism for SSH 2020-06-03 20:17:49 +02:00
ericgaspar
66bc921c4a
fix stupid mistake 2020-06-03 19:11:56 +02:00
Josué Tille
ff396d2729
Merge remote-tracking branch 'upstream/stretch-unstable' into permission_protection 2020-06-03 15:04:59 +02:00
Laurent Peuch
ecb52b4f11 [fix] allow optional app argument 2020-06-01 12:37:10 +02:00
Laurent Peuch
dc6a12f14b [mod] password argument can't have a default value 2020-06-01 12:08:35 +02:00
Laurent Peuch
40dc8397c1 [mod] stop skipping tests that now works 2020-06-01 12:08:35 +02:00
Laurent Peuch
05aa54ac0f [mod] refactor the whole argument parsing flow into a component oriented way 2020-06-01 11:50:06 +02:00
ericgaspar
faedbc534f Update nodejs 2020-05-31 18:02:29 +02:00
ericgaspar
ada94aec18
Update n to upstream version (6.5.1) 2020-05-30 17:30:38 +02:00
Alexandre Aubin
b9bf558b19 Properly handle stale hashes of files even when file got manually removed/modified 2020-05-28 22:07:12 +02:00
Alexandre Aubin
84239ac052 Get rid of old hashes of file that 'are expected to be removed' and are indeed 'already removed' 2020-05-28 21:37:15 +02:00
Josué Tille
226bd15c55
Merge remote-tracking branch 'upstream/stretch-unstable' into permission_protection 2020-05-22 15:12:32 +02:00
Julien Rabier
7ccd6e1348
fix destination concurrency
Hi,
Postfix has this very peculiar behavior where the target of some config keys changes depending on the value. 
Here, if `smtp_destination_concurrency_limit` is set to 1, then according to http://www.postfix.org/postconf.5.html#default_destination_concurrency_limit it doesn't mean "1 concurrent mail per domain, but per recipiend address".

So, if set to 1, it means we can send any volume of e-mails concurrently (with a 5s delay) if all recipient addresses are different.
In order to avoid this, we should increase the value to restore the expected behavior (concurrency per domain, not per recipient).
2020-05-11 21:37:17 +00:00
Alexandre Aubin
63ff02be50 Keep track of 'parent' operation in operation loggers 2020-05-07 22:23:38 +02:00
Alexandre Aubin
d8be90165c Propagate changes from moulinette/simplify-interface-init 2020-05-07 22:16:22 +02:00
Alexandre Aubin
96e115c609 Use 'init' helper from tests! 2020-05-07 22:16:22 +02:00
Alexandre Aubin
84e39a416a Add an 'init' helper for scripts/tests to initialize everything needed... 2020-05-07 22:15:51 +02:00
Alexandre Aubin
7df8e8421d Forgot to set interface as api for init logging 2020-05-07 22:15:51 +02:00
Alexandre Aubin
69a520657c Add init_i18n for convenience when using yunohost as a lib... 2020-05-07 22:15:51 +02:00
Alexandre Aubin
dee08a16fe Move moulinette initialization and other stuff to src/yunohost/__init__.py 2020-05-07 22:15:51 +02:00
Alexandre Aubin
233c962710 Hmpf idk another iteration to cleaning attempt 2020-05-07 22:15:51 +02:00
Alexandre Aubin
f5c16737eb More stuff to reduce complexity 2020-05-07 22:15:51 +02:00
Alexandre Aubin
68c9244492 Remove _die, simplify creation of log dir, make linter a bit happier 2020-05-07 22:15:51 +02:00
Alexandre Aubin
31e5f7e8b5 This arg ain't meaningful anymore? 2020-05-07 22:15:51 +02:00
Alexandre Aubin
94d0e253f7 Clean usr/bin/yunohost and yunohost-api ... 2020-05-07 22:15:51 +02:00
Alexandre Aubin
882b003bd7 Fix i18n string test 2020-05-07 00:07:10 +02:00
Alexandre Aubin
49c4324ee1 During app installs, set default answer for user-type args to main user 2020-05-06 22:17:39 +02:00
Alexandre Aubin
c7dd881774 Default 'ask' questions for common app manifest args 2020-05-06 21:41:54 +02:00
ljf
a5ecf52c30 [fix] chown postfix to avoid warning 2020-05-04 14:45:47 +02:00
ljf
d51b126df8 [fix] postmap: warning: removing zero-length database file 2020-05-04 14:45:47 +02:00
ljf
ff0a2192b9 [enh] Automatic regenconf after editing smtp settings 2020-05-04 14:45:47 +02:00
ljf
94eb9246bb [fix] Avoid sasl account reachable from other users 2020-05-04 14:45:47 +02:00
ljf
c1fddb312d [enh] Add settings description 2020-05-04 14:45:47 +02:00
ljf
fae6b3f3f4 [fix] Unrelevant obsolete config params 2020-05-04 14:45:47 +02:00
ljf
3a0104861e [fix] Don't modify directly files in regen conf 2020-05-04 14:45:47 +02:00
ljf
64066f85b0 [enh] Allow admin to specify an smtp relay 2020-05-04 14:45:47 +02:00
Josué Tille
8d2bde84ec
Install python-packaging as dependance 2020-05-03 19:56:14 +02:00
Josué Tille
95b7885890
Merge remote-tracking branch 'upstream/stretch-unstable' into abort_if_up_to_date_manifest 2020-05-02 11:22:22 +02:00
Josué Tille
5c6b4118b7
Add comment about dependances 2020-05-02 11:20:27 +02:00
Josué Tille
554291827f
Fix typo 2020-04-29 21:02:59 +02:00
Josué Tille
e8ca600bdc
Permission regex is a PCRE regex 2020-04-29 20:36:56 +02:00
Josué Tille
8deb083830
Regex should be now available 2020-04-29 14:09:49 +02:00
Josué Tille
abe421caa8
Change default value for protected permission to 'false' 2020-04-29 13:42:14 +02:00
Josué Tille
9757ef2ddd
Fix typo 2020-04-29 13:38:11 +02:00
Josué Tille
a3fb329f21
Improve comments 2020-04-29 13:37:38 +02:00
Josué Tille
fd967e0879
Add more comment about list conversion 2020-04-28 22:30:44 +02:00
Maniack Crudelis
06bc5ba16f
... 2020-04-28 16:15:52 +02:00
Josué Tille
76c7bcc69b
Fix some typos 2020-04-28 15:11:34 +02:00
Josué Tille
e068133b54
Fix apps settings management 2020-04-28 15:11:34 +02:00
Josué Tille
c4f7fc2bac
Remove migration of legacy settings in install 2020-04-28 15:11:34 +02:00
Josué Tille
e27035f816
Fix restore 2020-04-28 15:11:33 +02:00
Josué Tille
60af7e0fe9
Fix typo 2020-04-28 15:11:33 +02:00
Josué Tille
2b3c368470
Fix app_ssowatconf 2020-04-28 15:11:33 +02:00
Josué Tille
79fb034321
Improve support of settings migrations 2020-04-28 15:11:32 +02:00
Josué Tille
d5c61f2d27
Manage skipped, unprotected uris in root path case 2020-04-28 15:11:32 +02:00
Josué Tille
fe5ca24222
Migrate old skipped,unprotected,protected_uris and create permission instead 2020-04-28 15:11:32 +02:00
Josué Tille
03bc568276
Fix regression due to merge 2020-04-28 15:00:21 +02:00
Josué Tille
73e2ede910
Merge branch 'stretch-unstable' into permission_protection 2020-04-28 14:20:25 +02:00
Alexandre Aubin
e01859ffc4 Fix tests 2020-04-27 20:57:38 +02:00
Josue-T
72b412c6d3
Cleanup code indentation 2020-04-27 11:16:40 +02:00
Josue-T
01d5c91e60
Simply code
Co-Authored-By: Alexandre Aubin <alex.aubin@mailoo.org>
2020-04-27 11:09:10 +02:00
Josue-T
f2791c911f
Make more rebobut version check
Co-Authored-By: Alexandre Aubin <alex.aubin@mailoo.org>
2020-04-27 11:08:36 +02:00
Josue-T
ce6c33aa90
Fix version key in installed version
Co-Authored-By: Alexandre Aubin <alex.aubin@mailoo.org>
2020-04-27 11:05:01 +02:00
Josué Tille
c34de0b792
Improve version management in catalog 2020-04-24 14:36:06 +02:00
Josué Tille
e36e5ea89c
Improve label 2020-04-23 22:10:34 +02:00
Josué Tille
af8773f767
Fix typo 2020-04-23 15:12:54 +02:00
Josué Tille
1826e3c5b6
Make more robust version management in upgrade 2020-04-23 14:56:16 +02:00
Josué Tille
e7970d8571
Check settings 'upgrade_only_if_version_changes' before to check update availability 2020-04-23 14:56:15 +02:00
Josué Tille
98223a7db3
Fix tests for regex 2020-04-22 22:30:23 +02:00
Josué Tille
84e275ea97
Merge branch 'stretch-unstable' into permission_protection 2020-04-22 21:59:06 +02:00
Josué Tille
1ed21beb87
Fix restore permission 2020-04-22 21:54:49 +02:00
Josué Tille
0ab3192b81
Improve regex management and simplify urls check 2020-04-22 21:54:48 +02:00
Josué Tille
73a6eef6e3
Fix permission_list 2020-04-22 14:45:16 +02:00
Josué Tille
6eab62ceb1
Fix show_tile settings 2020-04-21 11:19:39 +02:00
yalh76
9389f4669c
simplification 2020-04-16 14:42:59 +02:00
Josué Tille
a096a36e27
Also manage downgrade 2020-04-15 16:30:49 +02:00
Josué Tille
4f0d5cef96
Improve version management in '_app_upgradable' 2020-04-15 16:26:01 +02:00
Josué Tille
8dd3986cac
Fix rename variable 2020-04-15 15:52:22 +02:00
Josué Tille
ceeb34f68e
Use 'dpkg --compare-versions' 2020-04-15 15:52:22 +02:00
Josué Tille
d947724b70
Fix typo 2020-04-15 12:11:51 +02:00
Josue-T
f416b94fb8
Put upgrade_only_if_version_changes in integration section
Co-Authored-By: Alexandre Aubin <alex.aubin@mailoo.org>
2020-04-15 11:54:55 +02:00
Josue-T
3578588860
Replace actual by current
Co-Authored-By: Alexandre Aubin <alex.aubin@mailoo.org>
2020-04-15 11:53:39 +02:00
Josué Tille
5315807ea7
Cleanup comment 2020-04-14 14:04:26 +02:00
Josué Tille
17e8bdedf6
Rename heper 2020-04-14 14:03:04 +02:00
Josué Tille
fec5d3d084
Rename variable 2020-04-14 14:01:28 +02:00
Josué Tille
3d51e235e8
Add comments 2020-04-14 14:01:22 +02:00
Josue-T
14ef523585
Improve env_dict variable in upgrade
Co-Authored-By: Maniack Crudelis <maniackcrudelis@users.noreply.github.com>
2020-04-14 13:45:05 +02:00
Maniack Crudelis
3484f73506
Clean and syntax 2020-04-14 12:35:35 +02:00
Josué Tille
4c5edb533a
Merge branch 'stretch-unstable' into abort_if_up_to_date_manifest 2020-04-13 17:43:47 +02:00
Josué Tille
640a467280
Add helper ynh_compare_package_version 2020-04-13 16:59:32 +02:00
Josué Tille
58cce48195
Export old and new version in environnement 2020-04-11 23:02:05 +02:00
Josué Tille
530d94b2ca
Fix regex manamgement 2020-04-09 16:53:28 +02:00
Josué Tille
52e2be8fe6
Merge branch 'stretch-unstable' into permission_protection 2020-04-09 16:22:08 +02:00
Josué Tille
3ba3055f43
Fix ssowatconf 2020-04-09 16:14:17 +02:00
Josué Tille
5b76a42126
Add new tests for ssowat conf 2020-04-09 15:54:10 +02:00
Josué Tille
baaf4bb758
Add test for regex management 2020-04-09 15:54:10 +02:00
Josué Tille
892d1f752a
Fix tests 2020-04-09 15:54:10 +02:00
Josué Tille
e815a3389f
Simplify the way to declare set 2020-04-09 15:54:09 +02:00
Josué Tille
fe6deb628d
Cleanup code 2020-04-09 15:47:58 +02:00
Josué Tille
83a97798a0
Don't create a new domain at each test 2020-04-09 15:46:38 +02:00
Josué Tille
1c1b88e455
Fix regex management 2020-04-09 15:42:22 +02:00
Josué Tille
8f61e493e4
Fix label management 2020-04-09 15:41:45 +02:00
Josué Tille
4933b23b5b
Improve management of show_tile settings 2020-04-09 15:40:20 +02:00
Josué Tille
2f2ef9b95d
Fix ssowatconf 2020-04-09 09:52:26 +02:00
Josué Tille
cfc782f015
Fix label management in migration 2020-04-08 23:14:25 +02:00
Josue-T
64c950c1dc
Fix typo
Co-Authored-By: Kayou <pierre.moltess@gmail.com>
2020-04-08 23:06:45 +02:00
Josué Tille
feb41889df
Improve label management for permission 2020-04-08 22:47:32 +02:00
Josué Tille
4ebf716d21
Fix typo 2020-04-08 22:46:53 +02:00
Josué Tille
562b41a47d
Add more tests for permission extension 2020-04-08 22:46:03 +02:00
Josué Tille
7d69079e46
Add test for permission path normalization 2020-04-07 10:55:04 +02:00
Josué Tille
130ffab6ff
Fix tests 2020-04-07 00:05:10 +02:00
Josué Tille
5b09dabedc
Create domain before to restore backup 2020-04-07 00:05:10 +02:00
Josué Tille
d563b6a04d
Be more explicit about domain unknown 2020-04-06 23:31:52 +02:00
Josué Tille
a34eebf9cd
Fix tests permissions 2020-04-06 18:15:36 +02:00
Josué Tille
ae3badda9e
Fix _update_ldap_group_permission 2020-04-06 18:15:35 +02:00
Josué Tille
12d7bad16b
Create dummy apps settings for permission with url and add possibility to manage multiple domain in permission tests 2020-04-06 17:26:29 +02:00
Josué Tille
0828eec729
Fix postinstall and backup restore 2020-04-06 14:52:50 +02:00
Josué Tille
8443e9c448
Fix url normalization 2020-04-06 11:20:18 +02:00
Josué Tille
69c0d33bb1
Fix app_ssowatconf 2020-04-06 11:20:01 +02:00
Josué Tille
353b29613d
Impove _get_full_url management 2020-04-06 11:19:09 +02:00
Josué Tille
85cab0edbe
Fix some typo 2020-04-06 10:25:29 +02:00
Josué Tille
8fabd8f140
Define url of permission at the end of the app install 2020-04-04 00:36:01 +02:00
Josué Tille
6e5e118bcf
Set mandatory domain and path to add url in permission 2020-04-04 00:14:47 +02:00
Josué Tille
45bb5f4b35
Fix tests 2020-04-03 23:58:32 +02:00
Josué Tille
b859953aa4
Fix user_permission_list 2020-04-03 23:51:10 +02:00
Josué Tille
e6ccb01af1
Print warning if packager try to show tile for regex and disable show tile in this case 2020-04-03 23:24:24 +02:00
Josué Tille
1ff4f578d7
Fix app_ssowatconf 2020-04-03 22:12:50 +02:00
Josué Tille
756237c051
Fix and improve migration 2020-04-03 21:31:17 +02:00
Josué Tille
7afe07018e
Fix app_map 2020-04-03 21:28:27 +02:00
Josué Tille
dc38d57baa
Make more robust migration 2020-04-02 14:41:04 +02:00
Josué Tille
678334eb28
Fix ssowatconf 2020-04-02 14:23:43 +02:00
Josué Tille
4e8a5d8e59
Update migration 2020-04-02 12:17:53 +02:00
Josué Tille
ff7bd0e860
Check url conflict for permissions 2020-04-02 11:43:31 +02:00
Josué Tille
77b8c440fb
Clean locales 2020-04-01 23:42:25 +02:00
Josué Tille
55b1cea919
Rename migration 2020-04-01 23:32:44 +02:00
Josué Tille
56886bb6a0
Fix ssowat config 2020-04-01 23:21:55 +02:00
Josué Tille
ad04c33cbf
Simplify if 2020-04-01 23:10:11 +02:00
Josué Tille
a7432393c1
Rework app_ssowatconf 2020-04-01 23:09:48 +02:00
Josué Tille
e724dbccf0
Rework app_map 2020-04-01 22:04:00 +02:00
Josué Tille
2a0866b583
Improve check url validity for permissions 2020-04-01 22:02:45 +02:00
Josué Tille
d95341840b
Rename default label name 2020-04-01 20:58:50 +02:00
Josué Tille
4303653d77
Check url validity for permissions 2020-04-01 20:45:12 +02:00
Josué Tille
98f77e78c9
Add full_path args for permission_list and enable it by default 2020-03-31 23:54:20 +02:00
Josué Tille
c6b79a55d2
Remove code duplication 2020-03-31 23:28:09 +02:00
Josué Tille
55e34aa5ae
Depreciate app_change_label 2020-03-31 23:27:05 +02:00
Josué Tille
fdce1e1676
Merge remote-tracking branch 'upstream/stretch-unstable' into permission_protection 2020-03-31 11:49:30 +02:00
Josué Tille
8ca07ad7d8
Pass as argument to app script the main app label 2020-03-30 17:44:05 +02:00
Josué Tille
e82dad1881
Update helper for label and tile support, authentication header and multiple URL support 2020-03-30 17:42:17 +02:00
Josué Tille
587e902c12
Let's give the possiblity to the user to modify the tile and to show or drop the tile in the SSO 2020-03-30 17:41:25 +02:00
Josué Tille
c284954f8f
Update permission code for additional URL, authentication header and label and tile support 2020-03-30 17:40:36 +02:00
Josué Tille
d2edc162fd
Update LDAP schema for label and tile support, authentication header and multiple URL support 2020-03-30 17:40:01 +02:00
Josué Tille
6f179afa82
Merge branch 'stretch-unstable' into permission_protection 2020-03-27 16:14:30 +01:00
Josué Tille
ead80c72f8
Implement upgrade type management and avoid unusefull upgrade 2019-12-30 14:43:48 +01:00
Josué Tille
ebb492fd1e
Add force option in upgrade script 2019-12-30 14:43:10 +01:00
Josué Tille
e2def74997
Improve check before permission update 2019-12-30 13:31:14 +01:00
Josué Tille
dc39b9a5af
Clean code 2019-12-29 22:24:21 +01:00
Josué Tille
43073b77c5
Add more assert 2019-12-29 22:22:51 +01:00
Josué Tille
ce33592996
Remove bad comment 2019-12-29 22:19:08 +01:00
Josué Tille
b3b5d84f05
Add tests for permission protection 2019-12-29 22:14:19 +01:00
Josué Tille
8d3d055484
Fix permission update 2019-12-29 22:14:19 +01:00
Josué Tille
97c3a0fb9b
Fix migration 2019-12-29 21:08:59 +01:00
Josué Tille
414fe1926a
Fix helper 2019-12-29 21:08:59 +01:00
Josué Tille
45966c8ebd
Also add isProtected attribute in ldap_scheme 2019-12-27 16:24:30 +01:00
Josué Tille
672eb6f512
Fix permission creation 2019-12-27 16:24:30 +01:00
Josué Tille
171f37a589
Implement migration 2019-12-27 16:24:30 +01:00
Josué Tille
ca4c4c2e62
Remove unused import 2019-12-23 16:11:00 +01:00
Josué Tille
175a87bd30
Implement restore permission 2019-12-23 16:11:00 +01:00
Josué Tille
9aecacd995
Rename variables 2019-12-23 11:25:20 +01:00
Josué Tille
b38d1a495e
Add force argument in permission update and change default value in permission creation 2019-12-23 11:21:28 +01:00
Josué Tille
cad6f71016
Fix helper 2019-12-23 11:05:27 +01:00
Josue-T
0c6392a5f7
Fix helper
Co-Authored-By: Kayou <pierre.moltess@gmail.com>
2019-12-23 11:03:31 +01:00
Josué Tille
3ffa826612
Remove dirty code for test 2019-12-23 11:03:27 +01:00
Josué Tille
0e3293a47e
Add possibility to protect the modification of a permission 2019-12-22 15:45:20 +01:00
Josué Tille
e5eed1fa17
Make mandatory the protected attribute in LDAP permission 2019-12-22 15:44:48 +01:00
Josué Tille
fe8a0cbcbd
Update helper for permission protection support 2019-12-22 15:03:29 +01:00
Josué Tille
5d4f62b222
Update LDAP schema for permission protection 2019-12-22 14:44:17 +01:00
482 changed files with 65286 additions and 28158 deletions

24
.codeclimate.yml Normal file
View file

@ -0,0 +1,24 @@
---
version: "2"
plugins:
duplication:
enabled: true
config:
languages:
python:
python_version: 3
shellcheck:
enabled: true
pep8:
enabled: true
fixme:
enabled: true
sonar-python:
enabled: true
config:
tests_patterns:
- bin/*
- data/**
- doc/*
- src/**
- tests/**

2
.coveragerc Normal file
View file

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

View file

@ -13,10 +13,3 @@
## How to test
...
## Validation
- [ ] Principle agreement 0/2 :
- [ ] Quick review 0/1 :
- [ ] Simple test 0/1 :
- [ ] Deep review 0/1 :

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
# moulinette lib
src/yunohost/locales
src/locales
# 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

@ -1,9 +1,11 @@
---
stages:
- build
- install
- tests
- test
- lint
- doc
- translation
default:
tags:
@ -11,12 +13,43 @@ default:
# All jobs are interruptible by default
interruptible: true
code_quality:
tags:
- docker
rules:
- if: $CI_COMMIT_TAG # Only for tags
code_quality_html:
extends: code_quality
variables:
REPORT_FORMAT: html
artifacts:
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
workflow:
rules:
- 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_COMMIT_TAG # For tags
- 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
- 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: always
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:
- local: .gitlab/ci/build.gitlab-ci.yml
- local: .gitlab/ci/install.gitlab-ci.yml
- local: .gitlab/ci/test.gitlab-ci.yml
- local: .gitlab/ci/lint.gitlab-ci.yml
- local: .gitlab/ci/doc.gitlab-ci.yml
- template: Code-Quality.gitlab-ci.yml
- local: .gitlab/ci/*.gitlab-ci.yml

View file

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

View file

@ -4,11 +4,28 @@
generate-helpers-doc:
stage: doc
image: "before-install"
image: "build-and-lint"
needs: []
before_script:
- git config --global user.email "yunohost@yunohost.org"
- git config --global user.name "$GITHUB_USER"
script:
- cd doc
- python 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
- 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
# replace ${CI_COMMIT_REF_NAME} with ${CI_COMMIT_TAG} ?
- hub checkout -b "${CI_COMMIT_REF_NAME}"
- hub commit -am "[CI] Update app helpers/resources for ${CI_COMMIT_REF_NAME}"
- 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:
paths:
- doc/helpers.html
- doc/helpers.md
- doc/resources.md
only:
- tags

View file

@ -14,24 +14,14 @@
upgrade:
extends: .install-stage
image: "after-install"
image: "core-tests"
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 ./$YNH_BUILD_DIR/*.deb
- DEBIAN_FRONTEND=noninteractive SUDO_FORCE_REMOVE=yes apt --assume-yes -o Dpkg::Options::="--force-confold" --allow-downgrades install ${CI_PROJECT_DIR}/*.deb
install-postinstall:
extends: .install-stage
image: "before-install"
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 ./$YNH_BUILD_DIR/*.deb
- systemctl -q stop apt-daily.timer
- systemctl -q stop apt-daily-upgrade.timer
- systemctl -q stop apt-daily.service
- systemctl -q stop apt-daily-upgrade.service
- systemctl -q disable apt-daily.timer
- systemctl -q disable apt-daily-upgrade.timer
- systemctl -q disable apt-daily.service
- systemctl -q disable apt-daily-upgrade.service
- yunohost tools postinstall -d domain.tld -p the_password --ignore-dyndns
- DEBIAN_FRONTEND=noninteractive SUDO_FORCE_REMOVE=yes apt --assume-yes -o Dpkg::Options::="--force-confold" --allow-downgrades install ${CI_PROJECT_DIR}/*.deb
- yunohost tools postinstall -d domain.tld -u syssa -F 'Syssa Mine' -p the_password --ignore-dyndns --force-diskspace

View file

@ -1,24 +1,26 @@
########################################
# LINTER
########################################
# later we must fix lint and format-check jobs and remove "allow_failure"
lint:
lint39:
stage: lint
image: "before-install"
image: "build-and-lint"
needs: []
allow_failure: true
script:
- tox -e lint
- tox -e py39-lint
invalidcode:
invalidcode39:
stage: lint
image: "before-install"
image: "build-and-lint"
needs: []
script:
- tox -e invalidcode
- tox -e py39-invalidcode
# Disabled, waiting for buster
#format-check:
# extends: .lint-stage
# script:
# - black --check --diff
mypy:
stage: lint
image: "build-and-lint"
needs: []
script:
- tox -e py39-mypy

View file

@ -1,25 +1,16 @@
.install_debs: &install_debs
- systemctl -q stop apt-daily.timer
- systemctl -q stop apt-daily-upgrade.timer
- systemctl -q stop apt-daily.service
- systemctl -q stop apt-daily-upgrade.service
- systemctl -q disable apt-daily.timer
- systemctl -q disable apt-daily-upgrade.timer
- systemctl -q disable apt-daily.service
- systemctl -q disable apt-daily-upgrade.service
- 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 ./$YNH_BUILD_DIR/*.deb
- DEBIAN_FRONTEND=noninteractive SUDO_FORCE_REMOVE=yes apt --assume-yes -o Dpkg::Options::="--force-confold" --allow-downgrades install ${CI_PROJECT_DIR}/*.deb
.test-stage:
stage: tests
image: "after-install"
stage: test
image: "core-tests"
variables:
PYTEST_ADDOPTS: "--color=yes"
before_script:
- *install_debs
cache:
paths:
- src/yunohost/tests/apps
- src/tests/apps
key: "$CI_JOB_STAGE-$CI_COMMIT_REF_SLUG"
needs:
- job: build-yunohost
@ -30,21 +21,21 @@
artifacts: true
- job: upgrade
########################################
# TESTS
########################################
full-tests:
stage: tests
stage: test
image: "before-install"
variables:
PYTEST_ADDOPTS: "--color=yes"
before_script:
- *install_debs
- yunohost tools postinstall -d domain.tld -p the_password --ignore-dyndns
- 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:
- pytest --cov=yunohost tests/ src/yunohost/tests/ --junitxml=report.xml
- python3 -m pytest --cov=yunohost tests/ src/tests/ --junitxml=report.xml
needs:
- job: build-yunohost
artifacts: true
@ -52,77 +43,158 @@ full-tests:
artifacts: true
- job: build-moulinette
artifacts: true
coverage: '/TOTAL.*\s+(\d+%)/'
artifacts:
reports:
junit: report.xml
root-tests:
test-actionmap:
extends: .test-stage
script:
- py.test tests
- python3 -m pytest tests/test_actionmap.py
only:
changes:
- share/actionsmap.yml
test-helpers2:
extends: .test-stage
script:
- cd tests
- bash test_helpers.sh
test-helpers2.1:
extends: .test-stage
script:
- cd tests
- bash test_helpers.sh 2.1
test-domains:
extends: .test-stage
script:
- python3 -m pytest src/tests/test_domains.py
only:
changes:
- src/domain.py
test-dns:
extends: .test-stage
script:
- python3 -m pytest src/tests/test_dns.py
only:
changes:
- src/dns.py
- src/utils/dns.py
test-apps:
extends: .test-stage
script:
- cd src/yunohost
- py.test tests/test_apps.py
- python3 -m pytest src/tests/test_apps.py
only:
changes:
- src/app.py
test-appscatalog:
extends: .test-stage
script:
- cd src/yunohost
- py.test tests/test_appscatalog.py
- python3 -m pytest src/tests/test_app_catalog.py
only:
changes:
- src/app_calalog.py
test-appurl:
extends: .test-stage
script:
- cd src/yunohost
- py.test tests/test_appurl.py
- python3 -m pytest src/tests/test_appurl.py
only:
changes:
- src/app.py
test-apps-arguments-parsing:
test-questions:
extends: .test-stage
script:
- cd src/yunohost
- py.test tests/test_apps_arguments_parsing.py
- python3 -m pytest src/tests/test_questions.py
only:
changes:
- src/utils/config.py
test-backuprestore:
test-app-config:
extends: .test-stage
script:
- cd src/yunohost
- py.test tests/test_backuprestore.py
- python3 -m pytest src/tests/test_app_config.py
only:
changes:
- src/app.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:
extends: .test-stage
script:
- cd src/yunohost
- py.test tests/test_changeurl.py
- python3 -m pytest src/tests/test_changeurl.py
only:
changes:
- src/app.py
test-backuprestore:
extends: .test-stage
script:
- python3 -m pytest src/tests/test_backuprestore.py
only:
changes:
- src/backup.py
test-permission:
extends: .test-stage
script:
- cd src/yunohost
- py.test tests/test_permission.py
- python3 -m pytest src/tests/test_permission.py
only:
changes:
- src/permission.py
test-settings:
extends: .test-stage
script:
- cd src/yunohost
- py.test tests/test_settings.py
- python3 -m pytest src/tests/test_settings.py
only:
changes:
- src/settings.py
test-user-group:
extends: .test-stage
script:
- cd src/yunohost
- py.test tests/test_user-group.py
- python3 -m pytest src/tests/test_user-group.py
only:
changes:
- src/user.py
test-regenconf:
extends: .test-stage
script:
- cd src/yunohost
- py.test tests/test_regenconf.py
- python3 -m pytest src/tests/test_regenconf.py
only:
changes:
- src/regenconf.py
test-service:
extends: .test-stage
script:
- cd src/yunohost
- py.test tests/test_service.py
- python3 -m pytest src/tests/test_service.py
only:
changes:
- src/service.py
test-ldapauth:
extends: .test-stage
script:
- python3 -m pytest src/tests/test_ldapauth.py
only:
changes:
- src/authenticators/*.py

View file

@ -0,0 +1,36 @@
########################################
# 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:
stage: translation
image: "build-and-lint"
needs: []
before_script:
- 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-autofix-translated-strings-${CI_COMMIT_REF_NAME}" --no-track
- python3 maintenance/missing_i18n_keys.py --fix
- python3 maintenance/autofix_locale_format.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 commit -am "[CI] Reformat / remove stale translated strings" || true
- 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:$CI_COMMIT_REF_NAME -p || true # GITHUB_USER and GITHUB_TOKEN registered here https://gitlab.com/yunohost/yunohost/-/settings/ci_cd
only:
variables:
- $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
changes:
- locales/*

View file

@ -1,16 +0,0 @@
language: python
matrix:
allow_failures:
- env: TOXENV=lint
include:
- python: 2.7
env: TOXENV=py27
- python: 2.7
env: TOXENV=lint
install:
- pip install tox
script:
- tox

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,9 +5,12 @@
<h1 align="center">YunoHost</h1>
<div align="center">
[![Build status](https://travis-ci.org/YunoHost/yunohost.svg?branch=stretch-unstable)](https://travis-ci.org/YunoHost/yunohost)
[![GitHub license](https://img.shields.io/github/license/YunoHost/yunohost)](https://github.com/YunoHost/yunohost/blob/stretch-unstable/LICENSE)
![Version](https://img.shields.io/github/v/tag/yunohost/yunohost?label=version&sort=semver)
[![Pipeline status](https://gitlab.com/yunohost/yunohost/badges/dev/pipeline.svg)](https://gitlab.com/yunohost/yunohost/-/pipelines)
![Test coverage](https://gitlab.com/yunohost/yunohost/badges/dev/coverage.svg)
[![Project license](https://img.shields.io/gitlab/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)
</div>
@ -16,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.
- [Project features](https://yunohost.org/#/whatsyunohost)
- [Project features](https://yunohost.org/whatsyunohost)
- [Project website](https://yunohost.org)
- [Install documentation](https://yunohost.org/install)
- [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))
--- | ---
![](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
- 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) !
- You can help translate YunoHost on our [translation platform](https://translate.yunohost.org/engage/yunohost/?utm_source=widget)
- 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).
<p align="center">
<img src="https://translate.yunohost.org/widgets/yunohost/-/multi-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>
## 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,220 +1,84 @@
#! /usr/bin/python
# -*- coding: utf-8 -*-
#! /usr/bin/python3
import os
import sys
import argparse
import yunohost
# Either we are in a development environment or not
IN_DEVEL = False
# Level for which loggers will log
LOGGERS_LEVEL = 'DEBUG'
TTY_LOG_LEVEL = 'INFO'
# Handlers that will be used by loggers
# - file: log to the file LOG_DIR/LOG_FILE
# - tty: log to current tty
LOGGERS_HANDLERS = ['file', 'tty']
# Directory and file to be used by logging
LOG_DIR = '/var/log/yunohost'
LOG_FILE = 'yunohost-cli.log'
# Check and load - as needed - development environment
if not __file__.startswith('/usr/'):
IN_DEVEL = True
if IN_DEVEL:
basedir = os.path.abspath('%s/../' % os.path.dirname(__file__))
if os.path.isdir(os.path.join(basedir, 'moulinette')):
sys.path.insert(0, basedir)
LOG_DIR = os.path.join(basedir, 'log')
import moulinette
from moulinette.actionsmap import ActionsMap
from moulinette.interfaces.cli import colorize, get_locale
# Initialization & helpers functions -----------------------------------
def _die(message, title='Error:'):
"""Print error message and exit"""
print('%s %s' % (colorize(title, 'red'), message))
sys.exit(1)
def _parse_cli_args():
"""Parse additional arguments for the cli"""
parser = argparse.ArgumentParser(add_help=False)
parser.add_argument('--no-cache',
action='store_false', default=True, dest='use_cache',
help="Don't use actions map cache",
)
parser.add_argument('--output-as',
choices=['json', 'plain', 'none'], default=None,
parser.add_argument(
"--output-as",
choices=["json", "plain", "none"],
default=None,
help="Output result in another format",
)
parser.add_argument('--debug',
action='store_true', default=False,
parser.add_argument(
"--debug",
action="store_true",
default=False,
help="Log and print debug messages",
)
parser.add_argument('--quiet',
action='store_true', default=False,
help="Don't produce any output",
parser.add_argument(
"--quiet", action="store_true", default=False, help="Don't produce any output"
)
parser.add_argument('--timeout',
type=int, default=None,
parser.add_argument(
"--version", action="store_true", default=False, help="Display YunoHost packages versions (alias to 'yunohost tools versions')"
)
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",
)
parser.add_argument('--admin-password',
default=None, dest='password', metavar='PASSWORD',
help="The admin password to use to authenticate",
)
# deprecated arguments
parser.add_argument('--plain',
action='store_true', default=False, help=argparse.SUPPRESS
parser.add_argument(
"--plain", action="store_true", default=False, help=argparse.SUPPRESS
)
parser.add_argument('--json',
action='store_true', default=False, help=argparse.SUPPRESS
parser.add_argument(
"--json", action="store_true", default=False, help=argparse.SUPPRESS
)
opts, args = parser.parse_known_args()
# output compatibility
if opts.plain:
opts.output_as = 'plain'
opts.output_as = "plain"
elif opts.json:
opts.output_as = 'json'
opts.output_as = "json"
return (parser, opts, args)
def _init_moulinette(debug=False, quiet=False):
"""Configure logging and initialize the moulinette"""
# Define loggers handlers
handlers = set(LOGGERS_HANDLERS)
if quiet and 'tty' in handlers:
handlers.remove('tty')
elif 'tty' not in handlers:
handlers.append('tty')
root_handlers = set(handlers)
if not debug and 'tty' in root_handlers:
root_handlers.remove('tty')
# Define loggers level
level = LOGGERS_LEVEL
tty_level = TTY_LOG_LEVEL
if debug:
tty_level = 'DEBUG'
# Custom logging configuration
logging = {
'version': 1,
'disable_existing_loggers': True,
'formatters': {
'tty-debug': {
'format': '%(relativeCreated)-4d %(fmessage)s'
},
'precise': {
'format': '%(asctime)-15s %(levelname)-8s %(name)s %(funcName)s - %(fmessage)s'
},
},
'filters': {
'action': {
'()': 'moulinette.utils.log.ActionFilter',
},
},
'handlers': {
'tty': {
'level': tty_level,
'class': 'moulinette.interfaces.cli.TTYHandler',
'formatter': 'tty-debug' if debug else '',
},
'file': {
'class': 'logging.FileHandler',
'formatter': 'precise',
'filename': '%s/%s' % (LOG_DIR, LOG_FILE),
'filters': ['action'],
},
},
'loggers': {
'yunohost': {
'level': level,
'handlers': handlers,
'propagate': False,
},
'moulinette': {
'level': level,
'handlers': [],
'propagate': True,
},
'moulinette.interface': {
'level': level,
'handlers': handlers,
'propagate': False,
},
},
'root': {
'level': level,
'handlers': root_handlers,
},
}
# Create log directory
if not os.path.isdir(LOG_DIR):
try:
os.makedirs(LOG_DIR, 0750)
except os.error as e:
_die(str(e))
# Initialize moulinette
moulinette.init(logging_config=logging, _from_source=IN_DEVEL)
def _retrieve_namespaces():
"""Return the list of namespaces to load"""
ret = ['yunohost']
for n in ActionsMap.get_namespaces():
# Append YunoHost modules
if n.startswith('ynh_'):
ret.append(n)
return ret
# 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"
if os.environ["PATH"] != default_path:
os.environ["PATH"] = default_path + ":" + os.environ["PATH"]
# Main action ----------------------------------------------------------
if __name__ == '__main__':
if __name__ == "__main__":
if os.geteuid() != 0:
# since moulinette isn't initialized, we can't use m18n here
sys.stderr.write("\033[1;31mError:\033[0m yunohost command must be " \
"run as root or with sudo.\n")
sys.stderr.write(
"\033[1;31mError:\033[0m yunohost command must be "
"run as root or with sudo.\n"
)
sys.exit(1)
parser, opts, args = _parse_cli_args()
_init_moulinette(opts.debug, opts.quiet)
# Check that YunoHost is installed
if not os.path.isfile('/etc/yunohost/installed') and \
(len(args) < 2 or (args[0] +' '+ args[1] != 'tools postinstall' and \
args[0] +' '+ args[1] != 'backup restore' and \
args[0] +' '+ args[1] != 'log display')):
from moulinette import m18n
# Init i18n
m18n.load_namespace('yunohost')
m18n.set_locale(get_locale())
# Print error and exit
_die(m18n.n('yunohost_not_installed'), m18n.g('error'))
if opts.version:
args = ["tools", "versions"]
# Execute the action
ret = moulinette.cli(
_retrieve_namespaces(), args,
use_cache=opts.use_cache, output_as=opts.output_as,
password=opts.password, parser_kwargs={'top_parser': parser},
yunohost.cli(
debug=opts.debug,
quiet=opts.quiet,
output_as=opts.output_as,
timeout=opts.timeout,
args=args,
parser=parser,
)
sys.exit(ret)

View file

@ -1,210 +1,52 @@
#! /usr/bin/python
# -*- coding: utf-8 -*-
#! /usr/bin/python3
import os
import sys
import argparse
# Either we are in a development environment or not
IN_DEVEL = False
import yunohost
# Default server configuration
DEFAULT_HOST = 'localhost'
DEFAULT_HOST = "localhost"
DEFAULT_PORT = 6787
# Level for which loggers will log
LOGGERS_LEVEL = 'DEBUG'
API_LOGGER_LEVEL = 'INFO'
# Handlers that will be used by loggers
# - file: log to the file LOG_DIR/LOG_FILE
# - api: serve logs through the api
# - console: log to stderr
LOGGERS_HANDLERS = ['file', 'api']
# Directory and file to be used by logging
LOG_DIR = '/var/log/yunohost'
LOG_FILE = 'yunohost-api.log'
# Check and load - as needed - development environment
if not __file__.startswith('/usr/'):
IN_DEVEL = True
if IN_DEVEL:
basedir = os.path.abspath('%s/../' % os.path.dirname(__file__))
if os.path.isdir(os.path.join(basedir, 'moulinette')):
sys.path.insert(0, basedir)
LOG_DIR = os.path.join(basedir, 'log')
import moulinette
from moulinette.actionsmap import ActionsMap
from moulinette.interfaces.cli import colorize
# Initialization & helpers functions -----------------------------------
def _die(message, title='Error:'):
"""Print error message and exit"""
print('%s %s' % (colorize(title, 'red'), message))
sys.exit(1)
def _parse_api_args():
"""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.",
)
srv_group = parser.add_argument_group('server configuration')
srv_group.add_argument('-h', '--host',
action='store', default=DEFAULT_HOST,
srv_group = parser.add_argument_group("server configuration")
srv_group.add_argument(
"-h",
"--host",
action="store",
default=DEFAULT_HOST,
help="Host to listen on (default: %s)" % DEFAULT_HOST,
)
srv_group.add_argument('-p', '--port',
action='store', default=DEFAULT_PORT, type=int,
srv_group.add_argument(
"-p",
"--port",
action="store",
default=DEFAULT_PORT,
type=int,
help="Port to listen on (default: %d)" % DEFAULT_PORT,
)
srv_group.add_argument('--no-websocket',
action='store_true', default=True, dest='use_websocket',
help="Serve without WebSocket support, used to handle "
"asynchronous responses such as the messages",
)
glob_group = parser.add_argument_group('global arguments')
glob_group.add_argument('--no-cache',
action='store_false', default=True, dest='use_cache',
help="Don't use actions map cache",
)
glob_group.add_argument('--debug',
action='store_true', default=False,
glob_group = parser.add_argument_group("global arguments")
glob_group.add_argument(
"--debug",
action="store_true",
default=False,
help="Set log level to DEBUG",
)
glob_group.add_argument('--verbose',
action='store_true', default=False,
help="Be verbose in the output",
)
glob_group.add_argument('--help',
action='help', help="Show this help message and exit",
glob_group.add_argument(
"--help",
action="help",
help="Show this help message and exit",
)
return parser.parse_args()
def _init_moulinette(use_websocket=True, debug=False, verbose=False):
"""Configure logging and initialize the moulinette"""
# Define loggers handlers
handlers = set(LOGGERS_HANDLERS)
if not use_websocket and 'api' in handlers:
handlers.remove('api')
if verbose and 'console' not in handlers:
handlers.add('console')
root_handlers = handlers - set(['api'])
# Define loggers level
level = LOGGERS_LEVEL
api_level = API_LOGGER_LEVEL
if debug:
level = 'DEBUG'
api_level = 'DEBUG'
# Custom logging configuration
logging = {
'version': 1,
'disable_existing_loggers': True,
'formatters': {
'console': {
'format': '%(relativeCreated)-5d %(levelname)-8s %(name)s %(funcName)s - %(fmessage)s'
},
'precise': {
'format': '%(asctime)-15s %(levelname)-8s %(name)s %(funcName)s - %(fmessage)s'
},
},
'filters': {
'action': {
'()': 'moulinette.utils.log.ActionFilter',
},
},
'handlers': {
'api': {
'level': api_level,
'class': 'moulinette.interfaces.api.APIQueueHandler',
},
'file': {
'class': 'logging.handlers.WatchedFileHandler',
'formatter': 'precise',
'filename': '%s/%s' % (LOG_DIR, LOG_FILE),
'filters': ['action'],
},
'console': {
'class': 'logging.StreamHandler',
'formatter': 'console',
'stream': 'ext://sys.stdout',
'filters': ['action'],
},
},
'loggers': {
'yunohost': {
'level': level,
'handlers': handlers,
'propagate': False,
},
'moulinette': {
'level': level,
'handlers': [],
'propagate': True,
},
'gnupg': {
'level': 'INFO',
'handlers': [],
'propagate': False,
},
},
'root': {
'level': level,
'handlers': root_handlers,
},
}
# Create log directory
if not os.path.isdir(LOG_DIR):
try:
os.makedirs(LOG_DIR, 0750)
except os.error as e:
_die(str(e))
# Initialize moulinette
moulinette.init(logging_config=logging, _from_source=IN_DEVEL)
def _retrieve_namespaces():
"""Return the list of namespaces to load"""
ret = ['yunohost']
for n in ActionsMap.get_namespaces():
# Append YunoHost modules
if n.startswith('ynh_'):
ret.append(n)
return ret
# Callbacks for additional routes --------------------------------------
def is_installed():
"""
Check whether YunoHost is installed or not
"""
installed = False
if os.path.isfile('/etc/yunohost/installed'):
installed = True
return { 'installed': installed }
# Main action ----------------------------------------------------------
if __name__ == '__main__':
if __name__ == "__main__":
opts = _parse_api_args()
_init_moulinette(opts.use_websocket, opts.debug, opts.verbose)
# Run the server
ret = moulinette.api(
_retrieve_namespaces(),
host=opts.host, port=opts.port, routes={
('GET', '/installed'): is_installed,
}, use_cache=opts.use_cache, use_websocket=opts.use_websocket
)
sys.exit(ret)
yunohost.api(debug=opts.debug, host=opts.host, port=opts.port)

191
bin/yunomdns Executable file
View file

@ -0,0 +1,191 @@
#!/usr/bin/env python3
"""
Pythonic declaration of mDNS .local domains for YunoHost
"""
import sys
import yaml
from time import sleep
from typing import List, Dict
import ifaddr
from ipaddress import ip_address
from zeroconf import Zeroconf, ServiceInfo, ServiceBrowser
def get_network_local_interfaces() -> Dict[str, Dict[str, List[str]]]:
"""
Returns interfaces with their associated local IPs
"""
interfaces = {
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
],
"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()
if adapter.name != "lo"
}
return interfaces
# Listener class, to detect duplicates on the network
# Stores the list of servers in its list property
class Listener:
def __init__(self):
self.list = []
def remove_service(self, zeroconf, type, name):
info = zeroconf.get_service_info(type, name)
self.list.remove(info.server)
def update_service(self, zeroconf, type, name):
pass
def add_service(self, zeroconf, type, name):
info = zeroconf.get_service_info(type, name)
self.list.append(info.server[:-1])
def main() -> bool:
###
# CONFIG
###
with open("/etc/yunohost/mdns.yml", "r") as f:
config = yaml.safe_load(f) or {}
required_fields = ["domains"]
missing_fields = [field for field in required_fields if field not in config]
interfaces = get_network_local_interfaces()
if missing_fields:
print(f"The fields {missing_fields} are required in mdns.yml")
return False
if "interfaces" not in config:
config["interfaces"] = [
interface
for interface, local_ips in interfaces.items()
if local_ips["ipv4"]
]
if "ban_interfaces" in config:
config["interfaces"] = [
interface
for interface in config["interfaces"]
if interface not in config["ban_interfaces"]
]
# Let's discover currently published .local domains accross the network
zc = Zeroconf()
listener = Listener()
browser = ServiceBrowser(zc, "_device-info._tcp.local.", listener)
sleep(2)
browser.cancel()
zc.close()
# Always attempt to publish yunohost.local
if "yunohost.local" not in config["domains"]:
config["domains"].append("yunohost.local")
def find_domain_not_already_published(domain):
# Try domain.local ... but if it's already published by another entity,
# try domain-2.local, domain-3.local, ...
i = 1
domain_i = domain
while domain_i in listener.list:
print(f"Uh oh, {domain_i} already exists on the network...")
i += 1
domain_i = domain.replace(".local", f"-{i}.local")
return domain_i
config["domains"] = [
find_domain_not_already_published(domain) for domain in config["domains"]
]
zcs: Dict[Zeroconf, List[ServiceInfo]] = {}
for interface in config["interfaces"]:
if interface not in interfaces:
print(
f"Interface {interface} listed in config file is not present on system."
)
continue
# Only broadcast IPv4 because IPv6 is buggy ... because we ain't using python3-ifaddr >= 0.1.7
# Buster only ships 0.1.6
# Bullseye ships 0.1.7
# To be re-enabled once we're on bullseye...
# ips: List[str] = interfaces[interface]["ipv4"] + interfaces[interface]["ipv6"]
ips: List[str] = interfaces[interface]["ipv4"]
# If at least one IP is listed
if not ips:
continue
# Create a Zeroconf object, and store the ServiceInfos
zc = Zeroconf(interfaces=ips) # type: ignore
zcs[zc] = []
for d in config["domains"]:
d_domain = d.replace(".local", "")
if "." in d_domain:
print(f"{d_domain}.local: subdomains are not supported.")
continue
# Create a ServiceInfo object for each .local domain
zcs[zc].append(
ServiceInfo(
type_="_device-info._tcp.local.",
name=f"{interface}: {d_domain}._device-info._tcp.local.",
parsed_addresses=ips,
port=80,
server=f"{d}.",
)
)
print(f"Adding {d} with addresses {ips} on interface {interface}")
# Run registration
print("Registering...")
for zc, infos in zcs.items():
for info in infos:
zc.register_service(
info, allow_name_change=True, cooperating_responders=True
)
try:
print("Registered. Press Ctrl+C or stop service to stop.")
while True:
sleep(1)
except KeyboardInterrupt:
pass
finally:
print("Unregistering...")
for zc, infos in zcs.items():
zc.unregister_all_services()
zc.close()
return True
if __name__ == "__main__":
sys.exit(0 if main() else 1)

View file

@ -1,77 +1,34 @@
#!/bin/bash
#!/usr/bin/env python3
set -e
set -u
import sys
import requests
import json
PASTE_URL="https://paste.yunohost.org"
SERVER_URL = "https://paste.yunohost.org"
TIMEOUT = 3
_die() {
printf "Error: %s\n" "$*"
exit 1
}
def create_snippet(data):
try:
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() {
json=$(curl -X POST -s -d "$1" "${PASTE_URL}/documents")
[[ -z "$json" ]] && _die "Unable to post the data to the server."
def main():
output = sys.stdin.read()
key=$(echo "$json" \
| python -c 'import json,sys;o=json.load(sys.stdin);print o["key"]' \
2>/dev/null)
[[ -z "$key" ]] && _die "Unable to parse the server response."
if not output:
print("\033[31mError: No input received from stdin.\033[0m")
sys.exit(1)
echo "${PASTE_URL}/${key}"
}
url = create_snippet(output)
usage() {
printf "Usage: ${0} [OPTION]...
print("\033[32mURL: {}\033[0m".format(url))
Read from input stream and paste the data to the YunoHost
Haste server.
For example, to paste the output of the YunoHost diagnosis, you
can simply execute the following:
yunohost tools diagnosis | ${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 "${@}"
if __name__ == "__main__":
main()

View file

@ -1,8 +1,12 @@
#!/bin/bash
# Fetch x509 fingerprint
x509_fingerprint=$(openssl x509 -in /etc/yunohost/certs/yunohost.org/crt.pem -noout -fingerprint -sha256 | cut -d= -f2)
# Fetch SSH fingerprints
i=0
for key in $(ls /etc/ssh/ssh_host_{ed25519,rsa,ecdsa}_key.pub 2> /dev/null) ; do
for key in $(ls /etc/ssh/ssh_host_{ed25519,rsa,ecdsa}_key.pub 2> /dev/null) ; do
output=$(ssh-keygen -l -f $key)
fingerprint[$i]=" - $(echo $output | cut -d' ' -f2) $(echo $output| cut -d' ' -f4)"
i=$(($i + 1))
@ -39,21 +43,21 @@ LOGO_AND_FINGERPRINTS=$(cat << EOF
$LOGO
IP: ${local_ip}
Local IP: ${local_ip:-(no ip detected?)}
Local SSL CA X509 fingerprint:
${x509_fingerprint}
SSH fingerprints:
${fingerprint[0]}
${fingerprint[1]}
${fingerprint[2]}
${fingerprint[3]}
${fingerprint[4]}
EOF
)
if [[ -f /etc/yunohost/installed ]]
echo "$LOGO_AND_FINGERPRINTS" > /etc/issue
if ! groups | grep -q all_users && [[ ! -f /etc/yunohost/installed ]]
then
echo "$LOGO_AND_FINGERPRINTS" > /etc/issue
else
chvt 2
# Formatting
@ -62,19 +66,19 @@ else
echo "$LOGO_AND_FINGERPRINTS"
cat << EOF
===============================================================================
You should now proceed with Yunohost post-installation. This is where you will
be asked for :
- the main domain of your server ;
- the administration password.
You should now proceed with YunoHost post-installation. This is where you will
be asked for:
- the main domain of your server;
- the username and password for the first admin
You can perform this step :
- from your web browser, by accessing : ${local_ip}
You can perform this step:
- from your web browser, by accessing: https://yunohost.local/ or ${local_ip}
- or in this terminal by answering 'yes' to the following question
If this is your first time with YunoHost, it is strongly recommended to take
time to read the administator documentation and in particular the sections
'Finalizing your setup' and 'Getting to know YunoHost'. It is available at
the following URL : https://yunohost.org/admindoc
the following URL: https://yunohost.org/admindoc
===============================================================================
EOF

View file

@ -0,0 +1,10 @@
domain-needed
expand-hosts
localise-queries
{% set interfaces = wireless_interfaces.strip().split(' ') %}
{% for interface in interfaces %}
interface={{ interface }}
{% endfor %}
resolv-file=/etc/resolv.dnsmasq.conf
cache-size=256

13
conf/dnsmasq/domain.tpl Normal file
View file

@ -0,0 +1,13 @@
{% set interfaces_list = interfaces.split(' ') %}
{% for interface in interfaces_list %}
interface-name={{ domain }},{{ interface }}
interface-name=xmpp-upload.{{ domain }},{{ interface }}
{% endfor %}
{% if ipv6 %}
host-record={{ domain }},{{ ipv6 }}
host-record=xmpp-upload.{{ domain }},{{ ipv6 }}
{% endif %}
txt-record={{ domain }},"v=spf1 mx a -all"
mx-host={{ domain }},{{ domain }},5
srv-host=_xmpp-client._tcp.{{ domain }},{{ domain }},5222,0,5
srv-host=_xmpp-server._tcp.{{ domain }},{{ domain }},5269,0,5

View file

@ -12,9 +12,6 @@ nameserver 80.67.169.12
nameserver 2001:910:800::12
nameserver 80.67.169.40
nameserver 2001:910:800::40
# (FR) LDN
nameserver 80.67.188.188
nameserver 2001:913::8
# (FR) ARN
nameserver 89.234.141.66
nameserver 2a00:5881:8100:1000::3
@ -23,11 +20,6 @@ nameserver 185.233.100.100
nameserver 2a0c:e300::100
nameserver 185.233.100.101
nameserver 2a0c:e300::101
# (FR) gozmail / grifon
nameserver 80.67.190.200
nameserver 2a00:5884:8218::1
# (DE) FoeBud / Digital Courage
nameserver 85.214.20.141
# (DE) CCC Berlin
nameserver 195.160.173.53
# (DE) AS250

View file

@ -10,36 +10,54 @@ mail_uid = 500
protocols = imap sieve {% if pop3_enabled == "True" %}pop3{% endif %}
mail_plugins = $mail_plugins quota
mail_plugins = $mail_plugins quota notify push_notification
###############################################################################
# generated 2020-04-03, Mozilla Guideline v5.4, Dovecot 2.2.27, OpenSSL 1.1.0l, intermediate configuration
# https://ssl-config.mozilla.org/#server=dovecot&version=2.2.27&config=intermediate&openssl=1.1.0l&guideline=5.4
# generated 2020-08-18, Mozilla Guideline v5.6, Dovecot 2.3.4, OpenSSL 1.1.1d, intermediate configuration
# https://ssl-config.mozilla.org/#server=dovecot&version=2.3.4&config=intermediate&openssl=1.1.1d&guideline=5.6
ssl = required
ssl_cert = </etc/yunohost/certs/{{ main_domain }}/crt.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 %}
ssl_dh_parameters_length = 2048
# curl https://ssl-config.mozilla.org/ffdhe2048.txt > /path/to/dhparam
ssl_dh = </usr/share/yunohost/ffdhe2048.pem
# intermediate configuration
ssl_protocols = TLSv1.2
ssl_min_protocol = TLSv1.2
ssl_cipher_list = 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
ssl_prefer_server_ciphers = no
###############################################################################
# Regular Yunohost accounts
passdb {
args = /etc/dovecot/dovecot-ldap.conf
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 {
args = /etc/dovecot/dovecot-ldap.conf
driver = ldap
args = /etc/dovecot/dovecot-ldap.conf
}
userdb {
driver = passwd-file
args = username_format=%n /etc/dovecot/app-senders-passwd
}
protocol imap {
@ -47,13 +65,40 @@ protocol imap {
mail_plugins = $mail_plugins imap_quota antispam
}
protocol lda {
auth_socket_path = /var/run/dovecot/auth-master
mail_plugins = quota sieve
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 {
}
@ -77,6 +122,20 @@ service quota-warning {
}
}
service stats {
unix_listener stats-reader {
user = vmail
group = mail
mode = 0660
}
unix_listener stats-writer {
user = vmail
group = mail
mode = 0660
}
}
plugin {
sieve = /var/mail/sievescript/%n/.dovecot.sieve
sieve_dir = /var/mail/sievescript/%n/scripts/
@ -87,8 +146,8 @@ plugin {
antispam_debug_target = syslog
antispam_verbose_debug = 0
antispam_backend = pipe
antispam_spam = Junk;SPAM
antispam_trash = Trash
antispam_spam_pattern_ignorecase = junk;spam
antispam_trash_pattern_ignorecase = trash;papierkorb;deleted messages
antispam_pipe_program = /usr/bin/rspamc
antispam_pipe_program_args = -h;localhost:11334;-P;q1
antispam_pipe_program_spam_arg = learn_spam

View file

@ -1,4 +1,4 @@
require "fileinto";
if header :contains "X-Spam-Flag" "YES" {
if header :contains "X-Spam-Flag" "Yes" {
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

@ -1,7 +1,5 @@
[sshd]
enabled = true
[sshd-ddos]
port = {{ssh_port}}
enabled = true
[nginx-http-auth]
@ -10,10 +8,14 @@ enabled = true
[postfix]
enabled = true
[dovecot]
enabled = true
[sasl]
enabled = true
port = smtp
filter = postfix-sasl
logpath = /var/log/mail.log
maxretry = 5
[postfix-sasl]
[dovecot]
enabled = true
[recidive]

View file

@ -15,7 +15,7 @@
# Values: TEXT
#
failregex = helpers.lua:[0-9]+: authenticate\(\): Connection failed for: .*, client: <HOST>
^<HOST> -.*\"POST /yunohost/api/login HTTP/1.1\" 401
^<HOST> -.*\"POST /yunohost/api/login HTTP/\d.\d\" 401
# Option: ignoreregex
# Notes.: regex to ignore. If this regex matches, the line is ignored.

View file

@ -0,0 +1,15 @@
[Unit]
Description=YunoHost mDNS service
Wants=network-online.target
After=network-online.target
[Service]
User=mdns
Group=mdns
Type=simple
Environment=PYTHONUNBUFFERED=1
ExecStart=/usr/bin/yunomdns
StandardOutput=journal
[Install]
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
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 = {
vcard = vcard_tag,
__index = builder_methods,
};
local object = {
vcard = vcard_tag,
__index = builder_methods,
};
for k, v in pairs(params) do
object[k] = v;
end
for k, v in pairs(params) do
object[k] = v;
end
setmetatable(object, object);
setmetatable(object, object);
return object;
return object;
end
local _M = {};
function _M.create(params)
local builder = new_builder(params);
local builder = new_builder(params);
return builder:build();
return builder:build();
end
return _M;

View file

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

View file

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

View file

@ -1,5 +1,5 @@
# Insert YunoHost button + portal overlay
sub_filter </head> '<script type="text/javascript" src="/ynh_portal.js"></script><link type="text/css" rel="stylesheet" href="/ynh_overlay.css"></link><script type="text/javascript" src="/ynhtheme/custom_portal.js"></script><link type="text/css" rel="stylesheet" href="/ynhtheme/custom_overlay.css"></link></head>';
sub_filter </head> '<script type="text/javascript" src="/ynh_portal.js"></script><link type="text/css" rel="stylesheet" href="/ynh_overlay.css"><script type="text/javascript" src="/ynhtheme/custom_portal.js"></script><link type="text/css" rel="stylesheet" href="/ynhtheme/custom_overlay.css"></head>';
sub_filter_once on;
# Apply to other mime types than text/html
sub_filter_types application/xhtml+xml;

View file

@ -0,0 +1,7 @@
# Avoid the nginx path/alias traversal weakness ( #1037 )
rewrite ^/yunohost/sso$ /yunohost/sso/ permanent;
location /yunohost/sso/ {
# This is an empty location, only meant to avoid other locations
# from matching /yunohost/sso, such that it's correctly handled by ssowat
}

View file

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

View file

@ -0,0 +1,50 @@
ssl_session_timeout 1d;
ssl_session_cache shared:SSL:50m; # about 200000 sessions
ssl_session_tickets off;
{% if compatibility == "modern" %}
# generated 2020-08-14, Mozilla Guideline v5.6, nginx 1.14.2, OpenSSL 1.1.1d, modern configuration
# https://ssl-config.mozilla.org/#server=nginx&version=1.14.2&config=modern&openssl=1.1.1d&guideline=5.6
ssl_protocols TLSv1.3;
ssl_prefer_server_ciphers off;
{% else %}
# Ciphers with intermediate compatibility
# generated 2020-08-14, Mozilla Guideline v5.6, nginx 1.14.2, OpenSSL 1.1.1d, intermediate configuration
# https://ssl-config.mozilla.org/#server=nginx&version=1.14.2&config=intermediate&openssl=1.1.1d&guideline=5.6
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers 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;
ssl_prefer_server_ciphers off;
# Pre-defined FFDHE group (RFC 7919)
# From https://ssl-config.mozilla.org/ffdhe2048.txt
# https://security.stackexchange.com/a/149818
ssl_dhparam /usr/share/yunohost/ffdhe2048.pem;
{% endif %}
# Follows the Web Security Directives from the Mozilla Dev Lab and the Mozilla Obervatory + Partners
# https://wiki.mozilla.org/Security/Guidelines/Web_Security
# https://observatory.mozilla.org/
{% 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'; worker-src 'self' blob:;";
{% else %}
more_set_headers "Content-Security-Policy : upgrade-insecure-requests";
{% endif %}
more_set_headers "X-Content-Type-Options : nosniff";
more_set_headers "X-XSS-Protection : 1; mode=block";
more_set_headers "X-Download-Options : noopen";
more_set_headers "X-Permitted-Cross-Domain-Policies : none";
more_set_headers "X-Frame-Options : SAMEORIGIN";
# Disable the disaster privacy thing that is FLoC
{% if experimental == "True" %}
more_set_headers "Permissions-Policy : fullscreen=(), geolocation=(), payment=(), accelerometer=(), battery=(), magnetometer=(), usb=(), interest-cohort=()";
# Force HTTPOnly and Secure for all cookies
proxy_cookie_path ~$ "; HTTPOnly; Secure;";
{% else %}
more_set_headers "Permissions-Policy : interest-cohort=()";
{% endif %}
# Disable gzip to protect against BREACH
# Read https://trac.nginx.org/nginx/ticket/1720 (text/html cannot be disabled!)
gzip off;

View file

@ -6,25 +6,33 @@ map $http_upgrade $connection_upgrade {
server {
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;
include /etc/nginx/conf.d/acme-challenge.conf.inc;
include /etc/nginx/conf.d/{{ domain }}.d/*.conf;
location /yunohost/admin {
return 301 https://$http_host$request_uri;
}
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/' {
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. #}
{% if redirect_to_https != "False" %}
location / {
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. #}
{% else %}
include /etc/nginx/conf.d/{{ domain }}.d/*.conf;
{% endif %}
include /etc/nginx/conf.d/yunohost_http_errors.conf.inc;
access_log /var/log/nginx/{{ domain }}-access.log;
error_log /var/log/nginx/{{ domain }}-error.log;
@ -40,33 +48,38 @@ server {
ssl_certificate /etc/yunohost/certs/{{ domain }}/crt.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";
{% endif %}
{% if domain_cert_ca == "Let's Encrypt" %}
{% if domain_cert_ca == "letsencrypt" %}
# OCSP settings
ssl_stapling on;
ssl_stapling_verify on;
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;
{% endif %}
{% if mail_enabled == "True" %}
location ^~ '/.well-known/autoconfig/mail/' {
alias /var/www/.well-known/{{ domain }}/autoconfig/mail/;
}
{% endif %}
access_by_lua_file /usr/share/ssowat/access.lua;
include /etc/nginx/conf.d/{{ domain }}.d/*.conf;
include /etc/nginx/conf.d/yunohost_sso.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_http_errors.conf.inc;
access_log /var/log/nginx/{{ domain }}-access.log;
error_log /var/log/nginx/{{ domain }}-error.log;
}
{% if xmpp_enabled == "True" %}
# vhost dedicated to XMPP http_upload
server {
listen 443 ssl http2;
@ -94,18 +107,19 @@ server {
ssl_certificate /etc/yunohost/certs/{{ domain }}/crt.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";
{% endif %}
{% if domain_cert_ca == "Let's Encrypt" %}
{% if domain_cert_ca == "letsencrypt" %}
# OCSP settings
ssl_stapling on;
ssl_stapling_verify on;
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;
{% endif %}
access_log /var/log/nginx/xmpp-upload.{{ domain }}-access.log;
error_log /var/log/nginx/xmpp-upload.{{ domain }}-error.log;
}
{% endif %}

View file

@ -2,13 +2,7 @@ server {
listen 80 default_server;
listen [::]:80 default_server;
location / {
return 302 https://$http_host/yunohost/admin;
}
location /yunohost/admin {
return 301 https://$http_host$request_uri;
}
include /etc/nginx/conf.d/default.d/*.conf;
}
server {
@ -23,21 +17,12 @@ server {
more_set_headers "Strict-Transport-Security : max-age=63072000; includeSubDomains; preload";
more_set_headers "Referrer-Policy : 'same-origin'";
location / {
return 302 https://$http_host/yunohost/admin;
}
location /yunohost {
# Block crawlers bot
if ($http_user_agent ~ (crawl|Googlebot|Slurp|spider|bingbot|tracker|click|parser|spider|facebookexternalhit) ) {
return 403;
}
# X-Robots-Tag to precise the rules applied.
add_header X-Robots-Tag "nofollow, noindex, noarchive, nosnippet";
# Redirect most of 404 to maindomain.tld/yunohost/sso
access_by_lua_file /usr/share/ssowat/access.lua;
}
include /etc/nginx/conf.d/yunohost_admin.conf.inc;
include /etc/nginx/conf.d/yunohost_api.conf.inc;
include /etc/nginx/conf.d/default.d/*.conf;
}

View file

@ -0,0 +1,30 @@
# Avoid the nginx path/alias traversal weakness ( #1037 )
rewrite ^/yunohost/admin$ /yunohost/admin/ permanent;
location /yunohost/admin/ {
alias /usr/share/yunohost/admin/;
default_type text/html;
index index.html;
{% if webadmin_allowlist_enabled == "True" %}
{% if webadmin_allowlist.strip() -%}
{% for ip in webadmin_allowlist.strip().split(',') -%}
allow {{ ip.strip() }};
{% endfor -%}
{% endif -%}
deny all;
{% endif %}
location = /yunohost/admin/index.html {
etag off;
expires off;
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-Report-Only:";
}

View file

@ -4,7 +4,14 @@ location /yunohost/api/ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_set_header Host $host;
{% if webadmin_allowlist_enabled == "True" %}
{% for ip in webadmin_allowlist.split(',') %}
allow {{ ip }};
{% endfor %}
deny all;
{% endif %}
# Custom 502 error page
error_page 502 /yunohost/api/error/502;

View file

@ -15,6 +15,18 @@ base dc=yunohost,dc=org
# The LDAP protocol version to use.
#ldap_version 3
# The DN to bind with for normal lookups.
#binddn cn=annonymous,dc=example,dc=net
#bindpw secret
# The DN used for password modifications by root.
#rootpwmoddn cn=admin,dc=example,dc=com
# SSL options
#ssl off
#tls_reqcert never
tls_cacertfile /etc/ssl/certs/ca-certificates.crt
# The search scope.
#scope sub

View file

@ -0,0 +1,17 @@
# /etc/nsswitch.conf
passwd: files systemd ldap
group: files systemd ldap
shadow: files ldap
gshadow: files
hosts: files myhostname mdns4_minimal [NOTFOUND=return] dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
sudoers: files ldap

View file

@ -19,41 +19,50 @@ readme_directory = no
# -- TLS for incoming connections
###############################################################################
# generated 2020-04-03, Mozilla Guideline v5.4, Postfix 3.1.14, OpenSSL 1.1.0l, intermediate configuration
# https://ssl-config.mozilla.org/#server=postfix&version=3.1.14&config=intermediate&openssl=1.1.0l&guideline=5.4
# (No modern conf support until we're on buster...)
# {% if compatibility == "intermediate" %} {% else %} {% endif %}
smtpd_use_tls = yes
smtpd_tls_security_level = may
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/yunohost/certs/{{ main_domain }}/crt.pem
smtpd_tls_key_file = /etc/yunohost/certs/{{ main_domain }}/key.pem
smtpd_tls_chain_files =
/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" %}
# generated 2020-08-18, Mozilla Guideline v5.6, Postfix 3.4.14, OpenSSL 1.1.1d, intermediate configuration
# https://ssl-config.mozilla.org/#server=postfix&version=3.4.14&config=intermediate&openssl=1.1.1d&guideline=5.6
smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1
smtpd_tls_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1
# smtpd_tls_mandatory_ciphers = medium # (c.f. below)
smtpd_tls_mandatory_ciphers = medium
# curl https://ssl-config.mozilla.org/ffdhe2048.txt > /path/to/dhparam.pem
# not actually 1024 bits, this applies to all DHE >= 1024 bits
# smtpd_tls_dh1024_param_file = /path/to/dhparam.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
{% else %}
# generated 2020-08-18, Mozilla Guideline v5.6, Postfix 3.4.14, OpenSSL 1.1.1d, modern configuration
# https://ssl-config.mozilla.org/#server=postfix&version=3.4.14&config=modern&openssl=1.1.1d&guideline=5.6
smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1, !TLSv1.2
smtpd_tls_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1, !TLSv1.2
{% endif %}
# This custom medium cipherlist recommendation only works if we have a DH ... which we don't, c.f. https://github.com/YunoHost/issues/issues/93
# On the other hand, the postfix doc strongly discourage tweaking this list ... So whatever, let's keep the mandatory_ciphers to high like we did before applying the Mozilla recommendation ...
#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_preempt_cipherlist = no
# Custom Yunohost stuff ... because we can't use the recommendation about medium cipher list ...
smtpd_tls_mandatory_ciphers=high
smtpd_tls_eecdh_grade = ultra
###############################################################################
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_tls_loglevel=1
# -- TLS for outgoing connections
# Use TLS if this is supported by the remote SMTP server, otherwise use plaintext.
smtp_tls_security_level=may
{% if relay_port == "465" %}
smtp_tls_wrappermode = yes
smtp_tls_security_level = encrypt
{% else %}
smtp_tls_security_level = may
{% endif %}
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_tls_exclude_ciphers = aNULL, MD5, DES, ADH, RC4, 3DES
smtp_tls_mandatory_ciphers= high
@ -72,26 +81,37 @@ alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydomain = {{ main_domain }}
mydestination = localhost
{% if relay_enabled != "True" %}
relayhost =
{% else %}
relayhost = [{{ relay_host }}]:{{ relay_port }}
{% endif %}
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
#### Fit to the maximum message size to 30mb, more than allowed by GMail or Yahoo ####
message_size_limit = 31457280
#### 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.
# BASE64_SIZE_IN_BYTE = ORIGINAL_SIZE_IN_MEGABYTE * 1,37 *1024*1024 + 980
# See https://serverfault.com/questions/346895/postfix-mail-size-counting
message_size_limit = 35914708
# Virtual Domains Control
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_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_minimum_uid = 100
virtual_uid_maps = static:vmail
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
virtual_transport = dovecot
@ -170,11 +190,32 @@ smtpd_milters = inet:localhost:11332
milter_default_action = accept
# Avoid to send simultaneously too many emails
smtp_destination_concurrency_limit = 1
smtp_destination_concurrency_limit = 2
default_destination_rate_delay = 5s
# Avoid to be blacklisted due to too many recipient
smtpd_client_recipient_rate_limit=150
# Avoid email adress scanning
# By default it's possible to detect if the email adress exist
# So it's easly possible to scan a server to know which email adress is valid
# and after to send spam
disable_vrfy_command = yes
{% if relay_enabled == "True" %}
# Relay email through an other smtp account
# enable SASL authentication
smtp_sasl_auth_enable = yes
# disallow methods that allow anonymous authentication.
smtp_sasl_security_options = noanonymous
# where to find sasl_passwd
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
{% 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"];
if header :is "X-Spam" "yes" {
if header :is "X-Spam" "Yes" {
fileinto "Junk";
}

233
conf/slapd/config.ldif Normal file
View file

@ -0,0 +1,233 @@
# OpenLDAP server configuration for YunoHost
# ------------------------------------------
#
# Because of the YunoHost's regen-conf mechanism, it is NOT POSSIBLE to
# edit the config database using an LDAP request.
#
# If you wish to edit the config database, you should edit THIS file
# and update the config database based on this file.
#
# Config database customization:
# 1. Edit this file as you want.
# 2. Apply your modifications. For this just run this following command in a shell:
# $ /usr/share/yunohost/hooks/conf_regen/06-slapd post true
#
# 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
# upgrades, because they may ship important/necessary changes to this
# configuration that you will have to propagate yourself.
#
# Main configuration
#
dn: cn=config
objectClass: olcGlobal
cn: config
olcConfigFile: /etc/ldap/slapd.conf
olcConfigDir: /etc/ldap/slapd.d/
# List of arguments that were passed to the server
olcArgsFile: /var/run/slapd/slapd.args
#
olcAttributeOptions: lang-
olcAuthzPolicy: none
olcConcurrency: 0
olcConnMaxPending: 100
olcConnMaxPendingAuth: 1000
olcSizeLimit: 50000
olcIdleTimeout: 0
olcIndexSubstrIfMaxLen: 4
olcIndexSubstrIfMinLen: 2
olcIndexSubstrAnyLen: 4
olcIndexSubstrAnyStep: 2
olcIndexIntLen: 4
olcListenerThreads: 1
olcLocalSSF: 71
# Read slapd.conf(5) for possible values
olcLogLevel: None
# Where the pid file is put. The init.d script
# will not stop the server if you change this.
olcPidFile: /var/run/slapd/slapd.pid
olcReverseLookup: FALSE
olcThreads: 16
# TLS Support
olcTLSCertificateFile: /etc/yunohost/certs/yunohost.org/crt.pem
olcTLSCertificateKeyFile: /etc/yunohost/certs/yunohost.org/key.pem
olcTLSVerifyClient: never
olcTLSProtocolMin: 0.0
# The tool-threads parameter sets the actual amount of cpu's that is used
# for indexing.
olcToolThreads: 1
structuralObjectClass: olcGlobal
#
# Schema and objectClass definitions
#
dn: cn=schema,cn=config
objectClass: olcSchemaConfig
cn: schema
include: file:///etc/ldap/schema/core.ldif
include: file:///etc/ldap/schema/cosine.ldif
include: file:///etc/ldap/schema/nis.ldif
include: file:///etc/ldap/schema/inetorgperson.ldif
include: file:///etc/ldap/schema/mailserver.ldif
include: file:///etc/ldap/schema/sudo.ldif
include: file:///etc/ldap/schema/permission.ldif
#
# Module management
#
dn: cn=module{0},cn=config
objectClass: olcModuleList
cn: module{0}
# Where the dynamically loaded modules are stored
olcModulePath: /usr/lib/ldap
olcModuleLoad: {0}back_mdb
olcModuleLoad: {1}memberof
structuralObjectClass: olcModuleList
#
# Frontend database
#
dn: olcDatabase={-1}frontend,cn=config
objectClass: olcDatabaseConfig
objectClass: olcFrontendConfig
olcDatabase: {-1}frontend
olcAddContentAcl: FALSE
olcLastMod: TRUE
olcSchemaDN: cn=Subschema
# Hashes to be used in generation of user passwords
olcPasswordHash: {SSHA}
structuralObjectClass: olcDatabaseConfig
#
# Config database Configuration (#0)
#
dn: olcDatabase={0}config,cn=config
objectClass: olcDatabaseConfig
olcDatabase: {0}config
# Give access to root user.
# This give the possiblity to the admin to customize the LDAP configuration
olcAccess: {0}to * by * none
olcAddContentAcl: TRUE
olcLastMod: TRUE
olcRootDN: cn=config
structuralObjectClass: olcDatabaseConfig
#
# Main database Configuration (#1)
#
dn: olcDatabase={1}mdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcMdbConfig
olcDatabase: {1}mdb
# The base of your directory in database #1
olcSuffix: dc=yunohost,dc=org
#
# The userPassword by default can be changed
# by the entry owning it if they are authenticated.
# Others should not be able to see it, except the
# admin entry below
# These access lines apply to database #1 only
olcAccess: {0}to attrs=userPassword,shadowLastChange
by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" write
by anonymous auth
by self write
by * none
#
# Personnal information can be changed by the entry
# owning it if they are authenticated.
# Others should be able to see it.
olcAccess: {1}to attrs=cn,gecos,givenName,mail,maildrop,displayName,sn
by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" write
by self write
by * read
#
# Ensure read access to the base for things like
# supportedSASLMechanisms. Without this you may
# have problems with SASL not knowing what
# mechanisms are available and the like.
# Note that this is covered by the 'access to *'
# ACL below too but if you change that as people
# are wont to do you'll still need this if you
# want SASL (and possible other things) to work
# happily.
olcAccess: {2}to dn.base=""
by * read
#
# The admin dn has full write access, everyone else
# can read everything.
olcAccess: {3}to *
by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" write
by group/groupOfNamesYnh/member.exact="cn=admins,ou=groups,dc=yunohost,dc=org" write
by * read
#
olcAddContentAcl: FALSE
# Save the time that the entry gets modified, for database #1
olcLastMod: TRUE
# Where the database file are physically stored for database #1
olcDbDirectory: /var/lib/ldap
# Checkpoint the BerkeleyDB database periodically in case of system
# failure and to speed slapd shutdown.
olcDbCheckpoint: 512 30
olcDbNoSync: FALSE
# Indexing options for database #1
olcDbIndex: objectClass eq
olcDbIndex: entryUUID eq
olcDbIndex: entryCSN eq
olcDbIndex: cn eq
olcDbIndex: uid eq,sub
olcDbIndex: uidNumber eq
olcDbIndex: gidNumber eq
olcDbIndex: sudoUser eq,sub
olcDbIndex: member eq
olcDbIndex: mail eq
olcDbIndex: memberUid eq
olcDbIndex: uniqueMember eq
olcDbIndex: virtualdomain eq
olcDbIndex: permission eq
olcDbMaxSize: 104857600
structuralObjectClass: olcMdbConfig
#
# Configure Memberof Overlay (used for YunoHost permission)
#
# Link user <-> group
dn: olcOverlay={0}memberof,olcDatabase={1}mdb,cn=config
objectClass: olcOverlayConfig
objectClass: olcMemberOf
olcOverlay: {0}memberof
olcMemberOfDangling: error
olcMemberOfDanglingError: constraintViolation
olcMemberOfRefInt: TRUE
olcMemberOfGroupOC: groupOfNamesYnh
olcMemberOfMemberAD: member
olcMemberOfMemberOfAD: memberOf
structuralObjectClass: olcMemberOf
# Link permission <-> groupes
dn: olcOverlay={1}memberof,olcDatabase={1}mdb,cn=config
objectClass: olcOverlayConfig
objectClass: olcMemberOf
olcOverlay: {1}memberof
olcMemberOfDangling: error
olcMemberOfDanglingError: constraintViolation
olcMemberOfRefInt: TRUE
olcMemberOfGroupOC: permissionYnh
olcMemberOfMemberAD: groupPermission
olcMemberOfMemberOfAD: permission
structuralObjectClass: olcMemberOf
# Link permission <-> user
dn: olcOverlay={2}memberof,olcDatabase={1}mdb,cn=config
objectClass: olcOverlayConfig
objectClass: olcMemberOf
olcOverlay: {2}memberof
olcMemberOfDangling: error
olcMemberOfDanglingError: constraintViolation
olcMemberOfRefInt: TRUE
olcMemberOfGroupOC: permissionYnh
olcMemberOfMemberAD: inheritPermission
olcMemberOfMemberOfAD: permission
structuralObjectClass: olcMemberOf

107
conf/slapd/db_init.ldif Normal file
View file

@ -0,0 +1,107 @@
dn: dc=yunohost,dc=org
objectClass: top
objectClass: dcObject
objectClass: organization
o: yunohost.org
dc: yunohost
dn: ou=users,dc=yunohost,dc=org
objectClass: organizationalUnit
objectClass: top
ou: users
dn: ou=domains,dc=yunohost,dc=org
objectClass: organizationalUnit
objectClass: top
ou: domains
dn: ou=apps,dc=yunohost,dc=org
objectClass: organizationalUnit
objectClass: top
ou: apps
dn: ou=permission,dc=yunohost,dc=org
objectClass: organizationalUnit
objectClass: top
ou: permission
dn: ou=groups,dc=yunohost,dc=org
objectClass: organizationalUnit
objectClass: top
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
objectClass: organizationalUnit
objectClass: top
ou: sudo
dn: cn=admins,ou=groups,dc=yunohost,dc=org
objectClass: posixGroup
objectClass: top
objectClass: groupOfNamesYnh
gidNumber: 4001
cn: admins
dn: cn=all_users,ou=groups,dc=yunohost,dc=org
objectClass: posixGroup
objectClass: groupOfNamesYnh
gidNumber: 4002
cn: all_users
permission: cn=mail.main,ou=permission,dc=yunohost,dc=org
permission: cn=xmpp.main,ou=permission,dc=yunohost,dc=org
dn: cn=visitors,ou=groups,dc=yunohost,dc=org
objectClass: posixGroup
objectClass: groupOfNamesYnh
gidNumber: 4003
cn: visitors
dn: cn=mail.main,ou=permission,dc=yunohost,dc=org
groupPermission: cn=all_users,ou=groups,dc=yunohost,dc=org
cn: mail.main
objectClass: posixGroup
objectClass: permissionYnh
isProtected: TRUE
label: E-mail
gidNumber: 5001
showTile: FALSE
authHeader: FALSE
dn: cn=xmpp.main,ou=permission,dc=yunohost,dc=org
groupPermission: cn=all_users,ou=groups,dc=yunohost,dc=org
cn: xmpp.main
objectClass: posixGroup
objectClass: permissionYnh
isProtected: TRUE
label: XMPP
gidNumber: 5002
showTile: FALSE
authHeader: FALSE
dn: cn=ssh.main,ou=permission,dc=yunohost,dc=org
cn: ssh.main
objectClass: posixGroup
objectClass: permissionYnh
isProtected: TRUE
label: SSH
gidNumber: 5003
showTile: FALSE
authHeader: FALSE
dn: cn=sftp.main,ou=permission,dc=yunohost,dc=org
cn: sftp.main
objectClass: posixGroup
objectClass: permissionYnh
isProtected: TRUE
label: SFTP
gidNumber: 5004
showTile: FALSE
authHeader: FALSE

View file

@ -8,7 +8,7 @@
BASE dc=yunohost,dc=org
URI ldap://localhost:389
#SIZELIMIT 12
SIZELIMIT 10000
#TIMELIMIT 15
#DEREF never

View file

@ -2,58 +2,62 @@
## Version 0.1
## Adrien Beudin
dn: cn=mailserver,cn=schema,cn=config
objectClass: olcSchemaConfig
cn: mailserver
#
# Attributes
attributetype ( 1.3.6.1.4.1.40328.1.20.2.1
olcAttributeTypes: ( 1.3.6.1.4.1.40328.1.20.2.1
NAME 'maildrop'
DESC 'Mail addresses where mails are forwarded -- ie forwards'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{512})
attributetype ( 1.3.6.1.4.1.40328.1.20.2.2
#
olcAttributeTypes: ( 1.3.6.1.4.1.40328.1.20.2.2
NAME 'mailalias'
DESC 'Mail addresses accepted by this account -- ie aliases'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{512})
attributetype ( 1.3.6.1.4.1.40328.1.20.2.3
#
olcAttributeTypes: ( 1.3.6.1.4.1.40328.1.20.2.3
NAME 'mailenable'
DESC 'Mail Account validity'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{8})
attributetype ( 1.3.6.1.4.1.40328.1.20.2.4
#
olcAttributeTypes: ( 1.3.6.1.4.1.40328.1.20.2.4
NAME 'mailbox'
DESC 'Mailbox path where mails are delivered'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{512})
attributetype ( 1.3.6.1.4.1.40328.1.20.2.5
#
olcAttributeTypes: ( 1.3.6.1.4.1.40328.1.20.2.5
NAME 'virtualdomain'
DESC 'A mail domain name'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{512})
attributetype ( 1.3.6.1.4.1.40328.1.20.2.6
#
olcAttributeTypes: ( 1.3.6.1.4.1.40328.1.20.2.6
NAME 'virtualdomaindescription'
DESC 'Virtual domain description'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{512})
attributetype ( 1.3.6.1.4.1.40328.1.20.2.7
#
olcAttributeTypes: ( 1.3.6.1.4.1.40328.1.20.2.7
NAME 'mailuserquota'
DESC 'Mailbox quota for a user'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{16} SINGLE-VALUE )
#
# Mail Account Objectclass
objectclass ( 1.3.6.1.4.1.40328.1.1.2.1
olcObjectClasses: ( 1.3.6.1.4.1.40328.1.1.2.1
NAME 'mailAccount'
DESC 'Mail Account'
SUP top
@ -65,9 +69,9 @@ objectclass ( 1.3.6.1.4.1.40328.1.1.2.1
mailalias $ maildrop $ mailenable $ mailbox $ mailuserquota
)
)
#
# Mail Domain Objectclass
objectclass ( 1.3.6.1.4.1.40328.1.1.2.2
olcObjectClasses: ( 1.3.6.1.4.1.40328.1.1.2.2
NAME 'mailDomain'
DESC 'Domain mail entry'
SUP top
@ -79,10 +83,13 @@ objectclass ( 1.3.6.1.4.1.40328.1.1.2.2
virtualdomaindescription $ mailuserquota
)
)
#
# Mail Group Objectclass
objectclass ( 1.3.6.1.4.1.40328.1.1.2.3
olcObjectClasses: ( 1.3.6.1.4.1.40328.1.1.2.3
NAME 'mailGroup' SUP top AUXILIARY
DESC 'Mail Group'
MUST ( mail )
MAY (
mailalias $ maildrop
)
)

View file

@ -0,0 +1,50 @@
# YunoHost schema for group and permission support
dn: cn=yunohost,cn=schema,cn=config
objectClass: olcSchemaConfig
cn: yunohost
# ATTRIBUTES
# For Permission
olcAttributeTypes: ( 1.3.6.1.4.1.17953.9.1.1 NAME 'permission'
DESC 'YunoHost permission on user and group side'
SUP distinguishedName )
olcAttributeTypes: ( 1.3.6.1.4.1.17953.9.1.2 NAME 'groupPermission'
DESC 'YunoHost permission for a group on permission side'
SUP distinguishedName )
olcAttributeTypes: ( 1.3.6.1.4.1.17953.9.1.3 NAME 'inheritPermission'
DESC 'YunoHost permission for user on permission side'
SUP distinguishedName )
olcAttributeTypes: ( 1.3.6.1.4.1.17953.9.1.4 NAME 'URL'
DESC 'YunoHost permission main URL'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} SINGLE-VALUE )
olcAttributeTypes: ( 1.3.6.1.4.1.17953.9.1.5 NAME 'additionalUrls'
DESC 'YunoHost permission additionnal URL'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} )
olcAttributeTypes: ( 1.3.6.1.4.1.17953.9.1.6 NAME 'authHeader'
DESC 'YunoHost application, enable authentication header'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
olcAttributeTypes: ( 1.3.6.1.4.1.17953.9.1.7 NAME 'label'
DESC 'YunoHost permission label, also used for the tile name in the SSO'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} SINGLE-VALUE )
olcAttributeTypes: ( 1.3.6.1.4.1.17953.9.1.8 NAME 'showTile'
DESC 'YunoHost application, show/hide the tile in the SSO for this permission'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
olcAttributeTypes: ( 1.3.6.1.4.1.17953.9.1.9 NAME 'isProtected'
DESC 'YunoHost application permission protection'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
# OBJECTCLASS
# For Applications
olcObjectClasses: ( 1.3.6.1.4.1.17953.9.2.1 NAME 'groupOfNamesYnh'
DESC 'YunoHost user group'
SUP top AUXILIARY
MAY ( member $ businessCategory $ seeAlso $ owner $ ou $ o $ permission ) )
olcObjectClasses: ( 1.3.6.1.4.1.17953.9.2.2 NAME 'permissionYnh'
DESC 'a YunoHost application'
SUP top AUXILIARY
MUST ( cn $ authHeader $ label $ showTile $ isProtected )
MAY ( groupPermission $ inheritPermission $ URL $ additionalUrls ) )
# For User
olcObjectClasses: ( 1.3.6.1.4.1.17953.9.2.3 NAME 'userPermissionYnh'
DESC 'a YunoHost application'
SUP top AUXILIARY
MAY ( permission ) )

View file

@ -21,7 +21,7 @@ SLAPD_PIDFILE=
# sockets.
# 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://localhost:389/ ldaps:/// ldapi:///"
# 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

View file

@ -1,76 +1,78 @@
#
# OpenLDAP schema file for Sudo
# Save as /etc/openldap/schema/sudo.schema
# Save as /etc/openldap/schema/sudo.ldif
#
attributetype ( 1.3.6.1.4.1.15953.9.1.1
dn: cn=sudo,cn=schema,cn=config
objectClass: olcSchemaConfig
cn: sudo
olcAttributeTypes: ( 1.3.6.1.4.1.15953.9.1.1
NAME 'sudoUser'
DESC 'User(s) who may run sudo'
EQUALITY caseExactIA5Match
SUBSTR caseExactIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
attributetype ( 1.3.6.1.4.1.15953.9.1.2
#
olcAttributeTypes: ( 1.3.6.1.4.1.15953.9.1.2
NAME 'sudoHost'
DESC 'Host(s) who may run sudo'
EQUALITY caseExactIA5Match
SUBSTR caseExactIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
attributetype ( 1.3.6.1.4.1.15953.9.1.3
#
olcAttributeTypes: ( 1.3.6.1.4.1.15953.9.1.3
NAME 'sudoCommand'
DESC 'Command(s) to be executed by sudo'
EQUALITY caseExactIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
attributetype ( 1.3.6.1.4.1.15953.9.1.4
#
olcAttributeTypes: ( 1.3.6.1.4.1.15953.9.1.4
NAME 'sudoRunAs'
DESC 'User(s) impersonated by sudo (deprecated)'
EQUALITY caseExactIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
attributetype ( 1.3.6.1.4.1.15953.9.1.5
#
olcAttributeTypes: ( 1.3.6.1.4.1.15953.9.1.5
NAME 'sudoOption'
DESC 'Options(s) followed by sudo'
EQUALITY caseExactIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
attributetype ( 1.3.6.1.4.1.15953.9.1.6
#
olcAttributeTypes: ( 1.3.6.1.4.1.15953.9.1.6
NAME 'sudoRunAsUser'
DESC 'User(s) impersonated by sudo'
EQUALITY caseExactIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
attributetype ( 1.3.6.1.4.1.15953.9.1.7
#
olcAttributeTypes: ( 1.3.6.1.4.1.15953.9.1.7
NAME 'sudoRunAsGroup'
DESC 'Group(s) impersonated by sudo'
EQUALITY caseExactIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
attributetype ( 1.3.6.1.4.1.15953.9.1.8
#
olcAttributeTypes: ( 1.3.6.1.4.1.15953.9.1.8
NAME 'sudoNotBefore'
DESC 'Start of time interval for which the entry is valid'
EQUALITY generalizedTimeMatch
ORDERING generalizedTimeOrderingMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.24 )
attributetype ( 1.3.6.1.4.1.15953.9.1.9
#
olcAttributeTypes: ( 1.3.6.1.4.1.15953.9.1.9
NAME 'sudoNotAfter'
DESC 'End of time interval for which the entry is valid'
EQUALITY generalizedTimeMatch
ORDERING generalizedTimeOrderingMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.24 )
attributeTypes ( 1.3.6.1.4.1.15953.9.1.10
#
olcAttributeTypes: ( 1.3.6.1.4.1.15953.9.1.10
NAME 'sudoOrder'
DESC 'an integer to order the sudoRole entries'
EQUALITY integerMatch
ORDERING integerOrderingMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 )
objectclass ( 1.3.6.1.4.1.15953.9.2.1 NAME 'sudoRole' SUP top STRUCTURAL
#
olcObjectClasses: ( 1.3.6.1.4.1.15953.9.2.1 NAME 'sudoRole' SUP top STRUCTURAL
DESC 'Sudoer Entries'
MUST ( cn )
MAY ( sudoUser $ sudoHost $ sudoCommand $ sudoRunAs $ sudoRunAsUser $ sudoRunAsGroup $ sudoOption $ sudoOrder $ sudoNotBefore $ sudoNotAfter $
description )
MAY ( sudoUser $ sudoHost $ sudoCommand $ sudoRunAs $ sudoRunAsUser $ sudoRunAsGroup $ sudoOption $ sudoOrder $ sudoNotBefore $ sudoNotAfter $ description )
)

View file

@ -2,7 +2,9 @@
# by YunoHost
Protocol 2
Port 22
# PLEASE: if you wish to change the ssh port properly in YunoHost, use this command:
# yunohost settings set security.ssh.ssh_port -v <port>
Port {{ port }}
{% if ipv6_enabled == "true" %}ListenAddress ::{% endif %}
ListenAddress 0.0.0.0
@ -27,9 +29,6 @@ HostKey {{ key }}{% endfor %}
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,umac-128@openssh.com
{% endif %}
# Use kernel sandbox mechanisms where possible in unprivileged processes
UsePrivilegeSeparation sandbox
# LogLevel VERBOSE logs user's key fingerprint on login.
# Needed to have a clear audit track of which key was using to log in.
SyslogFacility AUTH
@ -56,25 +55,55 @@ PermitEmptyPasswords no
ChallengeResponseAuthentication no
UsePAM yes
# Change to no to disable tunnelled clear text passwords
# (i.e. everybody will need to authenticate using ssh keys)
# PLEASE: if you wish to force everybody to authenticate using ssh keys, run this command:
# yunohost settings set security.ssh.ssh_password_authentication -v no
{% if password_authentication == "False" %}
PasswordAuthentication no
{% else %}
#PasswordAuthentication yes
{% endif %}
# Post-login stuff
Banner /etc/issue.net
# Banner none
PrintMotd no
PrintLastLog yes
ClientAliveInterval 60
AcceptEnv LANG LC_*
# Disallow user without ssh or sftp permissions
AllowGroups ssh.main sftp.main ssh.app sftp.app admins root
# Allow users to create tunnels or forwarding
AllowTcpForwarding yes
AllowStreamLocalForwarding yes
PermitTunnel yes
PermitUserRC yes
# SFTP stuff
Subsystem sftp internal-sftp
Match User sftpusers
ForceCommand internal-sftp
ChrootDirectory /home/%u
AllowTcpForwarding no
GatewayPorts no
X11Forwarding no
# Apply following instructions to user with sftp perm only
Match Group sftp.main,!ssh.main
ForceCommand internal-sftp -u 0002
# We can't restrict to /home/%u because the chroot base must be owned by root
# So we chroot only on /home
# See https://serverfault.com/questions/584986/bad-ownership-or-modes-for-chroot-directory-component
ChrootDirectory /home
# Forbid SFTP users from using their account SSH as a VPN (even if SSH login is disabled)
AllowTcpForwarding no
AllowStreamLocalForwarding no
PermitTunnel no
# Disable .ssh/rc, which could be edited (e.g. from Nextcloud or whatever) by users to execute arbitrary commands even if SSH login is disabled
PermitUserRC no
Match Group sftp.app,!ssh.app
ForceCommand internal-sftp -u 0002
ChrootDirectory %h
AllowTcpForwarding no
AllowStreamLocalForwarding no
PermitTunnel no
PermitUserRC no
PasswordAuthentication yes
# root login is allowed on local networks
# It's meant to be a backup solution in case LDAP is down and
@ -82,4 +111,4 @@ Match User sftpusers
# If the server is a VPS, it's expected that the owner of the
# server has access to a web console through which to log in.
Match Address 192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,169.254.0.0/16,fe80::/10,fd00::/8
PermitRootLogin yes
PermitRootLogin yes

View file

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

View file

@ -2,6 +2,8 @@ uPnP:
enabled: false
TCP: [22, 25, 80, 443, 587, 993, 5222, 5269]
UDP: []
TCP_TO_CLOSE: []
UDP_TO_CLOSE: []
ipv4:
TCP: [22, 25, 53, 80, 443, 587, 993, 5222, 5269]
UDP: [53, 5353]

View file

@ -0,0 +1,14 @@
[Unit]
Description=Mounts /proc with hidepid=2
DefaultDependencies=no
Before=sysinit.target
Requires=local-fs.target
After=local-fs.target
[Service]
Type=oneshot
ExecStart=/bin/mount -o remount,nosuid,nodev,noexec,hidepid=2 /proc
RemainAfterExit=yes
[Install]
WantedBy=sysinit.target

View file

@ -1,5 +1,5 @@
avahi-daemon: {}
dnsmasq: {}
dnsmasq:
test_conf: dnsmasq --test
dovecot:
log: [/var/log/mail.log,/var/log/mail.err]
needs_exposed_ports: [993]
@ -7,29 +7,36 @@ dovecot:
fail2ban:
log: /var/log/fail2ban.log
category: security
test_conf: fail2ban-server --test
metronome:
log: [/var/log/metronome/metronome.log,/var/log/metronome/metronome.err]
needs_exposed_ports: [5222, 5269]
category: xmpp
ignore_if_package_is_not_installed: metronome
mysql:
log: [/var/log/mysql.log,/var/log/mysql.err,/var/log/mysql/error.log]
actual_systemd_service: mariadb
category: database
ignore_if_package_is_not_installed: mariadb-server
nginx:
log: /var/log/nginx
test_conf: nginx -t
needs_exposed_ports: [80, 443]
category: web
nslcd: {}
php7.0-fpm:
log: /var/log/php7.0-fpm.log
test_conf: php-fpm7.0 --test
category: web
# Yunohost will dynamically add installed php-fpm services (7.3, 7.4, 8.0, ...) in services.py
#php7.4-fpm:
# log: /var/log/php7.4-fpm.log
# test_conf: php-fpm7.4 --test
# category: web
postfix:
log: [/var/log/mail.log,/var/log/mail.err]
actual_systemd_service: postfix@-
needs_exposed_ports: [25, 587]
category: email
postgresql:
actual_systemd_service: 'postgresql@13-main'
category: database
ignore_if_package_is_not_installed: postgresql-13
redis-server:
log: /var/log/redis/redis-server.log
category: database
@ -38,6 +45,7 @@ rspamd:
category: email
slapd:
category: database
test_conf: slapd -Tt
ssh:
log: /var/log/auth.log
test_conf: sshd -t
@ -50,6 +58,8 @@ yunohost-firewall:
need_lock: true
test_status: iptables -S | grep "^-A INPUT" | grep " --dport" | grep -q ACCEPT
category: security
yunomdns:
category: mdns
glances: null
nsswitch: null
ssl: null
@ -64,3 +74,7 @@ postgrey: null
spamassassin: null
rmilter: null
php5-fpm: null
php7.0-fpm: null
php7.3-fpm: null
nslcd: null
avahi-daemon: null

View file

@ -0,0 +1,13 @@
[Unit]
Description=YunoHost API Server
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/yunohost-api
Restart=always
RestartSec=5
TimeoutStopSec=30
[Install]
WantedBy=multi-user.target

View file

@ -1,6 +1,7 @@
[Unit]
Description=YunoHost boot prompt
After=getty@tty2.service
After=network.target
[Service]
Type=simple

View file

@ -1,125 +0,0 @@
"""
Simple automated generation of a bash_completion file
for yunohost command from the actionsmap.
Generates a bash completion file assuming the structure
`yunohost category action`
adds `--help` at the end if one presses [tab] again.
author: Christophe Vuillot
"""
import os
import yaml
THIS_SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
ACTIONSMAP_FILE = THIS_SCRIPT_DIR + '/yunohost.yml'
BASH_COMPLETION_FILE = THIS_SCRIPT_DIR + '/../bash-completion.d/yunohost'
def get_dict_actions(OPTION_SUBTREE, category):
ACTIONS = [action for action in OPTION_SUBTREE[category]["actions"].keys()
if not action.startswith('_')]
ACTIONS_STR = '{}'.format(' '.join(ACTIONS))
DICT = { "actions_str": ACTIONS_STR }
return DICT
with open(ACTIONSMAP_FILE, 'r') as stream:
# Getting the dictionary containning what actions are possible per category
OPTION_TREE = yaml.load(stream)
CATEGORY = [category for category in OPTION_TREE.keys() if not category.startswith('_')]
CATEGORY_STR = '{}'.format(' '.join(CATEGORY))
ACTIONS_DICT = {}
for category in CATEGORY:
ACTIONS_DICT[category] = get_dict_actions(OPTION_TREE, category)
ACTIONS_DICT[category]["subcategories"] = {}
ACTIONS_DICT[category]["subcategories_str"] = ""
if "subcategories" in OPTION_TREE[category].keys():
SUBCATEGORIES = [ subcategory for subcategory in OPTION_TREE[category]["subcategories"].keys() ]
SUBCATEGORIES_STR = '{}'.format(' '.join(SUBCATEGORIES))
ACTIONS_DICT[category]["subcategories_str"] = SUBCATEGORIES_STR
for subcategory in SUBCATEGORIES:
ACTIONS_DICT[category]["subcategories"][subcategory] = get_dict_actions(OPTION_TREE[category]["subcategories"], subcategory)
with open(BASH_COMPLETION_FILE, 'w') as generated_file:
# header of the file
generated_file.write('#\n')
generated_file.write('# completion for yunohost\n')
generated_file.write('# automatically generated from the actionsmap\n')
generated_file.write('#\n\n')
# Start of the completion function
generated_file.write('_yunohost()\n')
generated_file.write('{\n')
# Defining local variable for previously and currently typed words
generated_file.write('\tlocal cur prev opts narg\n')
generated_file.write('\tCOMPREPLY=()\n\n')
generated_file.write('\t# the number of words already typed\n')
generated_file.write('\tnarg=${#COMP_WORDS[@]}\n\n')
generated_file.write('\t# the current word being typed\n')
generated_file.write('\tcur="${COMP_WORDS[COMP_CWORD]}"\n\n')
# If one is currently typing a category then match with the category list
generated_file.write('\t# If one is currently typing a category,\n')
generated_file.write('\t# match with categorys\n')
generated_file.write('\tif [[ $narg == 2 ]]; then\n')
generated_file.write('\t\topts="{}"\n'.format(CATEGORY_STR))
generated_file.write('\tfi\n\n')
# If one is currently typing an action then match with the action list
# of the previously typed category
generated_file.write('\t# If one already typed a category,\n')
generated_file.write('\t# match the actions or the subcategories of that category\n')
generated_file.write('\tif [[ $narg == 3 ]]; then\n')
generated_file.write('\t\t# the category typed\n')
generated_file.write('\t\tcategory="${COMP_WORDS[1]}"\n\n')
for category in CATEGORY:
generated_file.write('\t\tif [[ $category == "{}" ]]; then\n'.format(category))
generated_file.write('\t\t\topts="{} {}"\n'.format(ACTIONS_DICT[category]["actions_str"], ACTIONS_DICT[category]["subcategories_str"]))
generated_file.write('\t\tfi\n')
generated_file.write('\tfi\n\n')
generated_file.write('\t# If one already typed an action or a subcategory,\n')
generated_file.write('\t# match the actions of that subcategory\n')
generated_file.write('\tif [[ $narg == 4 ]]; then\n')
generated_file.write('\t\t# the category typed\n')
generated_file.write('\t\tcategory="${COMP_WORDS[1]}"\n\n')
generated_file.write('\t\t# the action or the subcategory typed\n')
generated_file.write('\t\taction_or_subcategory="${COMP_WORDS[2]}"\n\n')
for category in CATEGORY:
if len(ACTIONS_DICT[category]["subcategories"]):
generated_file.write('\t\tif [[ $category == "{}" ]]; then\n'.format(category))
for subcategory in ACTIONS_DICT[category]["subcategories"]:
generated_file.write('\t\t\tif [[ $action_or_subcategory == "{}" ]]; then\n'.format(subcategory))
generated_file.write('\t\t\t\topts="{}"\n'.format(ACTIONS_DICT[category]["subcategories"][subcategory]["actions_str"]))
generated_file.write('\t\t\tfi\n')
generated_file.write('\t\tfi\n')
generated_file.write('\tfi\n\n')
# If both category and action have been typed or the category
# was not recognized propose --help (only once)
generated_file.write('\t# If no options were found propose --help\n')
generated_file.write('\tif [ -z "$opts" ]; then\n')
generated_file.write('\t\tprev="${COMP_WORDS[COMP_CWORD-1]}"\n\n')
generated_file.write('\t\tif [[ $prev != "--help" ]]; then\n')
generated_file.write('\t\t\topts=( --help )\n')
generated_file.write('\t\tfi\n')
generated_file.write('\tfi\n')
# generate the completion list from the possible options
generated_file.write('\tCOMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )\n')
generated_file.write('\treturn 0\n')
generated_file.write('}\n\n')
# Add the function to bash completion
generated_file.write('complete -F _yunohost yunohost')

View file

@ -1,3 +0,0 @@
# This file is automatically generated
# during Debian's package build by the script
# data/actionsmap/yunohost_completion.py

View file

@ -1,7 +0,0 @@
# -*- shell-script -*-
# TODO : use --regex to validate against a namespace
for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) ; do
[ -r $helper ] && . $helper || true
done

View file

@ -1,154 +0,0 @@
#!/bin/bash
# Create a dedicated fail2ban config (jail and filter conf files)
#
# usage 1: ynh_add_fail2ban_config --logpath=log_file --failregex=filter [--max_retry=max_retry] [--ports=ports]
# | arg: -l, --logpath= - Log file to be checked by fail2ban
# | arg: -r, --failregex= - Failregex to be looked for by fail2ban
# | arg: -m, --max_retry= - Maximum number of retries allowed before banning IP address - default: 3
# | arg: -p, --ports= - Ports blocked for a banned IP address - default: http,https
#
# -----------------------------------------------------------------------------
#
# usage 2: ynh_add_fail2ban_config --use_template [--others_var="list of others variables to replace"]
# | arg: -t, --use_template - Use this helper in template mode
# | arg: -v, --others_var= - List of others variables to replace separeted by a space
# | for example : 'var_1 var_2 ...'
#
# This will use a template in ../conf/f2b_jail.conf and ../conf/f2b_filter.conf
# __APP__ by $app
#
# You can dynamically replace others variables by example :
# __VAR_1__ by $var_1
# __VAR_2__ by $var_2
#
# Generally your template will look like that by example (for synapse):
#
# f2b_jail.conf:
# [__APP__]
# enabled = true
# port = http,https
# filter = __APP__
# logpath = /var/log/__APP__/logfile.log
# maxretry = 3
#
# f2b_filter.conf:
# [INCLUDES]
# before = common.conf
# [Definition]
#
# # Part of regex definition (just used to make more easy to make the global regex)
# __synapse_start_line = .? \- synapse\..+ \-
#
# # Regex definition.
# failregex = ^%(__synapse_start_line)s INFO \- POST\-(\d+)\- <HOST> \- \d+ \- Received request\: POST /_matrix/client/r0/login\??<SKIPLINES>%(__synapse_start_line)s INFO \- POST\-\1\- Got login request with identifier: \{u'type': u'm.id.user', u'user'\: u'(.+?)'\}, medium\: None, address: None, user\: u'\5'<SKIPLINES>%(__synapse_start_line)s WARNING \- \- (Attempted to login as @\5\:.+ but they do not exist|Failed password login for user @\5\:.+)$
#
# ignoreregex =
#
# -----------------------------------------------------------------------------
#
# Note about the "failregex" option:
# regex to match the password failure messages in the logfile. The
# host must be matched by a group named "host". The tag "<HOST>" can
# be used for standard IP/hostname matching and is only an alias for
# (?:::f{4,6}:)?(?P<host>[\w\-.^_]+)
#
# You can find some more explainations about how to make a regex here :
# https://www.fail2ban.org/wiki/index.php/MANUAL_0_8#Filters
#
# Note that the logfile need to exist before to call this helper !!
#
# To validate your regex you can test with this command:
# fail2ban-regex /var/log/YOUR_LOG_FILE_PATH /etc/fail2ban/filter.d/YOUR_APP.conf
#
# Requires YunoHost version 3.5.0 or higher.
ynh_add_fail2ban_config () {
# Declare an array to define the options of this helper.
local legacy_args=lrmptv
local -A args_array=( [l]=logpath= [r]=failregex= [m]=max_retry= [p]=ports= [t]=use_template [v]=others_var=)
local logpath
local failregex
local max_retry
local ports
local others_var
local use_template
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
max_retry=${max_retry:-3}
ports=${ports:-http,https}
others_var=${others_var:-}
use_template="${use_template:-0}"
finalfail2banjailconf="/etc/fail2ban/jail.d/$app.conf"
finalfail2banfilterconf="/etc/fail2ban/filter.d/$app.conf"
ynh_backup_if_checksum_is_different "$finalfail2banjailconf"
ynh_backup_if_checksum_is_different "$finalfail2banfilterconf"
if [ $use_template -eq 1 ]
then
# Usage 2, templates
cp ../conf/f2b_jail.conf $finalfail2banjailconf
cp ../conf/f2b_filter.conf $finalfail2banfilterconf
if [ -n "${app:-}" ]
then
ynh_replace_string "__APP__" "$app" "$finalfail2banjailconf"
ynh_replace_string "__APP__" "$app" "$finalfail2banfilterconf"
fi
# Replace all other variable given as arguments
for var_to_replace in $others_var
do
# ${var_to_replace^^} make the content of the variable on upper-cases
# ${!var_to_replace} get the content of the variable named $var_to_replace
ynh_replace_string --match_string="__${var_to_replace^^}__" --replace_string="${!var_to_replace}" --target_file="$finalfail2banjailconf"
ynh_replace_string --match_string="__${var_to_replace^^}__" --replace_string="${!var_to_replace}" --target_file="$finalfail2banfilterconf"
done
else
# Usage 1, no template. Build a config file from scratch.
test -n "$logpath" || ynh_die "ynh_add_fail2ban_config expects a logfile path as first argument and received nothing."
test -n "$failregex" || ynh_die "ynh_add_fail2ban_config expects a failure regex as second argument and received nothing."
tee $finalfail2banjailconf <<EOF
[$app]
enabled = true
port = $ports
filter = $app
logpath = $logpath
maxretry = $max_retry
EOF
tee $finalfail2banfilterconf <<EOF
[INCLUDES]
before = common.conf
[Definition]
failregex = $failregex
ignoreregex =
EOF
fi
# Common to usage 1 and 2.
ynh_store_file_checksum "$finalfail2banjailconf"
ynh_store_file_checksum "$finalfail2banfilterconf"
ynh_systemd_action --service_name=fail2ban --action=reload --line_match="(Started|Reloaded) Fail2Ban Service" --log_path=systemd
local fail2ban_error="$(journalctl --no-hostname --unit=fail2ban | tail --lines=50 | grep "WARNING.*$app.*")"
if [[ -n "$fail2ban_error" ]]
then
ynh_print_err --message="Fail2ban failed to load the jail for $app"
ynh_print_warn --message="${fail2ban_error#*WARNING}"
fi
}
# Remove the dedicated fail2ban config (jail and filter conf files)
#
# usage: ynh_remove_fail2ban_config
#
# Requires YunoHost version 3.5.0 or higher.
ynh_remove_fail2ban_config () {
ynh_secure_remove "/etc/fail2ban/jail.d/$app.conf"
ynh_secure_remove "/etc/fail2ban/filter.d/$app.conf"
ynh_systemd_action --service_name=fail2ban --action=reload
}

View file

@ -1,112 +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 be just a directory, or a full path to a logfile :
# /parentdir/logdir
# /parentdir/logdir/logfile.log
#
# 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,80 +0,0 @@
#!/bin/bash
# Create a dedicated nginx config
#
# usage: ynh_add_nginx_config "list of others variables to replace"
#
# | arg: list - (Optional) list of others variables to replace separated by spaces. For example : 'path_2 port_2 ...'
#
# This will use a template in ../conf/nginx.conf
# __PATH__ by $path_url
# __DOMAIN__ by $domain
# __PORT__ by $port
# __NAME__ by $app
# __FINALPATH__ by $final_path
# __PHPVERSION__ by $YNH_PHP_VERSION ($YNH_PHP_VERSION is either the default php version or the version defined for the app)
#
# And dynamic variables (from the last example) :
# __PATH_2__ by $path_2
# __PORT_2__ by $port_2
#
# Requires YunoHost version 2.7.2 or higher.
# Requires YunoHost version 2.7.13 or higher for dynamic variables
ynh_add_nginx_config () {
finalnginxconf="/etc/nginx/conf.d/$domain.d/$app.conf"
local others_var=${1:-}
ynh_backup_if_checksum_is_different --file="$finalnginxconf"
cp ../conf/nginx.conf "$finalnginxconf"
# To avoid a break by set -u, use a void substitution ${var:-}. If the variable is not set, it's simply set with an empty variable.
# Substitute in a nginx config file only if the variable is not empty
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="$finalnginxconf"
ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file="$finalnginxconf"
fi
if test -n "${domain:-}"; then
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$finalnginxconf"
fi
if test -n "${port:-}"; then
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$finalnginxconf"
fi
if test -n "${app:-}"; then
ynh_replace_string --match_string="__NAME__" --replace_string="$app" --target_file="$finalnginxconf"
fi
if test -n "${final_path:-}"; then
ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" --target_file="$finalnginxconf"
fi
ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$YNH_PHP_VERSION" --target_file="$finalnginxconf"
# Replace all other variable given as arguments
for var_to_replace in $others_var
do
# ${var_to_replace^^} make the content of the variable on upper-cases
# ${!var_to_replace} get the content of the variable named $var_to_replace
ynh_replace_string --match_string="__${var_to_replace^^}__" --replace_string="${!var_to_replace}" --target_file="$finalnginxconf"
done
if [ "${path_url:-}" != "/" ]
then
ynh_replace_string --match_string="^#sub_path_only" --replace_string="" --target_file="$finalnginxconf"
else
ynh_replace_string --match_string="^#root_path_only" --replace_string="" --target_file="$finalnginxconf"
fi
ynh_store_file_checksum --file="$finalnginxconf"
ynh_systemd_action --service_name=nginx --action=reload
}
# Remove the dedicated nginx config
#
# usage: ynh_remove_nginx_config
#
# Requires YunoHost version 2.7.2 or higher.
ynh_remove_nginx_config () {
ynh_secure_remove --file="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_systemd_action --service_name=nginx --action=reload
}

View file

@ -1,568 +0,0 @@
#!/bin/bash
readonly YNH_DEFAULT_PHP_VERSION=7.0
# Declare the actual php version to use.
# A packager willing to use another version of php can override the variable into its _common.sh.
YNH_PHP_VERSION=${YNH_PHP_VERSION:-$YNH_DEFAULT_PHP_VERSION}
# Create a dedicated php-fpm config
#
# usage 1: ynh_add_fpm_config [--phpversion=7.X] [--use_template] [--package=packages] [--dedicated_service]
# | arg: -v, --phpversion= - Version of php to use.
# | arg: -t, --use_template - Use this helper in template mode.
# | arg: -p, --package= - Additionnal php packages to install
# | arg: -d, --dedicated_service - Use a dedicated php-fpm service instead of the common one.
#
# -----------------------------------------------------------------------------
#
# usage 2: ynh_add_fpm_config [--phpversion=7.X] --usage=usage --footprint=footprint [--package=packages] [--dedicated_service]
# | arg: -v, --phpversion= - Version of php to use.
# | arg: -f, --footprint= - Memory footprint of the service (low/medium/high).
# low - Less than 20Mb of ram by pool.
# medium - Between 20Mb and 40Mb of ram by pool.
# high - More than 40Mb of ram by pool.
# Or specify exactly the footprint, the load of the service as Mb by pool instead of having a standard value.
# To have this value, use the following command and stress the service.
# watch -n0.5 ps -o user,cmd,%cpu,rss -u APP
#
# | arg: -u, --usage= - Expected usage of the service (low/medium/high).
# low - Personal usage, behind the sso.
# medium - Low usage, few people or/and publicly accessible.
# high - High usage, frequently visited website.
#
# | arg: -p, --package= - Additionnal php packages to install for a specific version of php
# | arg: -d, --dedicated_service - Use a dedicated php-fpm service instead of the common one.
#
#
# The footprint of the service will be used to defined the maximum footprint we can allow, which is half the maximum RAM.
# So it will be used to defined 'pm.max_children'
# A lower value for the footprint will allow more children for 'pm.max_children'. And so for
# 'pm.start_servers', 'pm.min_spare_servers' and 'pm.max_spare_servers' which are defined from the
# value of 'pm.max_children'
# NOTE: 'pm.max_children' can't exceed 4 times the number of processor's cores.
#
# The usage value will defined the way php will handle the children for the pool.
# A value set as 'low' will set the process manager to 'ondemand'. Children will start only if the
# service is used, otherwise no child will stay alive. This config gives the lower footprint when the
# service is idle. But will use more proc since it has to start a child as soon it's used.
# Set as 'medium', the process manager will be at dynamic. If the service is idle, a number of children
# equal to pm.min_spare_servers will stay alive. So the service can be quick to answer to any request.
# The number of children can grow if needed. The footprint can stay low if the service is idle, but
# not null. The impact on the proc is a little bit less than 'ondemand' as there's always a few
# children already available.
# Set as 'high', the process manager will be set at 'static'. There will be always as many children as
# 'pm.max_children', the footprint is important (but will be set as maximum a quarter of the maximum
# RAM) but the impact on the proc is lower. The service will be quick to answer as there's always many
# children ready to answer.
#
# Requires YunoHost version 2.7.2 or higher.
# Requires YunoHost version 3.5.1 or higher for the argument --phpversion
# Requires YunoHost version 3.8.1 or higher for the arguments --use_template, --usage, --footprint, --package and --dedicated_service
ynh_add_fpm_config () {
# Declare an array to define the options of this helper.
local legacy_args=vtufpd
local -A args_array=( [v]=phpversion= [t]=use_template [u]=usage= [f]=footprint= [p]=package= [d]=dedicated_service )
local phpversion
local use_template
local usage
local footprint
local package
local dedicated_service
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
package=${package:-}
# The default behaviour is to use the template.
use_template="${use_template:-1}"
usage="${usage:-}"
footprint="${footprint:-}"
if [ -n "$usage" ] || [ -n "$footprint" ]; then
use_template=0
fi
# Do not use a dedicated service by default
dedicated_service=${dedicated_service:-0}
# Set the default PHP-FPM version by default
phpversion="${phpversion:-$YNH_PHP_VERSION}"
# If the requested php version is not the default version for YunoHost
if [ "$phpversion" != "$YNH_DEFAULT_PHP_VERSION" ]
then
# If the argument --package is used, add the packages to ynh_install_php to install them from sury
if [ -n "$package" ]
then
local additionnal_packages="--package=$package"
else
local additionnal_packages=""
fi
# Install this specific version of php.
ynh_install_php --phpversion="$phpversion" "$additionnal_packages"
elif [ -n "$package" ]
then
# Install the additionnal packages from the default repository
ynh_add_app_dependencies --package="$package"
fi
if [ $dedicated_service -eq 1 ]
then
local fpm_service="${app}-phpfpm"
local fpm_config_dir="/etc/php/$phpversion/dedicated-fpm"
else
local fpm_service="php${phpversion}-fpm"
local fpm_config_dir="/etc/php/$phpversion/fpm"
fi
# Configure PHP-FPM 5 on Debian Jessie
if [ "$(ynh_get_debian_release)" == "jessie" ]
then
fpm_config_dir="/etc/php5/fpm"
fpm_service="php5-fpm"
fi
# Create the directory for fpm pools
mkdir --parents "$fpm_config_dir/pool.d"
ynh_app_setting_set --app=$app --key=fpm_config_dir --value="$fpm_config_dir"
ynh_app_setting_set --app=$app --key=fpm_service --value="$fpm_service"
ynh_app_setting_set --app=$app --key=fpm_dedicated_service --value="$dedicated_service"
ynh_app_setting_set --app=$app --key=phpversion --value=$phpversion
finalphpconf="$fpm_config_dir/pool.d/$app.conf"
# Migrate from mutual php service to dedicated one.
if [ $dedicated_service -eq 1 ]
then
local old_fpm_config_dir="/etc/php/$phpversion/fpm"
# If a config file exist in the common pool, move it.
if [ -e "$old_fpm_config_dir/pool.d/$app.conf" ]
then
ynh_print_info --message="Migrate to a dedicated php-fpm service for $app."
# Create a backup of the old file before migration
ynh_backup_if_checksum_is_different --file="$old_fpm_config_dir/pool.d/$app.conf"
# Remove the old php config file
ynh_secure_remove --file="$old_fpm_config_dir/pool.d/$app.conf"
# Reload php to release the socket and allow the dedicated service to use it
ynh_systemd_action --service_name=php${phpversion}-fpm --action=reload
fi
fi
ynh_backup_if_checksum_is_different --file="$finalphpconf"
if [ $use_template -eq 1 ]
then
# Usage 1, use the template in conf/php-fpm.conf
local phpfpm_path="../conf/php-fpm.conf"
if [ ! -e "$phpfpm_path" ]; then
phpfpm_path="../settings/conf/php-fpm.conf" # Into the restore script, the php-fpm template is not at the same place
fi
# Make sure now that the template indeed exists
[ -e "$phpfpm_path" ] || ynh_die --message="Unable to find template to configure php-fpm."
cp "$phpfpm_path" "$finalphpconf"
ynh_replace_string --match_string="__NAMETOCHANGE__" --replace_string="$app" --target_file="$finalphpconf"
ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" --target_file="$finalphpconf"
ynh_replace_string --match_string="__USER__" --replace_string="$app" --target_file="$finalphpconf"
ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$phpversion" --target_file="$finalphpconf"
else
# Usage 2, generate a php-fpm config file with ynh_get_scalable_phpfpm
# Store settings
ynh_app_setting_set --app=$app --key=fpm_footprint --value=$footprint
ynh_app_setting_set --app=$app --key=fpm_usage --value=$usage
# Define the values to use for the configuration of php.
ynh_get_scalable_phpfpm --usage=$usage --footprint=$footprint
# Copy the default file
cp "/etc/php/$phpversion/fpm/pool.d/www.conf" "$finalphpconf"
# Replace standard variables into the default file
ynh_replace_string --match_string="^\[www\]" --replace_string="[$app]" --target_file="$finalphpconf"
ynh_replace_string --match_string=".*listen = .*" --replace_string="listen = /var/run/php/php$phpversion-fpm-$app.sock" --target_file="$finalphpconf"
ynh_replace_string --match_string="^user = .*" --replace_string="user = $app" --target_file="$finalphpconf"
ynh_replace_string --match_string="^group = .*" --replace_string="group = $app" --target_file="$finalphpconf"
ynh_replace_string --match_string=".*chdir = .*" --replace_string="chdir = $final_path" --target_file="$finalphpconf"
# Configure fpm children
ynh_replace_string --match_string=".*pm = .*" --replace_string="pm = $php_pm" --target_file="$finalphpconf"
ynh_replace_string --match_string=".*pm.max_children = .*" --replace_string="pm.max_children = $php_max_children" --target_file="$finalphpconf"
ynh_replace_string --match_string=".*pm.max_requests = .*" --replace_string="pm.max_requests = 500" --target_file="$finalphpconf"
ynh_replace_string --match_string=".*request_terminate_timeout = .*" --replace_string="request_terminate_timeout = 1d" --target_file="$finalphpconf"
if [ "$php_pm" = "dynamic" ]
then
ynh_replace_string --match_string=".*pm.start_servers = .*" --replace_string="pm.start_servers = $php_start_servers" --target_file="$finalphpconf"
ynh_replace_string --match_string=".*pm.min_spare_servers = .*" --replace_string="pm.min_spare_servers = $php_min_spare_servers" --target_file="$finalphpconf"
ynh_replace_string --match_string=".*pm.max_spare_servers = .*" --replace_string="pm.max_spare_servers = $php_max_spare_servers" --target_file="$finalphpconf"
elif [ "$php_pm" = "ondemand" ]
then
ynh_replace_string --match_string=".*pm.process_idle_timeout = .*" --replace_string="pm.process_idle_timeout = 10s" --target_file="$finalphpconf"
fi
# Comment unused parameters
if [ "$php_pm" != "dynamic" ]
then
ynh_replace_string --match_string=".*\(pm.start_servers = .*\)" --replace_string=";\1" --target_file="$finalphpconf"
ynh_replace_string --match_string=".*\(pm.min_spare_servers = .*\)" --replace_string=";\1" --target_file="$finalphpconf"
ynh_replace_string --match_string=".*\(pm.max_spare_servers = .*\)" --replace_string=";\1" --target_file="$finalphpconf"
fi
if [ "$php_pm" != "ondemand" ]
then
ynh_replace_string --match_string=".*\(pm.process_idle_timeout = .*\)" --replace_string=";\1" --target_file="$finalphpconf"
fi
# Concatene the extra config.
if [ -e ../conf/extra_php-fpm.conf ]; then
cat ../conf/extra_php-fpm.conf >> "$finalphpconf"
fi
fi
chown root: "$finalphpconf"
ynh_store_file_checksum --file="$finalphpconf"
if [ -e "../conf/php-fpm.ini" ]
then
ynh_print_warn -message="Packagers ! Please do not use a separate php ini file, merge your directives in the pool file instead."
finalphpini="$fpm_config_dir/conf.d/20-$app.ini"
ynh_backup_if_checksum_is_different "$finalphpini"
cp ../conf/php-fpm.ini "$finalphpini"
chown root: "$finalphpini"
ynh_store_file_checksum "$finalphpini"
fi
if [ $dedicated_service -eq 1 ]
then
# Create a dedicated php-fpm.conf for the service
local globalphpconf=$fpm_config_dir/php-fpm-$app.conf
cp /etc/php/${phpversion}/fpm/php-fpm.conf $globalphpconf
ynh_replace_string --match_string="^[; ]*pid *=.*" --replace_string="pid = /run/php/php${phpversion}-fpm-$app.pid" --target_file="$globalphpconf"
ynh_replace_string --match_string="^[; ]*error_log *=.*" --replace_string="error_log = /var/log/php/fpm-php.$app.log" --target_file="$globalphpconf"
ynh_replace_string --match_string="^[; ]*syslog.ident *=.*" --replace_string="syslog.ident = php-fpm-$app" --target_file="$globalphpconf"
ynh_replace_string --match_string="^[; ]*include *=.*" --replace_string="include = $finalphpconf" --target_file="$globalphpconf"
# Create a config for a dedicated php-fpm service for the app
echo "[Unit]
Description=PHP $phpversion FastCGI Process Manager for $app
After=network.target
[Service]
Type=notify
PIDFile=/run/php/php${phpversion}-fpm-$app.pid
ExecStart=/usr/sbin/php-fpm$phpversion --nodaemonize --fpm-config $globalphpconf
ExecReload=/bin/kill -USR2 \$MAINPID
[Install]
WantedBy=multi-user.target
" > ../conf/$fpm_service
# Create this dedicated php-fpm service
ynh_add_systemd_config --service=$fpm_service --template=$fpm_service
# Integrate the service in YunoHost admin panel
yunohost service add $fpm_service --log /var/log/php/fpm-php.$app.log --log_type file --description "Php-fpm dedicated to $app"
# Configure log rotate
ynh_use_logrotate --logfile=/var/log/php
# Restart the service, as this service is either stopped or only for this app
ynh_systemd_action --service_name=$fpm_service --action=restart
else
# Reload php, to not impact other parts of the system using php
ynh_systemd_action --service_name=$fpm_service --action=reload
fi
}
# Remove the dedicated php-fpm config
#
# usage: ynh_remove_fpm_config
#
# Requires YunoHost version 2.7.2 or higher.
ynh_remove_fpm_config () {
local fpm_config_dir=$(ynh_app_setting_get --app=$app --key=fpm_config_dir)
local fpm_service=$(ynh_app_setting_get --app=$app --key=fpm_service)
local dedicated_service=$(ynh_app_setting_get --app=$app --key=fpm_dedicated_service)
dedicated_service=${dedicated_service:-0}
# Get the version of php used by this app
local phpversion=$(ynh_app_setting_get $app phpversion)
# Assume default PHP-FPM version by default
phpversion="${phpversion:-$YNH_DEFAULT_PHP_VERSION}"
# Assume default php files if not set
if [ -z "$fpm_config_dir" ]
then
fpm_config_dir="/etc/php/$YNH_DEFAULT_PHP_VERSION/fpm"
fpm_service="php$YNH_DEFAULT_PHP_VERSION-fpm"
fi
if [ $dedicated_service -eq 1 ]
then
# Remove the dedicated service php-fpm service for the app
ynh_remove_systemd_config --service=$fpm_service
# Remove the global php-fpm conf
ynh_secure_remove --file="$fpm_config_dir/php-fpm-$app.conf"
# Remove the service from the list of services known by Yunohost
yunohost service remove $fpm_service
elif ynh_package_is_installed --package="php${phpversion}-fpm"; then
ynh_systemd_action --service_name=$fpm_service --action=reload
fi
ynh_secure_remove --file="$fpm_config_dir/pool.d/$app.conf"
if [ -e $fpm_config_dir/conf.d/20-$app.ini ]
then
ynh_secure_remove --file="$fpm_config_dir/conf.d/20-$app.ini"
fi
# If the php version used is not the default version for YunoHost
if [ "$phpversion" != "$YNH_DEFAULT_PHP_VERSION" ]
then
# Remove this specific version of php
ynh_remove_php
fi
}
# Install another version of php.
#
# [internal]
#
# usage: ynh_install_php --phpversion=phpversion [--package=packages]
# | arg: -v, --phpversion= - Version of php to install.
# | arg: -p, --package= - Additionnal php packages to install
#
# Requires YunoHost version 3.8.1 or higher.
ynh_install_php () {
# Declare an array to define the options of this helper.
local legacy_args=vp
local -A args_array=( [v]=phpversion= [p]=package= )
local phpversion
local package
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
package=${package:-}
# Store phpversion into the config of this app
ynh_app_setting_set $app phpversion $phpversion
if [ "$phpversion" == "$YNH_DEFAULT_PHP_VERSION" ]
then
ynh_die "Do not use ynh_install_php to install php$YNH_DEFAULT_PHP_VERSION"
fi
# Create the file if doesn't exist already
touch /etc/php/ynh_app_version
# Do not add twice the same line
if ! grep --quiet "$YNH_APP_INSTANCE_NAME:" "/etc/php/ynh_app_version"
then
# Store the ID of this app and the version of php requested for it
echo "$YNH_APP_INSTANCE_NAME:$phpversion" | tee --append "/etc/php/ynh_app_version"
fi
# Add an extra repository for those packages
ynh_install_extra_repo --repo="https://packages.sury.org/php/ $(ynh_get_debian_release) main" --key="https://packages.sury.org/php/apt.gpg" --priority=995 --name=extra_php_version
# Install requested dependencies from this extra repository.
# Install php-fpm first, otherwise php will install apache as a dependency.
ynh_add_app_dependencies --package="php${phpversion}-fpm"
ynh_add_app_dependencies --package="php$phpversion php${phpversion}-common $package"
# Set the default php version back as the default version for php-cli.
update-alternatives --set php /usr/bin/php$YNH_DEFAULT_PHP_VERSION
# Pin this extra repository after packages are installed to prevent sury of doing shit
for package_to_not_upgrade in "php" "php-fpm" "php-mysql" "php-xml" "php-zip" "php-mbstring" "php-ldap" "php-gd" "php-curl" "php-bz2" "php-json" "php-sqlite3" "php-intl" "openssl" "libssl1.1" "libssl-dev"
do
ynh_pin_repo --package="$package_to_not_upgrade" --pin="origin \"packages.sury.org\"" --priority="-1" --name=extra_php_version --append
done
# Advertise service in admin panel
yunohost service add php${phpversion}-fpm --log "/var/log/php${phpversion}-fpm.log"
}
# Remove the specific version of php used by the app.
#
# [internal]
#
# usage: ynh_install_php
#
# Requires YunoHost version 3.8.1 or higher.
ynh_remove_php () {
# Get the version of php used by this app
local phpversion=$(ynh_app_setting_get $app phpversion)
if [ "$phpversion" == "$YNH_DEFAULT_PHP_VERSION" ] || [ -z "$phpversion" ]
then
if [ "$phpversion" == "$YNH_DEFAULT_PHP_VERSION" ]
then
ynh_print_err "Do not use ynh_remove_php to remove php$YNH_DEFAULT_PHP_VERSION !"
fi
return 0
fi
# Create the file if doesn't exist already
touch /etc/php/ynh_app_version
# Remove the line for this app
sed --in-place "/$YNH_APP_INSTANCE_NAME:$phpversion/d" "/etc/php/ynh_app_version"
# If no other app uses this version of php, remove it.
if ! grep --quiet "$phpversion" "/etc/php/ynh_app_version"
then
# Remove the service from the admin panel
if ynh_package_is_installed --package="php${phpversion}-fpm"; then
yunohost service remove php${phpversion}-fpm
fi
# Purge php dependencies for this version.
ynh_package_autopurge "php$phpversion php${phpversion}-fpm php${phpversion}-common"
fi
}
# Define the values to configure php-fpm
#
# [internal]
#
# usage: ynh_get_scalable_phpfpm --usage=usage --footprint=footprint [--print]
# | arg: -f, --footprint= - Memory footprint of the service (low/medium/high).
# low - Less than 20Mb of ram by pool.
# medium - Between 20Mb and 40Mb of ram by pool.
# high - More than 40Mb of ram by pool.
# Or specify exactly the footprint, the load of the service as Mb by pool instead of having a standard value.
# To have this value, use the following command and stress the service.
# watch -n0.5 ps -o user,cmd,%cpu,rss -u APP
#
# | arg: -u, --usage= - Expected usage of the service (low/medium/high).
# low - Personal usage, behind the sso.
# medium - Low usage, few people or/and publicly accessible.
# high - High usage, frequently visited website.
#
# | arg: -p, --print - Print the result (intended for debug purpose only when packaging the app)
ynh_get_scalable_phpfpm () {
local legacy_args=ufp
# Declare an array to define the options of this helper.
local -A args_array=( [u]=usage= [f]=footprint= [p]=print )
local usage
local footprint
local print
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
# Set all characters as lowercase
footprint=${footprint,,}
usage=${usage,,}
print=${print:-0}
if [ "$footprint" = "low" ]
then
footprint=20
elif [ "$footprint" = "medium" ]
then
footprint=35
elif [ "$footprint" = "high" ]
then
footprint=50
fi
# Define the factor to determine min_spare_servers
# to avoid having too few children ready to start for heavy apps
if [ $footprint -le 20 ]
then
min_spare_servers_factor=8
elif [ $footprint -le 35 ]
then
min_spare_servers_factor=5
else
min_spare_servers_factor=3
fi
# Define the way the process manager handle child processes.
if [ "$usage" = "low" ]
then
php_pm=ondemand
elif [ "$usage" = "medium" ]
then
php_pm=dynamic
elif [ "$usage" = "high" ]
then
php_pm=static
else
ynh_die --message="Does not recognize '$usage' as an usage value."
fi
# Get the total of RAM available, except swap.
local max_ram=$(ynh_get_ram --total --ignore_swap)
at_least_one() {
# Do not allow value below 1
if [ $1 -le 0 ]
then
echo 1
else
echo $1
fi
}
# Define pm.max_children
# The value of pm.max_children is the total amount of ram divide by 2 and divide again by the footprint of a pool for this app.
# So if php-fpm start the maximum of children, it won't exceed half of the ram.
php_max_children=$(( $max_ram / 2 / $footprint ))
# If process manager is set as static, use half less children.
# Used as static, there's always as many children as the value of pm.max_children
if [ "$php_pm" = "static" ]
then
php_max_children=$(( $php_max_children / 2 ))
fi
php_max_children=$(at_least_one $php_max_children)
# To not overload the proc, limit the number of children to 4 times the number of cores.
local core_number=$(nproc)
local max_proc=$(( $core_number * 4 ))
if [ $php_max_children -gt $max_proc ]
then
php_max_children=$max_proc
fi
# Get a potential forced value for php_max_children
local php_forced_max_children=$(ynh_app_setting_get --app=$app --key=php_forced_max_children)
if [ -n "$php_forced_max_children" ]; then
php_max_children=$php_forced_max_children
fi
if [ "$php_pm" = "dynamic" ]
then
# Define pm.start_servers, pm.min_spare_servers and pm.max_spare_servers for a dynamic process manager
php_min_spare_servers=$(( $php_max_children / $min_spare_servers_factor ))
php_min_spare_servers=$(at_least_one $php_min_spare_servers)
php_max_spare_servers=$(( $php_max_children / 2 ))
php_max_spare_servers=$(at_least_one $php_max_spare_servers)
php_start_servers=$(( $php_min_spare_servers + ( $php_max_spare_servers - $php_min_spare_servers ) /2 ))
php_start_servers=$(at_least_one $php_start_servers)
else
php_min_spare_servers=0
php_max_spare_servers=0
php_start_servers=0
fi
if [ $print -eq 1 ]
then
ynh_debug --message="Footprint=${footprint}Mb by pool."
ynh_debug --message="Process manager=$php_pm"
ynh_debug --message="Max RAM=${max_ram}Mb"
if [ "$php_pm" != "static" ]
then
ynh_debug --message="\nMax estimated footprint=$(( $php_max_children * $footprint ))"
ynh_debug --message="Min estimated footprint=$(( $php_min_spare_servers * $footprint ))"
fi
if [ "$php_pm" = "dynamic" ]
then
ynh_debug --message="Estimated average footprint=$(( $php_max_spare_servers * $footprint ))"
elif [ "$php_pm" = "static" ]
then
ynh_debug --message="Estimated footprint=$(( $php_max_children * $footprint ))"
fi
ynh_debug --message="\nRaw php-fpm values:"
ynh_debug --message="pm.max_children = $php_max_children"
if [ "$php_pm" = "dynamic" ]
then
ynh_debug --message="pm.start_servers = $php_start_servers"
ynh_debug --message="pm.min_spare_servers = $php_min_spare_servers"
ynh_debug --message="pm.max_spare_servers = $php_max_spare_servers"
fi
fi
}

View file

@ -1,323 +0,0 @@
#!/bin/bash
# Get an application setting
#
# usage: ynh_app_setting_get --app=app --key=key
# | arg: -a, --app= - the application id
# | arg: -k, --key= - the setting to get
#
# Requires YunoHost version 2.2.4 or higher.
ynh_app_setting_get() {
# Declare an array to define the options of this helper.
local legacy_args=ak
local -A args_array=( [a]=app= [k]=key= )
local app
local key
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
ynh_app_setting "get" "$app" "$key"
}
# Set an application setting
#
# usage: ynh_app_setting_set --app=app --key=key --value=value
# | arg: -a, --app= - the application id
# | arg: -k, --key= - the setting name to set
# | arg: -v, --value= - the setting value to set
#
# Requires YunoHost version 2.2.4 or higher.
ynh_app_setting_set() {
# Declare an array to define the options of this helper.
local legacy_args=akv
local -A args_array=( [a]=app= [k]=key= [v]=value= )
local app
local key
local value
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
ynh_app_setting "set" "$app" "$key" "$value"
}
# Delete an application setting
#
# usage: ynh_app_setting_delete --app=app --key=key
# | arg: -a, --app= - the application id
# | arg: -k, --key= - the setting to delete
#
# Requires YunoHost version 2.2.4 or higher.
ynh_app_setting_delete() {
# Declare an array to define the options of this helper.
local legacy_args=ak
local -A args_array=( [a]=app= [k]=key= )
local app
local key
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
ynh_app_setting "delete" "$app" "$key"
}
# Small "hard-coded" interface to avoid calling "yunohost app" directly each
# time dealing with a setting is needed (which may be so slow on ARM boards)
#
# [internal]
#
ynh_app_setting()
{
if [[ "$1" == "delete" ]] && [[ "$3" =~ ^(unprotected|skipped)_ ]]
then
current_value=$(ynh_app_setting_get --app=$app --key=$3)
fi
ACTION="$1" APP="$2" KEY="$3" VALUE="${4:-}" python2.7 - <<EOF
import os, yaml, sys
app, action = os.environ['APP'], os.environ['ACTION'].lower()
key, value = os.environ['KEY'], os.environ.get('VALUE', None)
setting_file = "/etc/yunohost/apps/%s/settings.yml" % app
assert os.path.exists(setting_file), "Setting file %s does not exists ?" % setting_file
with open(setting_file) as f:
settings = yaml.load(f)
if action == "get":
if key in settings:
print(settings[key])
else:
if action == "delete":
if key in settings:
del settings[key]
elif action == "set":
if key in ['redirected_urls', 'redirected_regex']:
value = yaml.load(value)
if any(key.startswith(word+"_") for word in ["unprotected", "protected", "skipped"]):
sys.stderr.write("/!\\ Packagers! This app is still using the skipped/protected/unprotected_uris/regex settings which are now obsolete and deprecated... Instead, you should use the new helpers 'ynh_permission_{create,urls,update,delete}' and the 'visitors' group to initialize the public/private access. Check out the documentation at the bottom of yunohost.org/groups_and_permissions to learn how to use the new permission mechanism.\n")
settings[key] = value
else:
raise ValueError("action should either be get, set or delete")
with open(setting_file, "w") as f:
yaml.safe_dump(settings, f, default_flow_style=False)
EOF
# Fucking legacy permission management.
# We need this because app temporarily set the app as unprotected to configure it with curl...
if [[ "$3" =~ ^(unprotected|skipped)_ ]]
then
if [[ "$1" == "set" ]] && [[ "${4:-}" == "/" ]]
then
ynh_permission_update --permission "main" --add "visitors"
elif [[ "$1" == "delete" ]] && [[ "${current_value:-}" == "/" ]] && [[ -n "$(ynh_app_setting_get --app=$2 --key='is_public' )" ]]
then
ynh_permission_update --permission "main" --remove "visitors"
fi
fi
}
# Check availability of a web path
#
# example: ynh_webpath_available --domain=some.domain.tld --path_url=/coffee
#
# usage: ynh_webpath_available --domain=domain --path_url=path
# | arg: -d, --domain= - the domain/host of the url
# | arg: -p, --path_url= - the web path to check the availability of
#
# Requires YunoHost version 2.6.4 or higher.
ynh_webpath_available () {
# Declare an array to define the options of this helper.
local legacy_args=dp
local -A args_array=( [d]=domain= [p]=path_url= )
local domain
local path_url
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
yunohost domain url-available $domain $path_url
}
# Register/book a web path for an app
#
# example: ynh_webpath_register --app=wordpress --domain=some.domain.tld --path_url=/coffee
#
# usage: ynh_webpath_register --app=app --domain=domain --path_url=path
# | arg: -a, --app= - the app for which the domain should be registered
# | arg: -d, --domain= - the domain/host of the web path
# | arg: -p, --path_url= - the web path to be registered
#
# Requires YunoHost version 2.6.4 or higher.
ynh_webpath_register () {
# Declare an array to define the options of this helper.
local legacy_args=adp
local -A args_array=( [a]=app= [d]=domain= [p]=path_url= )
local app
local domain
local path_url
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
yunohost app register-url $app $domain $path_url
}
# Create a new permission for the app
#
# example: ynh_permission_create --permission=admin --url=/admin --allowed="alice bob"
#
# usage: ynh_permission_create --permission "permission" [--url=url] [--allowed="group1 group2"]
# | arg: -p, --permission= - the name for the permission (by default a permission named "main" already exist)
# | arg: -u, --url= - (optional) URL for which access will be allowed/forbidden
# | arg: -a, --allowed= - (optional) A list of group/user to allow for the permission
#
# If provided, 'url' is assumed to be relative to the app domain/path if they
# start with '/'. For example:
# / -> domain.tld/app
# /admin -> domain.tld/app/admin
# domain.tld/app/api -> domain.tld/app/api
#
# 'url' can be later treated as a regex if it starts with "re:".
# For example:
# re:/api/[A-Z]*$ -> domain.tld/app/api/[A-Z]*$
# re:domain.tld/app/api/[A-Z]*$ -> domain.tld/app/api/[A-Z]*$
#
# Requires YunoHost version 3.7.0 or higher.
ynh_permission_create() {
# Declare an array to define the options of this helper.
local legacy_args=pua
local -A args_array=( [p]=permission= [u]=url= [a]=allowed= )
local permission
local url
local allowed
ynh_handle_getopts_args "$@"
url=${url:-}
allowed=${allowed:-}
if [[ -n $url ]]
then
url="'$url'"
else
url="None"
fi
if [[ -n $allowed ]]; then
allowed=",allowed=['${allowed//';'/"','"}']"
fi
yunohost tools shell -c "from yunohost.permission import permission_create; permission_create('$app.$permission', url=$url $allowed , sync_perm=False)"
}
# Remove a permission for the app (note that when the app is removed all permission is automatically removed)
#
# example: ynh_permission_delete --permission=editors
#
# usage: ynh_permission_delete --permission="permission"
# | arg: -p, --permission= - the name for the permission (by default a permission named "main" is removed automatically when the app is removed)
#
# Requires YunoHost version 3.7.0 or higher.
ynh_permission_delete() {
# Declare an array to define the options of this helper.
local legacy_args=p
local -A args_array=( [p]=permission= )
local permission
ynh_handle_getopts_args "$@"
yunohost tools shell -c "from yunohost.permission import permission_delete; permission_delete('$app.$permission', sync_perm=False)"
}
# Check if a permission exists
#
# usage: ynh_permission_exists --permission=permission
# | arg: -p, --permission= - the permission to check
# | exit: Return 1 if the permission doesn't exist, 0 otherwise
#
# Requires YunoHost version 3.7.0 or higher.
ynh_permission_exists() {
# Declare an array to define the options of this helper.
local legacy_args=p
local -A args_array=( [p]=permission= )
local permission
ynh_handle_getopts_args "$@"
yunohost user permission list --short | grep --word-regexp --quiet "$app.$permission"
}
# Redefine the url associated to a permission
#
# usage: ynh_permission_url --permission="permission" [--url="url"]
# | arg: -p, --permission= - the name for the permission (by default a permission named "main" is removed automatically when the app is removed)
# | arg: -u, --url= - (optional) URL for which access will be allowed/forbidden
#
# Requires YunoHost version 3.7.0 or higher.
ynh_permission_url() {
# Declare an array to define the options of this helper.
local legacy_args=pu
local -A args_array=([p]=permission= [u]=url=)
local permission
local url
ynh_handle_getopts_args "$@"
url=${url:-}
if [[ -n $url ]]
then
url="'$url'"
else
url="None"
fi
yunohost tools shell -c "from yunohost.permission import permission_url; permission_url('$app.$permission', url=$url)"
}
# Update a permission for the app
#
# example: ynh_permission_update --permission admin --add=samdoe --remove=all_users
#
# usage: ynh_permission_update --permission="permission" [--add="group1 group2"] [--remove="group1 group2"]
# | arg: -p, --permission= - the name for the permission (by default a permission named "main" already exist)
# | arg: -a, --add= - the list of group or users to enable add to the permission
# | arg: -r, --remove= - the list of group or users to remove from the permission
#
# Requires YunoHost version 3.7.0 or higher.
ynh_permission_update() {
# Declare an array to define the options of this helper.
local legacy_args=par
local -A args_array=( [p]=permission= [a]=add= [r]=remove= )
local permission
local add
local remove
ynh_handle_getopts_args "$@"
add=${add:-}
remove=${remove:-}
if [[ -n $add ]]; then
add="--add ${add//';'/" "}"
fi
if [[ -n $remove ]]; then
remove="--remove ${remove//';'/" "} "
fi
yunohost user permission update "$app.$permission" $add $remove
}
# Check if a permission has an user
#
# example: ynh_permission_has_user --permission=main --user=visitors
#
# usage: ynh_permission_has_user --permission=permission --user=user
# | arg: -p, --permission= - the permission to check
# | arg: -u, --user= - the user seek in the permission
# | exit: Return 1 if the permission doesn't have that user or doesn't exist, 0 otherwise
#
# Requires YunoHost version 3.7.1 or higher.
ynh_permission_has_user() {
local legacy_args=pu
# Declare an array to define the options of this helper.
local -A args_array=( [p]=permission= [u]=user= )
local permission
local user
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
if ! ynh_permission_exists --permission=$permission
then
return 1
fi
yunohost user permission info "$app.$permission" | grep --word-regexp --quiet "$user"
}

View file

@ -1,165 +0,0 @@
#!/bin/bash
# Check if a YunoHost user exists
#
# example: ynh_user_exists 'toto' || exit 1
#
# usage: ynh_user_exists --username=username
# | arg: -u, --username= - the username to check
# | exit: Return 1 if the user doesn't exist, 0 otherwise
#
# Requires YunoHost version 2.2.4 or higher.
ynh_user_exists() {
# Declare an array to define the options of this helper.
local legacy_args=u
local -A args_array=( [u]=username= )
local username
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
yunohost user list --output-as json | grep --quiet "\"username\": \"${username}\""
}
# Retrieve a YunoHost user information
#
# example: mail=$(ynh_user_get_info 'toto' 'mail')
#
# usage: ynh_user_get_info --username=username --key=key
# | arg: -u, --username= - the username to retrieve info from
# | arg: -k, --key= - the key to retrieve
# | ret: string - the key's value
#
# Requires YunoHost version 2.2.4 or higher.
ynh_user_get_info() {
# Declare an array to define the options of this helper.
local legacy_args=uk
local -A args_array=( [u]=username= [k]=key= )
local username
local key
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
yunohost user info "$username" --output-as plain | ynh_get_plain_key "$key"
}
# Get the list of YunoHost users
#
# example: for u in $(ynh_user_list); do ...
#
# usage: ynh_user_list
# | ret: string - one username per line
#
# Requires YunoHost version 2.4.0 or higher.
ynh_user_list() {
yunohost user list --output-as plain --quiet \
| awk '/^##username$/{getline; print}'
}
# Check if a user exists on the system
#
# usage: ynh_system_user_exists --username=username
# | arg: -u, --username= - the username to check
# | exit: Return 1 if the user doesn't exist, 0 otherwise
#
# Requires YunoHost version 2.2.4 or higher.
ynh_system_user_exists() {
# Declare an array to define the options of this helper.
local legacy_args=u
local -A args_array=( [u]=username= )
local username
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
getent passwd "$username" &>/dev/null
}
# Check if a group exists on the system
#
# usage: ynh_system_group_exists --group=group
# | arg: -g, --group= - the group to check
# | exit: Return 1 if the group doesn't exist, 0 otherwise
#
# Requires YunoHost version 3.5.0.2 or higher.
ynh_system_group_exists() {
# Declare an array to define the options of this helper.
local legacy_args=g
local -A args_array=( [g]=group= )
local group
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
getent group "$group" &>/dev/null
}
# Create a system user
#
# examples:
# # Create a nextcloud user with no home directory and /usr/sbin/nologin login shell (hence no login capability)
# ynh_system_user_create --username=nextcloud
# # Create a discourse user using /var/www/discourse as home directory and the default login shell
# ynh_system_user_create --username=discourse --home_dir=/var/www/discourse --use_shell
#
# usage: ynh_system_user_create --username=user_name [--home_dir=home_dir] [--use_shell]
# | arg: -u, --username= - Name of the system user that will be create
# | arg: -h, --home_dir= - Path of the home dir for the user. Usually the final path of the app. If this argument is omitted, the user will be created without home
# | arg: -s, --use_shell - Create a user using the default login shell if present. If this argument is omitted, the user will be created with /usr/sbin/nologin shell
#
# Requires YunoHost version 2.6.4 or higher.
ynh_system_user_create () {
# Declare an array to define the options of this helper.
local legacy_args=uhs
local -A args_array=( [u]=username= [h]=home_dir= [s]=use_shell )
local username
local home_dir
local use_shell
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
use_shell="${use_shell:-0}"
home_dir="${home_dir:-}"
if ! ynh_system_user_exists "$username" # Check if the user exists on the system
then # If the user doesn't exist
if [ -n "$home_dir" ]
then # If a home dir is mentioned
local user_home_dir="--home-dir $home_dir"
else
local user_home_dir="--no-create-home"
fi
if [ $use_shell -eq 1 ]
then # If we want a shell for the user
local shell="" # Use default shell
else
local shell="--shell /usr/sbin/nologin"
fi
useradd $user_home_dir --system --user-group $username $shell || ynh_die --message="Unable to create $username system account"
fi
}
# Delete a system user
#
# usage: ynh_system_user_delete --username=user_name
# | arg: -u, --username= - Name of the system user that will be create
#
# Requires YunoHost version 2.6.4 or higher.
ynh_system_user_delete () {
# Declare an array to define the options of this helper.
local legacy_args=u
local -A args_array=( [u]=username= )
local username
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
# Check if the user exists on the system
if ynh_system_user_exists "$username"
then
deluser $username
else
ynh_print_warn --message="The user $username was not found"
fi
# Check if the group exists on the system
if ynh_system_group_exists "$username"
then
delgroup $username
fi
}

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