Commit graph

2157 commits

Author SHA1 Message Date
Jérôme Lebleu
df9094b896 [enh] Update dovecot conf_regen hook 2016-04-16 11:39:43 +02:00
Jérôme Lebleu
3eacbef144 [enh] Update fail2ban conf_regen hook and drop wheezy support 2016-04-13 22:35:40 +02:00
Jérôme Lebleu
93fa6b07da [fix] Simplify directory creation in metronome conf_regen hook 2016-04-13 22:34:11 +02:00
Jérôme Lebleu
c8255fbc0c [enh] Update avahi-daemon, glances and nsswitch conf_regen hooks 2016-04-13 22:27:43 +02:00
Jérôme Lebleu
c09abeaec1 [enh] Update postfix conf_regen hook and simplify plain conf files copy 2016-04-12 21:41:52 +02:00
Jérôme Lebleu
2d28006c83 [enh] Update metronome conf_regen hook 2016-04-12 21:20:17 +02:00
Jérôme Lebleu
99002b9f42 [enh] Update nslcd conf_regen hook and do not edit the file by hand 2016-04-11 22:04:56 +02:00
Jérôme Lebleu
0f9e777fc6 [enh] Update slapd conf_regen hook 2016-04-11 22:03:50 +02:00
Jérôme Lebleu
386f25b3bf [enh] Mark conf_regen hooks as executable interpreted scripts 2016-04-11 21:31:40 +02:00
Jérôme Lebleu
4090630bd9 [enh] Update yunohost, ssl and ssh conf_regen hooks 2016-04-11 21:26:13 +02:00
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
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
96d4eb3396 [clean] Move conf_regen hooks to prevent issue while updating them 2016-04-11 17:30:57 +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
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
e4ec67d727 [fix] Improve control file management in equivs helper 2016-04-04 20:18:09 +02:00
Jérôme Lebleu
dc3e07c4bd [fix] Check if the package is actually installed in equivs helper 2016-04-03 11:28:53 +02:00
Jérôme Lebleu
dea0c16540 [enh] Add a ynh_user_list helper 2016-04-02 11:49:01 +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
de08c14aa1 [enh] Allow to set script execution directory in hook_exec 2016-03-28 21:49:11 +02:00
Jérôme Lebleu
e7adbbf630 [fix] Use rspamd local.d folder to allow users to override the defaults 2016-03-28 19:21:43 +02:00
Jérôme Lebleu
ca54418441 [enh] Use new rspamd configuration system to override metrics 2016-03-28 19:11:50 +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
Jérôme Lebleu
b0dc30edde [fix] Call yunohost commands with --quiet in setting helpers 2016-03-26 19:15:53 +01:00
Jérôme Lebleu
0d9b8d9b3d [fix] Use dyndns.yunohost.org instead of dynhost.yunohost.org 2016-03-26 14:15:49 +01:00
Jérôme Lebleu
d66a46a8de [fix] Update first registered domain with DynDNS instead of current_host 2016-03-26 00:27:25 +01:00
Jérôme Lebleu
8f7d75f5ff [fix] Don't fail dnsmasq regen if IPv4/6 cannot be retrieved 2016-03-23 13:22:53 +01:00
opi
4833b6b2b2 [enh] Use dedicated app list domain. 2016-03-23 08:53:44 +01:00
opi
b1921358a7 [fix] Documentation according to last commit (dynhost->dyndns). 2016-03-23 08:37:17 +01:00
Moul
1dd1ae483f [fix] use 'path' variable for '-a' option use explanation for 'ynh app install' cmd. 2016-03-21 14:09:51 +01:00
Moul
44fa9d9324 [enh] Add '-a' argument's usage example for app_install 2016-03-19 14:52:56 +01:00
Jérôme Lebleu
b69eff6f28 [fix] Update API route for hook_callback action 2016-03-19 10:36:39 +01:00
Jérôme Lebleu
95de4801a0 [fix] Remove useless API routes for some actions 2016-03-19 10:35:13 +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
f3768217d1 [enh] Redirect most of 404 to maindomain.tld/yunohost/sso 2016-03-15 00:07:36 +01:00
Julien Malik
749ff71590 [enh] Remove unused checkupdate and upgrade scripts 2016-03-14 08:58:06 +01:00
opi
b6ee72e412 [enh] Add diagnosis function. #39 2016-03-12 23:33:30 +01:00
Julien Malik
1300f4c0ca [fix] fix lintian script-not-executable 2016-03-12 00:20:52 +01:00
Julien Malik
02346776f2 [fix] follow up directory move /usr/share/yunohost/helpers 2016-03-12 00:15:15 +01:00
Julien Malik
5b7e16384e [enh] move /usr/share/yunohost/apps/helpers to /usr/share/yunohost/helpers since it became of more general use 2016-03-12 00:12:59 +01:00
Julien Malik
83f4c6a65f [fix] Validate IP addresses returned by ipX.yunohost.org 2016-03-11 11:34:03 +01:00
Julien Malik
dfd8780a10 [enh] Add helper for IP address validation 2016-03-11 11:31:43 +01:00
opi
7729d91e78 [fix] Cleaner Nginx redirection rules. Use permanent only when paths match. 2016-03-09 22:05:45 +01:00
opi
204e3ed3ff [fix] Use plain text 502 error page. 2016-03-09 21:51:00 +01:00
Julien Malik
5d5976d31e [fix] Workaround for the bad people who are not using IPv6 yet 2016-03-09 08:42:17 +01:00
Julien Malik
f1d5c1fe92 [fix] use ip6.yunohost.org, more reliable than ipv6.yunohost.org 2016-03-08 18:47:48 +01:00
Julien Malik
7241869985 [fix] use ipX.yunohost.org service to retrieve public IP 2016-03-08 16:57:43 +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