Commit graph

328 commits

Author SHA1 Message Date
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
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
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
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
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
Alexandre Aubin
4186f757e1 Cleanup some old stuff in postinstall code 2020-09-22 17:48:00 +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
fa19c9480c Cleanup unused imports / misc 'fatal' flake8 errors 2020-09-03 17:01:24 +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
Étienne Mollier
0a9f4d59cb [fix] Ldap interface seems to expect lists everywhere now? 2020-07-27 19:20:36 +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
9933290836 Create backup archive dir during postinstall 2020-06-19 15:08:22 +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
5a003291bc
Merge branch 'stretch-unstable' into fix-regen-conf-for-ssh 2020-06-06 01:57:03 +02:00
Alexandre Aubin
a2b83c0f70 [wip] Draft of migration procedure for Stretch->Buster 2020-06-05 02:50:51 +02:00
Alexandre Aubin
0a9875b607 Fix regen-conf mechanism for SSH 2020-06-03 20:17:49 +02:00
Alexandre Aubin
03432349d7 Add -o Acquire::Retries=3 to fix some stupid issues happening sometimes 2020-06-03 19:29:32 +02:00
Alexandre Aubin
9cbd368dca Tweak apt/dpkg options to avoid the shitload of lines about progress bar stuff in logs 2020-05-14 04:46:18 +02:00
Alexandre Aubin
26fcfed7fb Only mention packages that couldn't be upgraded during failed apt upgrades 2020-05-13 15:20:49 +02:00
Alexandre Aubin
15807c411c Bad parenthesis positioning 2020-04-30 18:05:55 +02:00
Alexandre Aubin
bf291a0c50 Add 'yunohost tools versions' to have a simple way to fetch version from the webadmin 2020-04-11 23:25:51 +02:00
Alexandre Aubin
bb810bedb3
Merge pull request #857 from autra/fix-1479-firefox-bad-key
[fix] prevent firefox to mix CA and server certificate
2020-04-07 17:18:00 +02:00
Kay0u
1815e56cd9
Remove unused ssowat conf 2020-03-28 18:33:46 +01:00
Kay0u
6fbb153272
Remove redirected_urls after postinstall 2020-03-28 18:15:46 +01:00
Alexandre Aubin
9f81d77693
Merge pull request #853 from YunoHost/app-categories
[enh] Refactor app_list and app_info, + add support for app categories
2019-12-12 19:10:50 +01:00
Augustin Trancart
e0fa39ad01 [fix] prevent firefox to mix CA and server certificate
Fixes #1479: yunohost was using the exact same Distinguished Name for
the CA certificate and the main domain server certificate. When creating
alternate domain name, firefox thought the CA for this second domain was
the server certificate for the first domain. As the key mismatches,
Firefox raised a bad key usage error, which is not bypassable.

To fix this, we "simply" need to make sure the DN for the CA is
distinct for any other DN. I did so by adding a Organization to it, and
I decided to just remove the last part of the domain and use that as an
organization name. It is certainly possible to do something else, as
long as we end up having a distinct DN. So yolo.test gives a yolo
organization for instance.

More info here https://bugzilla.mozilla.org/show_bug.cgi?id=1590217
2019-11-30 15:58:41 +01:00
Alexandre Aubin
97e5d3b992 Remove those random sudo which are useless yet triggers LDAP warning when LDAP is in bad state 2019-11-28 00:10:40 +01:00
Alexandre Aubin
3951f5e1b8 Refactor the whole app_list and app_info madness ... 2019-11-25 21:05:00 +01:00
Alexandre Aubin
e686dc6866 Tweak tip at the end of postinstall to also point to diagnosis and admindoc 2019-11-22 19:38:21 +01:00
Alexandre Aubin
625df81872 Postinstall was broken because of missing import 2019-11-22 18:15:50 +01:00
Alexandre Aubin
3c76497003
Merge branch 'stretch-unstable' into get-rid-of-app-status 2019-11-16 15:24:24 +01:00
Alexandre Aubin
041d5ce684
Merge branch 'stretch-unstable' into remove-deprecated-helpers 2019-11-14 17:26:13 +01:00
Alexandre Aubin
d36a79a0f6 Merge branch 'stretch-unstable' into get-rid-of-app-status 2019-11-09 19:47:50 +01:00
Alexandre Aubin
3b7899db8c appslists -> apps catalog 2019-11-09 00:21:47 +01:00
Alexandre Aubin
f31c02cd64
Merge branch 'stretch-unstable' into future-proof-applist-system 2019-11-08 23:32:53 +01:00
Alexandre Aubin
9a95004efc
Merge branch 'stretch-unstable' into remove-deprecated-helpers 2019-11-08 22:58:37 +01:00
Alexandre Aubin
fc53148070
Merge branch 'stretch-unstable' into new-diagnosis-system 2019-11-06 18:14:21 +01:00
Alexandre Aubin
bc965dc9f6
Merge branch 'stretch-unstable' into maindomain_ux_feedback 2019-11-04 22:13:20 +01:00
Alexandre Aubin
cb247a8140 Get rid of app's status.json 2019-11-04 21:53:21 +01:00
Alexandre Aubin
515a8d2f65
Merge branch 'stretch-unstable' into future-proof-applist-system 2019-11-01 14:59:06 +01:00
Alexandre Aubin
79627d79cc [yolo] Cosmetic improvement for logs during system package upgrades 2019-10-29 16:18:31 +01:00
Alexandre Aubin
4def4dfa6a
[yolofix] Should have a list of string to be able to join() later 2019-10-15 14:54:52 +02:00
Alexandre Aubin
6dc720f3cf [yolo] Use read_json / write_to_json helpers to read/write ssowat conf.json.persistent 2019-10-15 02:36:12 +02:00
Alexandre Aubin
94f3557aeb Remove old 'tools diagnosis', superseded by the new diagnosis system 2019-10-10 16:16:59 +02:00
Laurent Peuch
6eb4b3f89e [mod] use renamed domain_main_domain function in postinstall 2019-10-05 04:32:09 +02:00
Laurent Peuch
01ad8ec964 [mod] remove now useless decorator 2019-10-05 04:32:09 +02:00
Laurent Peuch
f732085d3f [ux] rename 'yunohost domain maindomain' to 'yunohost domain main-domain' 2019-10-05 04:24:32 +02:00