Commit graph

5691 commits

Author SHA1 Message Date
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
ljf
2b8f7e1494 [fix] SSH or SFTP permission migrations 2020-10-07 01:04:52 +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