Commit graph

4018 commits

Author SHA1 Message Date
Jérôme Lebleu
a06a753fb6 [enh] Allow to list pending conf only in service_regen_conf 2016-04-11 19:03:48 +02:00
Jérôme Lebleu
de04028309 [fix] Keep only pending conf in conf regen 2016-04-11 19:01:12 +02:00
Jérôme Lebleu
eecf03ffbc [enh] Allow to show the diff between conf in service_regen_conf 2016-04-11 18:50:45 +02:00
Jérôme Lebleu
2309405e98 [enh] Refactor the conf regen for better conflicts handle
It rewrites some parts of the conf regen but try to keep as much as possible
the same logic - to prevent a too big refactoring. The main change is that
configuration file regen is now handle by service_regen_conf directly.

Hooks are now called twice with the following arguments respectively:
 * `"pre" $force $pending_dir`: it's time for the script to generate and put
   each configuration file to update/remove into `$pending_dir` with the
   right directory tree. To remove one, just touch an empty file.
 * `"post" $force`: this second time, the script may restart services, fix
   permissions, clean, ...

Between this two executions, the service_regen_conf will look for any files
under the `$pending_dir` and safely process them - either create, update or
remove the proper system configuration.
2016-04-11 17:11:41 +02:00
Jérôme Lebleu
3ed502894c [fix] Skip hidden and temp files in hook_list 2016-04-10 19:20:40 +02:00
Jérôme Lebleu
b053ba6ac1 Merge branch 'unstable' into regen-conf-enh 2016-04-10 17:01:33 +02:00
Jérôme Lebleu
c09e322d24 [fix] Use new service_regen_conf method name 2016-04-10 16:57:09 +02:00
Jérôme Lebleu
a26d921c0c [fix] Formatting 'args' in hook_callback is useless 2016-04-10 16:50:39 +02:00
Jérôme Lebleu
cf077a50aa [enh] Add pre/post script execution callbacks to hook_callback 2016-04-10 16:48:46 +02:00
Jérôme Lebleu
a7657c1a39 [ref] Deprecate and rename regenconf action to regen-conf 2016-04-10 10:42:30 +02:00
Jérôme Lebleu
a948be035a [i18n] Rename app_requirements_failed err named variable 2016-04-08 22:44:31 +02:00
Jérôme Lebleu
0339d8160d [fix] Remove ending comma in backup.py 2016-04-04 20:18:44 +02:00
Jérôme Lebleu
704151f5eb [fix] Move imports at the top in backup.py 2016-03-28 22:11:46 +02:00
Jérôme Lebleu
8a44179d00 [fix] Regenerate SSOwat conf after apps restoration 2016-03-28 22:07:59 +02:00
Jérôme Lebleu
bba6ec8cfb [fix] Execute backup/restore app scripts from the backup dir (bugfix #139) 2016-03-28 21:55:07 +02:00
Jérôme Lebleu
de08c14aa1 [enh] Allow to set script execution directory in hook_exec 2016-03-28 21:49:11 +02:00
Jérôme Lebleu
d11dd38e42 Merge branch 'testing' into unstable
This fixes DynDNS update.
2016-03-27 16:54:13 +02:00
Jérôme Lebleu
c99d56f2d5 Merge branch 'stable' into testing
This fixes DynDNS update.
2016-03-27 16:52:41 +02:00
opi
394f0498a5 [enh] Use named arguments for user_unknown string. 2016-03-27 16:41:54 +02:00
opi
4cabb2f7f9 [enh] Use named arguments with m18n. 2016-03-27 15:56:41 +02:00
opi
468199c78f [enh] Use named arguments when calling m18n in service.py 2016-03-27 12:48:48 +02:00
opi
7999293438 [enh] Display hook path on error message. 2016-03-27 11:26:41 +02:00
opi
f176c3061e [enh] Better message during service regenconf. 2016-03-27 11:26:41 +02:00
Jérôme Lebleu
8114de167b [enh] Call app remove script if installation fails 2016-03-25 17:46:38 +01:00
opi
4833b6b2b2 [enh] Use dedicated app list domain. 2016-03-23 08:53:44 +01:00
opi
159fd9af11 [fix] Use only dyndns.yunohost.org domain. 2016-03-22 21:59:27 +01:00
opi
d07d8e835a [enh] Add --installed and --with-backup to app_list action (wip #227) 2016-03-16 20:18:27 +01:00
opi
b6ee72e412 [enh] Add diagnosis function. #39 2016-03-12 23:33:30 +01:00
Jérôme Lebleu
fba14e55df [enh] Introduce new 'requirements' manifest key (close #113)
The 'requirements' key allows to specify the Debian packages which must
be installed and their required version. It must be an array of the
package name as the key and its version specifier - for its format, see
yunohost.utils.packages.Specifier - as value. For example:

"requirements": {
  "yunohost": ">= 2.4, << 2.5"
}
2016-03-08 22:58:47 +01:00
Jérôme Lebleu
cc4dc54ed3 [enh] Implement package version specifier and use it for min_version 2016-03-08 21:52:45 +01:00
Julien Malik
4fd7a69d68 [fix] use ip6.yunohost.org instead of ipv6.yunohost.org (less connectivity issues) 2016-03-08 18:59:09 +01:00
Julien Malik
ec912d5074 [fix] Protect against empty files 2016-03-08 17:38:29 +01:00
Jérôme Lebleu
c7a7e01d89 [fix] Use http to retrieve public IPv6 due to Let's Encrypt restriction 2016-03-08 16:57:21 +01:00
Jérôme Lebleu
5afd0c1272 [enh] Rely on APT python library to retrieve packages version
It introduces a new `yunohost.utils` package which will contain common
utils used by YunoHost actions. It comes with a work in progress `packages`
module with simple methods to retrieve installed version of packages for now.
2016-03-08 16:10:14 +01:00
Jérôme Lebleu
8aa64a0641 [enh] Use a common method to retrieve public IP address 2016-03-08 11:10:28 +01:00
Jérôme Lebleu
5f08eb06ae [enh] Use https to retrieve public IP address 2016-03-08 11:10:28 +01:00
opi
d8f4d3c0ad [fix] Wrong command name. 2016-03-07 22:21:50 +01:00
opi
a37fa9ed5d [fix] Multiple exceptions syntax. 2016-03-07 22:20:54 +01:00
opi
0fb7295e8e [fix] Catch ConnectionError from requests package 2016-03-06 19:30:10 +01:00
opi
4a787da440 [enh] Add dummy DMARC support if DKIM already supported. #233 2016-03-04 11:21:37 +01:00
opi
8700f7bfe1 [enh] Replace msignals.display by logging in tools.py 2016-03-02 11:12:54 +01:00
Jérôme Lebleu
32e8285125 [fix] Be less restricitve on network interfaces name in monitoring 2016-03-01 21:40:08 +01:00
Jérôme Lebleu
5451f09b69 [fix] Keep 'avail' key - removed from glances - in disk fs monitoring 2016-03-01 21:25:52 +01:00
Jérôme Lebleu
173d32134e [enh] Replace msignals.display by logging in monitor.py 2016-03-01 21:01:32 +01:00
Jérôme Lebleu
b265a08391 [enh] Replace msignals.display by logging in dyndns.py 2016-03-01 20:59:19 +01:00
Jérôme Lebleu
954a707643 [enh] Replace msignals.display by logging in user.py 2016-03-01 20:56:45 +01:00
Jérôme Lebleu
f860c5dfd2 [enh] Add the repository from where the app is defined in app_list
The *repository* term is quite new and will replace *app list* in a near
future. It is - for the moment - only shown and used in the Web admin.
This also removes the unused app['manifest']['orphan'] key since it
duplicates the repository absence.
2016-03-01 16:10:06 +01:00
Jérôme Lebleu
fcc1fe57dc [i18n] Use named arguments for remaining translations in app.py 2016-03-01 11:18:23 +01:00
Jérôme Lebleu
62050963de [enh] Replace msignals.display by logging in app.py 2016-03-01 11:18:23 +01:00
Moul
288f4194a2 [enh] also get ssowat version with '-v' argement. 2016-02-29 20:32:24 +01:00