Commit graph

109 commits

Author SHA1 Message Date
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
8f7d75f5ff [fix] Don't fail dnsmasq regen if IPv4/6 cannot be retrieved 2016-03-23 13:22:53 +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
83f4c6a65f [fix] Validate IP addresses returned by ipX.yunohost.org 2016-03-11 11:34:03 +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
Julien Malik
735053ad14 [fix] ip.yunohost.org is https now 2016-03-08 15:38:06 +01:00
Julien Malik
81fde7482d [enh] first stop rspamd.service, then start rspamd.socket 2016-03-08 15:31:18 +01:00
Julien Malik
a072d4109e [enh] slaptest outputs on stderr, so generates a WARNING. make it quiet 2016-03-08 15:22:44 +01:00
Julien Malik
16ba0b9831 [enh] use lowercase to be consistent with the service name 2016-03-08 14:40:28 +01:00
Julien Malik
051293e288 [fix] if we reached end of script, exit with success, instead of the last command result 2016-03-08 14:32:05 +01:00
Julien Malik
18c1a7d506 [enh] rm -f ignore non existent files 2016-03-08 14:29:15 +01:00
Julien Malik
0eb2a9b624 [enh] remove useless '|| true'. set -e does not exit for complex commands 2016-03-08 14:28:53 +01:00
Julien Malik
83c881f5b4 [enh] remove failure in the script 2016-03-08 14:16:46 +01:00
Julien Malik
64949cea38 [enh] do not fail in this section of the script 2016-03-08 14:15:35 +01:00
Julien Malik
4f8fcd3251 [enh] beautify script 2016-03-08 14:14:15 +01:00
Julien Malik
c4d5f664d1 [fix] do not output warnings when services are already uninstalled/disabled (fix #215) 2016-03-08 14:12:41 +01:00
Julien Malik
479a0d0abf [enh] no need for && here 2016-03-08 14:12:41 +01:00
Julien Malik
0899ca055e [fix] rspamd/rmilter now uses redis-server instead of memcached 2016-03-08 14:12:41 +01:00
Julien Malik
0d49e8a24f [fix] remove useless whitespace 2016-03-08 14:12:41 +01:00
julienmalik
9d6f9d4c07 Merge pull request #121 from infertux/nginx_server_tokens
[fix] Don't emit Nginx version
2016-02-29 12:11:20 +01:00
Cédric Félizard
fe26478e03 Don't emit Nginx version
http://nginx.org/en/docs/http/ngx_http_core_module.html#server_tokens
2016-02-29 10:39:13 +00:00
julienmalik
b20bd7311d [fix] misssing sudo when removing files in /etc/nginx 2016-02-25 12:18:40 +01:00
julienmalik
8196717e96 [fix] missing brackets for testing saferemove output 2016-02-25 12:18:01 +01:00
julienmalik
e93b036830 [fix] access to /var/lib/metronome/ needs sudo permissions
During a domain removal, I hit this error :

2016-02-25 11:52:31,702 INFO     yunohost.hook <lambda> - [4615.1] + rm -rf /var/lib/metronome/{{domain}}
2016-02-25 11:52:31,705 WARNING  yunohost.hook <lambda> - [4615.1] rm: cannot remove ‘/var/lib/metronome/{{domain}}’: Permission denied
2016-02-25 11:52:31,803 ERROR    yunohost.hook hook_callback - [4615.1] Script execution failed
2016-02-25 12:03:54 +01:00
Jérôme Lebleu
ec590bdef8 [fix] Restart the service if reloading fails in conf_regen (bugfix #195) 2016-02-21 18:11:27 +01:00
Jérôme Lebleu
3eea7bcb48 [fix] Start socket and stop rspamd/rmilter services in conf_regen (bugfix #196) 2016-02-21 17:58:08 +01:00
zamentur
ea5ffb8498 Merge remote-tracking branch 'upstream/unstable' into unstable
Conflicts:
	data/hooks/restore/05-conf_ldap
2016-02-08 22:52:28 +01:00
zamentur
b2a2a05598 [fix] Slapd.d directory was empty after restore 2016-02-08 22:41:55 +01:00
zamentur
b70cff29f7 [fix] Backup/restore without postinstall failed 2016-02-08 22:39:17 +01:00
Jérôme Lebleu
82185b86d5 [fix] Remove udisks-glue from conf_regen and services
udisks-glue has been removed from recommended packages by d6b0c357 since
it's no longer maintained - and also out-dated; the conf_regen hook refers
to an unavailable service.
Note that even it's not really used in YunoHost yet, it has been replaced
by udisks2 as suggested package.
2016-01-27 23:40:38 +01:00
Jérôme Lebleu
770de28f75 [enh] Check the slapd config file at first in conf_regen 2016-01-27 19:45:56 +01:00
Jérôme Lebleu
e5095d0185 [fix] Remove old dbconfig settings from slapd.conf 2016-01-27 18:57:21 +01:00
Jérôme Lebleu
a5568311db [fix] Save LDAP database when switching to MDB (bugfix #169)
As Wheezy is not supported anymore by next YunoHost releases, the slapd.conf
now comes with MDB as backend.
The LDAP database is also saved before switching to MDB backend and imported
after the configuration re-generation to prevent data loss.
2016-01-27 18:05:04 +01:00
Jérôme Lebleu
141d704a04 [fix] Review LDAP backup and restore hooks
The configuration is now saved using slapcat instead of trying to generate
it from slapd.conf - which generally fail at restoration.
Also, a backup of configuration and database is made before the restoration,
which allows to return to a "working" state if it fails.
2016-01-23 19:15:13 +01:00
Jérôme Lebleu
dbe58e9625 [enh] Update rmilter hook and dependencies for 1.7 release 2016-01-19 22:55:57 +01:00
Jérôme Lebleu
e16b560626 [fix] Correct condition syntax in metronome conf_regen hook 2016-01-19 18:52:29 +01:00
Jérôme Lebleu
a1ab3d5811 Merge pull request #118 from sbadia/unstable-grepv
hooks: Use a more elegant grep command for mysql process check
2015-12-31 18:54:26 +01:00
Jérôme Lebleu
4b4d91c6d3 [fix] Use rmilter as a socket-activated service 2015-12-31 13:00:35 +01:00
Sebastien Badia
aba6170054 hooks: Use a more elegant grep command for mysql process check 2015-12-29 00:19:05 +01:00
Jérôme Lebleu
13dd9b4f89 [fix] Use --output-as instead of deprecated options 2015-11-30 18:35:41 +01:00
julienmalik
8362bf2ec0 [fix] Do not exit at first service which can't be stopped 2015-11-16 12:33:07 +01:00
julienmalik
eae6ecc9c0 [fix] Log for rmilter instead of rspamd 2015-11-16 11:57:16 +01:00
kload
62c7079783 [fix] Unexpected warnings comming from stderr 2015-11-15 11:07:27 +01:00
kload
e6cfab1f6a [fix] Do not remove the global_script directory 2015-11-15 00:55:00 +01:00
kload
947082db06 [fix] Restart Dovecot at the end of Rspamd configuration script
Dovecot was not taking Rspamd sieve script into account without it.
2015-11-14 18:48:04 +01:00
kload
08621f8b32 [fix] Remove spamassassin CRON as well 2015-11-01 10:24:33 +01:00