Commit graph

4018 commits

Author SHA1 Message Date
Alexandre Aubin
fef1ca08c5 Changing name of cron job to be consistent with other yunohost crons, as requested by @opi 2016-10-30 11:48:27 -04:00
Laurent Peuch
289eb01480 [mod] small opti, getting domain list can be long 2016-10-30 15:21:23 +01:00
Laurent Peuch
299aa978f7 [mod] simplify code 2016-10-30 14:06:34 +01:00
Laurent Peuch
248508dcaa [mod] do not uses tabulate, the api needs json 2016-10-30 14:01:39 +01:00
Laurent Peuch
bd41f0d4a2 [mod] os.path.join 2016-10-30 13:55:04 +01:00
Laurent Peuch
a1b42e65f8 [mod] remove useless variables 2016-10-30 13:49:40 +01:00
Laurent Peuch
ac9f2643a7 [mod] move a part of os.system calls to native shutil/os 2016-10-30 13:41:06 +01:00
Laurent Peuch
3fc2d45a6a [mod] remove useless comments 2016-10-30 13:41:06 +01:00
Laurent Peuch
487e1d2588 [mod] pylint 2016-10-30 05:54:45 +01:00
Laurent Peuch
3b5cadb907 [mod] realign stuff 2016-10-30 05:43:32 +01:00
Laurent Peuch
8b24ab73c2 [mod] small opti, getting domain list can be slow 2016-10-30 05:42:49 +01:00
Laurent Peuch
02b5ea62fe [mod] pep8 2016-10-30 05:42:16 +01:00
Laurent Peuch
c1252120a1 [mod] typo 2016-10-30 05:36:02 +01:00
Laurent Peuch
65e9a4b6d8 [mod] uses logger string concatenation api 2016-10-30 05:34:30 +01:00
Laurent Peuch
8ca5d59a96 [mod] remove useless () 2016-10-30 05:33:59 +01:00
Laurent Peuch
5615e3f4fe [mod] uses logger string concatenation api 2016-10-30 05:33:21 +01:00
Laurent Peuch
e8e07d464a [mod] remove useless variable 2016-10-30 05:31:36 +01:00
Laurent Peuch
55d007f130 [mod] avoid useless indentation 2016-10-30 05:30:54 +01:00
Laurent Peuch
34f9890517 [mod] more pythonic string concatenation 2016-10-30 05:30:26 +01:00
Laurent Peuch
dd893b0838 [mod] remove useless () 2016-10-30 05:26:52 +01:00
Laurent Peuch
a7b9226667 [mod] lisibility 2016-10-30 05:23:32 +01:00
Laurent Peuch
cd21edb267 [mod] pep8 2016-10-30 05:22:43 +01:00
Laurent Peuch
ac901528c3 [mod] uses + for strings 2016-10-30 05:22:30 +01:00
Laurent Peuch
ac9f61c7b1 [mod] more pythonic code 2016-10-30 05:21:27 +01:00
Laurent Peuch
9a4dbd5d31 [fix] uses https 2016-10-30 05:20:40 +01:00
Laurent Peuch
ea179b1683 [mod] simplier condition 2016-10-30 05:20:13 +01:00
Laurent Peuch
7dbbd7fdc2 [fix] correctly handle all cases 2016-10-30 05:19:43 +01:00
Laurent Peuch
39aaa17639 [mod] remove useless () 2016-10-30 05:08:44 +01:00
Laurent Peuch
29f5f2d753 [mod] more pythonic code 2016-10-30 04:56:06 +01:00
Laurent Peuch
917c230735 [mod] more pythonic and explicit tests with more verbose errors 2016-10-30 04:55:56 +01:00
Laurent Peuch
aff4dc4086 [mod] more verbose error 2016-10-30 04:46:35 +01:00
Laurent Peuch
ef62877952 [mod] pep8 2016-10-30 04:29:24 +01:00
Laurent Peuch
6a1727da89 [mod] remove useless imports 2016-10-30 04:27:41 +01:00
Laurent Peuch
02fc92d210 [mod] pep8 2016-10-30 04:27:12 +01:00
Laurent Peuch
32bf742367 [mod] trailing spaces 2016-10-30 04:25:23 +01:00
Laurent Peuch
bec8f63479 [mod] autopep8 2016-10-30 04:24:54 +01:00
Laurent Peuch
d47f5919d6 [mod] remove unused imports 2016-10-30 04:22:56 +01:00
Alexandre Aubin
35fa386ce3 First draft of certificate management integration (e.g. Let's Encrypt certificate install) 2016-10-28 13:59:42 -04:00
JimboJoe
7579eef600 Update backup.py
if /home/yunohost.backup/archives is on a different device (for instance, a NAS), backups fail with the message:
...
 File "/usr/lib/moulinette/yunohost/backup.py", line 303, in backup_create
    '{:s}/{:s}.info.json'.format(archives_path, name))
OSError: [Errno 18] Invalid cross-device link

A simple solution is to use shutil.move because, as stated in the documentation, "If the destination is on the current filesystem, then os.rename() is used. Otherwise, src is copied (using shutil.copy2()) to dst and then removed.", which is the needed behavior.
This PR has been successfully tested.
2016-10-14 18:03:58 +02:00
Moul
76a294b284 [fix] typo: install filed –> failed. 2016-10-12 09:39:05 +02:00
Laurent Peuch
81c19cd1d6 [enh] no cli option to avoid removing an application on installation failure 2016-10-09 21:34:03 +02:00
opi
81e464ce1f [enh] Display full exception error message. 2016-08-28 23:36:45 +02:00
opi
6149e6c6de [fix] Write SSOwat configuration file only if needed. 2016-08-28 15:42:47 +02:00
opi
d95052a9e9 [enh] Catch SSOwat persistent configuration write error. 2016-08-28 15:39:45 +02:00
Laurent Peuch
78a8a302d9 [fix] ensure that multi_instance key value is always a boolean 2016-08-12 14:14:04 +02:00
opi
937f26bdaa [fix] Raise error on malformed SSOwat persistent conf. 2016-07-21 11:43:02 +02:00
Laurent Peuch
2e5b8fa393 [fix] Use a local variable for extracted app dir (bugfix #326) 2016-07-14 11:58:16 +02:00
jellium
53e19fa32d [fix] Replace deprecated psutil.BOOT_TIME attribute
The `psutil.BOOT_TIME` attribute appears to be deprecated, and returns an `AttributeError` when called.
Even though the psutil documentation states that old attributes should be callable, one should use `psutil.boot_time()` function instead.
In some version of psutil (e.g. 2.1.1), both appear callable. In old versions (e.g. 1.2.1), `psutil.BOOT_TIME` is but `psutil.boot_time()` is not. In the newest version (4.3.0), only the latter can be called.

This bug would introduce an Internal Server Error (Error 500) when accessing the Monitor tool in the YunoHost admin panel.
2016-07-13 21:05:10 +02:00
Jérôme Lebleu
f7add32acb [fix] Set empty app argument value only when it's None 2016-07-11 21:04:47 +02:00
vetetix
d96ce2e9b9 fix issue in dkim dns setting
Add a dot "." so that dkim dns entry is "mail._domainkey.domain.tld." instead of "mail._domainkey.domain.tld"
2016-06-25 18:12:55 +02:00