Commit graph

1993 commits

Author SHA1 Message Date
Alexandre Aubin
ae98ec1aa7 Trailing slash in ssowat uris cause issues to access app installed on root, we only need it for app_map ... 2020-04-28 18:55:39 +02:00
Alexandre Aubin
196a3d4d47 Refactor check about apps being installed on domain when trying to remove a domain 2020-04-28 05:36:11 +02:00
Alexandre Aubin
cb223be4d1
Merge pull request #953 from YunoHost/fix-app-map-with-app-on-root
[fix] Make sure to return '/' and not empty string for stuff on domain root
2020-04-27 23:24:55 +02:00
Alexandre Aubin
902dd0a548
Merge pull request #946 from YunoHost/be-more-robust-against-manually-modified-domain-conf
[fix] Be more robust against manually modified domain conf
2020-04-27 23:24:30 +02:00
Alexandre Aubin
7e4f3b6f29
Merge pull request #956 from YunoHost/be-more-robust-against-corrupted-backup-archives
Be more robust against some situation where archive is corrupted
2020-04-27 23:24:03 +02:00
Alexandre Aubin
311835b1b5
Add name of the exceptions that can be raised to docstring.. 2020-04-27 23:23:31 +02:00
Alexandre Aubin
ceab9bd1b3
Merge branch 'stretch-unstable' into fix-1516-separate-xmpp-vhosts 2020-04-27 18:03:34 +02:00
Alexandre Aubin
32c300e627 Reorganize import, make linter happier 2020-04-27 18:01:09 +02:00
Alexandre Aubin
c1262ab9a9 Fix acme challenge code snippet detection for this domain 2020-04-27 18:01:09 +02:00
Alexandre Aubin
17d3ec5ad3 Improve new dig() helper, and use it in dnsrecords diagnosis as well 2020-04-27 17:30:17 +02:00
ljf
c6c85556ac [fix] False positive on blacklist due to search in resovconf 2020-04-27 17:30:17 +02:00
Alexandre Aubin
69938c3feb Re-add 'app fetchlist', 'app list -i', 'app list' filter for backward compatibility... 2020-04-26 03:43:36 +02:00
Alexandre Aubin
cde68cd7cc
Make sure to strip() the path just in case
Co-Authored-By: Bram <cortex@worlddomination.be>
2020-04-25 23:52:55 +02:00
Alexandre Aubin
9ef2c60a90 Uhoh we can't call domain_list if postinstall ain't done yet 2020-04-25 05:24:27 +02:00
Alexandre Aubin
b90155423d Add a caching mechanism to get_public_ip to avoid loading requests and calling ip.yunohost.org dozens of time per minute... 2020-04-25 04:33:08 +02:00
Alexandre Aubin
319898baf7 Feed domain list to regen-conf hooks directly through env to avoid having to call 'yunohost domain list' 2020-04-25 03:49:30 +02:00
Kay0u
05734dfd7c
clean tmp backuo dir 2020-04-25 02:28:45 +02:00
Kay0u
77e124519f
add bad archive test 2020-04-25 01:54:12 +02:00
Alexandre Aubin
a20fd04955
Remove tmp debug print()
Co-Authored-By: Kayou <pierre@kayou.io>
2020-04-25 01:27:20 +02:00
pitchum
b9e226caed Remove deprecated docstrings. 2020-04-24 19:07:05 +02:00
Alexandre Aubin
54cc684a35 Keep track of yunohost version a backup was made from, for possible future uses 2020-04-24 03:33:59 +02:00
Alexandre Aubin
5baadd1fa1 Be more robust against some situation where archive is corrupted 2020-04-24 03:08:31 +02:00
Alexandre Aubin
cb0a87de25 Patch usage of old in apps 'yunohost tools diagnosis' 2020-04-23 18:59:12 +02:00
Alexandre Aubin
f68ae4561f Patch files earlier to avoid raising an exception is setting folder already exists 2020-04-23 18:00:46 +02:00
Alexandre Aubin
755ba61b32 Moar tests to check the content of app_map 2020-04-23 17:44:01 +02:00
Alexandre Aubin
e79f73d463 Make sure to return / and not empty string for stuff on domain root 2020-04-23 17:02:58 +02:00
Alexandre Aubin
9eef8af53d Fix improper use of logger.exception in app.py 2020-04-23 04:18:23 +02:00
pitchum
c42f7172f7
Do not include xmpp-upload in certificates of "child" domains
Co-Authored-By: Alexandre Aubin <alex.aubin@mailoo.org>
2020-04-22 10:34:40 +02:00
Alexandre Aubin
cc5dc0e7a7
How did we not find out about this huge typo earlier :| 2020-04-22 02:21:28 +02:00
Alexandre Aubin
56a1fba297 Add regenconf tests for previous commits 2020-04-21 04:48:26 +02:00
Alexandre Aubin
99ad8cc492 Force-flush the regen-conf for nginx domain conf when adding/removing a domain... 2020-04-21 04:45:16 +02:00
Alexandre Aubin
b392efdf85 Also anonymize folder name containing %2e instead of dot 2020-04-21 02:42:46 +02:00
Alexandre Aubin
3b0bd2e8f2
Merge pull request #923 from YunoHost/misc-enh-diagnosis
[enh] Misc improvements for diagnosis
2020-04-19 05:34:27 +02:00
Alexandre Aubin
7c758b72c9
Merge branch 'misc-enh-diagnosis' into enh-diagnosis-mail 2020-04-19 04:06:44 +02:00
ljf
40141c84f3 [enh] Auto update postfix on smtp.allow_ipv6 change 2020-04-19 03:55:50 +02:00
ljf
e6f0091f59 [fix] Rename ipv6 mail settings + desc 2020-04-19 03:45:59 +02:00
Alexandre Aubin
f78af06a35 Lazy loading for performance, possibly 2020-04-19 02:59:16 +02:00
Alexandre Aubin
da112a3668 Let's push also CAA for nohost.me ... Assuming dynette will eventually allow it .. 2020-04-19 02:44:39 +02:00
Alexandre Aubin
a33ae634c3 We need those quotes around spf 2020-04-19 02:39:36 +02:00
ljf
4686673bb5 [enh] Be able to disable ipv6 for smtp 2020-04-19 02:30:23 +02:00
Alexandre Aubin
7818eb3946 Better handling of failure to use the remote-diagnosis 2020-04-19 00:26:33 +02:00
Alexandre Aubin
a30ed783da Improve message about error 500 2020-04-18 20:34:34 +02:00
Alexandre Aubin
e880e775c1 No need to display this message in webadmin (we're already on the diagnosis script when this happens ...) + in CLI we want to have it as a warning so that it's displayed in cron email 2020-04-18 03:09:43 +02:00
Alexandre Aubin
301ced9d6e Hmf I dunno let's have this weird option if we really want to have a special case for first-run ... 2020-04-18 02:54:16 +02:00
Alexandre Aubin
08f9091257 Handle stupid weird case where the manifest file disappeared yet the app folder is still there ... 2020-04-18 02:40:40 +02:00
Alexandre Aubin
485de92b50 Redundant message 2020-04-17 21:22:02 +02:00
Alexandre Aubin
61ef67252e Don't contact ip6.yunohost if we can know right away that there's no IPv6 at all on the system 2020-04-17 19:38:46 +02:00
Alexandre Aubin
4306db7cf1 Be more flexible about SPF record: just 'a mx -all' is enough, no need to specify IP. (also fix TXT record validation in diagnosis) 2020-04-17 03:20:40 +02:00
Alexandre Aubin
7f3cc33487 Add a static method to call remote diagnosis and supports ipv4-only or ipv6-only check 2020-04-17 03:20:40 +02:00
Alexandre Aubin
8e46b536dc Somewhat cleaner hack to check the status of those damn services that aren't the real services... 2020-04-17 03:20:40 +02:00