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
Laurent Peuch
365f7694a9
[enh] display file path on file_not_exist error
2016-06-23 18:36:21 +02:00
Jérôme Lebleu
0d210e2e54
[ref] Invert no-stats option to with-stats in monitor_enable
...
Since monitoring statistics was not finished - and by the way not usable,
it inverts the behavior of monitor_enable to disable it by default.
See #395 for more details.
2016-06-04 22:28:17 +02:00
Jérôme Lebleu
6ad0083f04
[fix] Allow - in app id when parsing app instance name
2016-05-30 19:06:40 +02:00
Jérôme Lebleu
b756f4d1eb
[fix] Escape arguments and env values in hook_exec (bugfix #377 )
2016-05-30 12:10:39 +02:00
Jérôme Lebleu
048ed3b0ea
[fix] Raise proper MoulinetteError exception in hook_exec
2016-05-29 23:38:35 +02:00
Jérôme Lebleu
bca32c881e
[enh] Call iptables/ip6tables with --wait option ( close #325 )
2016-05-28 22:01:01 +02:00
Jérôme Lebleu
765a06bd14
[fix] Catch not implemented prompt signal in app arguments parsing
2016-05-22 21:38:59 +02:00
Jérôme Lebleu
f09ab43eb8
[fix] Print string error of MoulinetteError in hook_callback
2016-05-21 21:21:20 +02:00
Jérôme Lebleu
a4663764e9
[fix] Update argument with empty value adding for OrderedDict usage
2016-05-14 17:19:45 +02:00
Jérôme Lebleu
420e5aed2c
[fix] Copy app remove script in a tmp file at restoration failure
2016-05-14 14:29:48 +02:00
opi
923d72814b
[fix] Can install app on domain root even if another app is installed in a sub folder.
2016-05-07 02:03:26 +02:00
Jérôme Lebleu
5d91f48903
[enh] Handle password argument type at prompt from app manifest
2016-05-07 01:56:58 +02:00
Jérôme Lebleu
edf96bc778
[enh] Also add app hooks after successful upgrade
2016-05-06 23:37:41 +02:00
Jérôme Lebleu
ff93770529
[enh] Add app hooks after the install to allow modifications
2016-05-06 23:35:09 +02:00
Jérôme Lebleu
26aa1cba37
[fix] Remove the app if it restoration failed
2016-05-06 20:16:49 +02:00
Jérôme Lebleu
4c9b79f5fc
[i18n] Rename backup_complete and backup_failed strings
2016-05-06 12:41:57 +02:00
Jérôme Lebleu
cb515f2592
[enh] Check free space in output directory before backup archive creation
2016-05-06 12:36:10 +02:00
Jérôme Lebleu
97e699449d
[enh] Create backup archives path depending of output directory
2016-05-06 12:25:20 +02:00
opi
286ce86993
[fix] Catch IOError on tar creation (backup).
2016-05-06 12:00:33 +02:00
opi
5027ec0468
[fix] Pass app instance environment variables to remove script.
2016-05-03 16:42:04 +02:00
Jérôme Lebleu
3f0ad9139e
[enh] Remove empty pending conf directory at regen-conf
2016-05-01 13:46:27 +02:00
Jérôme Lebleu
f1866c6113
[enh] Do not clean whole pending conf dir when names are given at regen-conf
2016-05-01 13:41:54 +02:00
Jérôme Lebleu
fcfb6de16e
[fix] Handle when new conf is as current system conf in regen-conf
2016-05-01 12:49:48 +02:00
Jérôme Lebleu
fa89291504
[enh] Do not bind mounting if no backup archive is created (wip #298 )
2016-04-30 17:19:12 +02:00
Jérôme Lebleu
c3fd005027
[enh] Allow to set env var for executed hooks in hooks_callback
2016-04-30 17:15:17 +02:00
Jérôme Lebleu
aae59b1d6e
[enh] Small changes to env prepending in hook_exec
2016-04-28 21:03:22 +02:00
Julien Malik
c5d1ef981b
[enh] Set env var for each app script and rename app variables
2016-04-28 21:03:17 +02:00
Julien Malik
7ce7d6fc15
[enh] Support passing env var to hook_exec
2016-04-28 20:43:22 +02:00
Jérôme Lebleu
a960c92b9f
[fix] Clean properly backup tmp directory if it already exists (wip #298 )
2016-04-27 11:07:28 +02:00
Jérôme Lebleu
31bedc5fa4
[enh] Catch boolean in is_true method of app.py
2016-04-26 15:56:06 +02:00
Jérôme Lebleu
fab1ddf7bb
[fix] multi_instance manifest key is generally a string
2016-04-26 15:55:19 +02:00
Jérôme Lebleu
aca251e981
[enh] Prevent non-updated multi-instances apps installation ( close #126 )
2016-04-25 13:58:17 +02:00