Commit graph

47 commits

Author SHA1 Message Date
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
ljf
4686673bb5 [enh] Be able to disable ipv6 for smtp 2020-04-19 02:30:23 +02:00
Josué Tille
97f50e396c Fix settings boolean value management 2020-03-24 04:13:26 +01:00
Luke Murphy
74a5979e91
Fix typo in copy/pasta'd function 2019-11-10 21:01:17 +07:00
Luke Murphy
4f583aadc2
Remove comment
This isn't an issue AFAICT, since the hooks manage this themselves
already. Hence, I assume this is an old comment and out of date.
2019-11-10 21:01:16 +07:00
Luke Murphy
25f270298f
Add is_boolean and use when calling settings_set
The CLI always passes the value as a string so we need to manage this
type casting step by hand.
2019-11-10 21:01:03 +07:00
Luke Murphy
1cb6080778
Fix typos 2019-11-10 20:57:46 +07:00
Luke Murphy
83b4be5345
Add setting to configure pop3 for dovecot 2019-11-10 20:57:46 +07:00
Alexandre Aubin
95fdfb3275
Unit test was broken, gotta foce this to be a str otherwise string formatting fails later 2019-05-17 15:48:51 +02:00
Romuald du Song
15ac51098d propose a setting to remove support for TLSv1 and TLSv1.1 2019-03-28 22:03:25 +01:00
Alexandre Aubin
dbafa47f88
Merge branch 'stretch-unstable' into featureCipherStrategy 2019-03-23 18:19:04 +01:00
Alexandre Aubin
fee79820e0 Rename nginx and ssh compatibility setting for consistency 2019-03-22 16:15:11 +01:00
Alexandre Aubin
847cecaf7f [fix] Fix error message for bad choice for setting enums 2019-03-22 16:12:32 +01:00
Romuald du Song
e7d322b68c don't enforce services reconfiguration generation unless you don't want to keep user meodifications 2019-02-25 18:29:46 +01:00
Alexandre Aubin
a1d85b6350
Merge branch 'stretch-unstable' into featureCipherStrategy 2019-02-25 00:56:20 +01:00
Romuald du Song
ac250e2549 fix service_regen_conf syntax 2019-02-21 21:15:25 +01:00
Romuald du Song
9aa6cb6ac5 add hook to reconfigure nginx or ssh on settings change 2019-02-21 20:46:18 +01:00
Alexandre Aubin
c029ccb7ad Also feed the setting name when calling setting hook 2019-02-21 15:07:06 +01:00
Alexandre Aubin
9a7dc6d43e Be able to define hook to trigger after changing a setting value 2019-02-19 16:40:47 +01:00
Romuald du Song
375b7d53b1 fix enum syntax 2019-02-14 23:00:52 +01:00
Romuald du Song
a899102efc don't share setting for nginx and ssh 2019-02-14 22:57:24 +01:00
Romuald du Song
e8eff87297 switch to enum type to store cipher policy setting 2019-02-14 22:49:13 +01:00
Romuald du Song
f084de5a69 declare setting security.ciphers.compatibility 2019-02-09 23:30:40 +01:00
Alexandre Aubin
115b557b67 autopep8 + a few manual tweaks 2018-12-13 18:52:26 +00:00
Alexandre Aubin
18c33db8b6 MoulinetteError -> YunohostError 2018-12-12 19:07:25 +00:00
Alexandre Aubin
caa2d0d91b MoulinetteError / OSError never accepted keyword arguments such as exc_info :/ ... 2018-12-12 19:01:28 +00:00
Alexandre Aubin
2dd1d8ccfe Unused errno + remaining unecessary m18n.n 2018-12-12 19:01:28 +00:00
Irina LAMBLA
4ba309a221 modif MoulinetteError to YunohostError 2018-12-12 19:01:28 +00:00
Irina LAMBLA
9eec09da81 - "m18n.n" 2018-12-12 18:56:26 +00:00
Irina LAMBLA
0468d6b900 sed 3 lines
deletion of line breaks to be able to use "sed" :
sed -i "N; s@MoulinetteError(.*m18n\.n(\n* *@MoulinetteError(m18n.n(@g"
2018-12-12 18:56:26 +00:00
Irina LAMBLA
4bc3427e3e moulinette MoulinetteError multilignes"
sed -i "N; s@MoulinetteError(.*m18n\.n(\n* *\(.*\)))@MoulinetteError(\1)@g" <fichiers>
2018-12-12 18:56:26 +00:00
Alexandre Aubin
0d83d35c4d
Merge pull request #595 from YunoHost/fix_test
[fix] Repair tests
2018-12-12 16:53:47 +01:00
Alexandre Aubin
bf676c2fd8
Merge pull request #552 from kir0ul/enh-human-readable-date
[enh] Human readable date
2018-12-12 13:12:02 +01:00
ljf
60843edc0f [enh] Use aware UTC date in backup settings and app 2018-12-09 21:08:36 +01:00
Josué Tille
03b1a2867c Fix tests 2018-12-07 22:33:13 +01:00
Alexandre Aubin
325678f541 More explicit name for setting 2018-11-28 00:04:25 +01:00
ljf
8e0086d493 [fix] Allow user to trigger the moment when they remove dsa 2018-11-28 00:00:30 +01:00
Alexandre Aubin
ded9b58575 Use level 1 as default for everybody 2018-10-26 14:31:16 +00:00
Alexandre Aubin
a780ebd900
Number of char 2018-10-26 01:47:52 +02:00
Alexandre Aubin
8a0c4509fd Those arent used ? 2018-10-25 19:30:18 +00:00
ljf
783c512628 [enh] PasswordValidator without Moulinette 2018-08-28 08:56:12 +02:00
ljf
67e82111c1 [enh] Validate pwd with Online Pwned List 2018-08-28 03:09:43 +02:00
ljf
06276a621b [enh] Check password in cli/api 2018-08-27 03:40:50 +02:00
Laurent Peuch
baf0d098f5 [mod] explicitely import previously globals magic variables 2017-07-25 21:32:20 +02:00
Jean-Baptiste
64ab4a82b3 [fix] Yypos in en.json (#314)
* serialzed => serialized
* typo close global_settings_key_doesnt_exists
* serialized/serialize & setings/settings
2017-05-31 17:06:40 +02:00
Laurent Peuch
f9437bbd33 Global settings (#229)
* [enh] add base to run tests
* [enh] start global settings proto
* [mod] has -> exists
* [enh] configure actionmap for settings module
* [enh] add a default values mecanism
* [enh] nicer yaml dump
* [mod] DRY
* [fix] moulinette doesn't respect positionned arguments
* [fix] typo
* [mod] don't print when it's not needed
* [enh] raise a moulinette exception when the key doesn't exists
* [mod] add todo comments
* [mod] no more default value
* [enh] namespace all global settings commands
* [mod] unix way, be quiet except when needed
* [fix] forgot to add namespace argument to settings-list
* [fix] fail_silently wasn't considered as a cli flag
* [mod] refactoring
* [enh] remove empty namespace on remove
* [enh] print a warning if attempt to list an empty namespace settings
* [mod] refactoring
* [enh] handle case where I can't open settings file
* [enh] handle case where I can't write settings file
* [enh] handle case where I can't serialized settings data into yaml
* [mod] add error return codes
* [enh] start to move to new architecture for settings
* [enh] uses a dict instead of a tuple for settings
* [mod] no more namespace in settings list
* [mod] settings.exists isn't relevant anymore
* [mod] settings.remove isn't relevant anymore
* [enh] fix settings and switch to json
* [enh] adapt settings set
* [enh] don't set a key that doesn't exists
* [enh] check type of keys before settings them
* [enh] start implement default
* [enh] handle case where key doesnt exist for default
* [enh] i18n for bad key type on settings set
* [enh] i18n for bad key type on settings set for enum
* [mod] exception for weird situation
* [mod] this message isn't used anymore
* [enh] i18n for unknown setting key from local settings
* [mod] style
* [enh] start to work on a reset mecanism
* [enh] complain if settings_reset is called without yes
* [fix] --yes of reset is a boolean option
* [enh] backup old settings before resetting
* [fix] bad usage of logger
* [enh] backup unknown settings
* [enh] move settings description in translations
* [enh] add tests for settings
* [enh] migrate to pytest assert style
* [fix] typo
* [doc] add some comments for not explicite part of the code
* [mod] possibilities -> choices for uniformised vocabulary
* [mod] follow rest semantic
* [doc] made namespace usage more explicit
* [fix] we don't use namespace key anymore
* [enh] make settings_default available in cli
* [fix] *really* be Rest semantic
* [doc] add docstrings to settings module functions
* [enh] reset-all and --full option
* [fix] Remove unused global_settings_reset_not_yes
2017-05-16 17:18:07 +02:00