Commit graph

288 commits

Author SHA1 Message Date
Jérôme Lebleu
564e2c6503 [fix] Use SSL certificate of main domain in Dovecot and Postfix conf 2016-04-25 23:01:46 +02:00
Jérôme Lebleu
1430fa133a [doc] Be more verbose when reset the MySQL root password 2016-04-25 15:26:11 +02:00
Jérôme Lebleu
a3b6a73709 [fix] Correct rmilter.socket installation path in conf_regen hook 2016-04-22 15:22:43 +02:00
Jérôme Lebleu
31c8aabe86 [fix] Set proper mode when using install in conf_regen hooks 2016-04-22 15:17:56 +02:00
Jérôme Lebleu
689b390342 [fix] Restore current_host and use only one backup path for it 2016-04-22 14:54:41 +02:00
Jérôme Lebleu
5af988052d [fix] Restore MySQL password for root user (bugfix #194) 2016-04-22 14:36:21 +02:00
Jérôme Lebleu
0065a7512d [enh] Force new MySQL password set if it's unknown at regen-conf 2016-04-22 12:21:19 +02:00
Jérôme Lebleu
13ed77a6ca [fix] Set default values for force and dry_run in conf_regen hooks 2016-04-22 12:18:25 +02:00
Moul
3ecd22c372 [fix] use '-p' option of mkdir command to check '/etc/dkim' folder exist at its creation. 2016-04-22 00:04:26 +02:00
Jérôme Lebleu
4912a2afae [fix] Init LDAP with package installation to fix ynh post-install 2016-04-21 22:59:36 +02:00
Jérôme Lebleu
0c609f5709 [fix] Create /etc/dkim if not exists in rmilter conf_regen hook 2016-04-21 22:57:29 +02:00
Jérôme Lebleu
cdf3c13bf5 [enh] Add a dry-run option for service_regen_conf 2016-04-19 20:52:45 +02:00
Jérôme Lebleu
f96b2afca9 [fix] Remove useless email_legacy conf_regen hook
The file `/etc/yunohost/ervices.yml` is now updated thanks to 0bacf65,
allowing to add new services and remove old ones.
Moreover, while migrating to new YunoHost version, the user should execute
`apt-get autoremove` to remove old packages such as spamassassin, amavis and
postgrey. This sounds more reliable and allows to get rid of this useless hook
which would be executed for ever, trying to stop already removed services.
2016-04-17 17:03:10 +02:00
Jérôme Lebleu
dcdf852602 [enh] Update services.yml in yunohost conf_regen and update its content 2016-04-17 16:59:49 +02:00
Jérôme Lebleu
0bacf65d9c Merge branch 'unstable' into regen-conf-enh 2016-04-17 15:47:49 +02:00
Jérôme Lebleu
c1115fc736 [fix] Rename 'deprecated' option to 'deprecated_alias' in actionsmap 2016-04-16 21:33:48 +02:00
Jérôme Lebleu
2f1bf014e8 [cli] Deprecate app_initdb action in flavour of helpers 2016-04-16 21:31:27 +02:00
Jérôme Lebleu
d24cd494f3 [fix] Update package first install and call some conf_regen hooks with init 2016-04-16 19:32:18 +02:00
Jérôme Lebleu
e8502f06c4 [fix] Remove old service_safecopy/saferemove from the actionsmap 2016-04-16 18:48:50 +02:00
Jérôme Lebleu
6c3de740aa [enh] Restart services as needed only in conf_regen hooks 2016-04-16 18:36:20 +02:00
Jérôme Lebleu
b4e50f8af6 [enh] Ensure that mysql is running and restart as needed in conf_regen hook 2016-04-16 18:24:41 +02:00
Jérôme Lebleu
b3bb2c512d [enh] Compile sieve script as needed and fix permissions in rspamd conf_regen 2016-04-16 18:20:51 +02:00
Jérôme Lebleu
6c7e202321 [enh] Compile sieve script as needed and fix permissions in dovecot conf_regen 2016-04-16 18:05:41 +02:00
Jérôme Lebleu
0d30ef6277 [fix] Compare current with new LDAP backend and process as needed in conf_regen 2016-04-16 17:52:45 +02:00
Jérôme Lebleu
bade8c5649 [fix] Be less restrictive on domain name in metronome conf_regen hook 2016-04-16 16:46:22 +02:00
Jérôme Lebleu
d851237dc2 [enh] Update nginx conf_regen hook and simplify plain conf files copy 2016-04-16 16:43:13 +02:00
Jérôme Lebleu
f019188a90 [enh] Update mysql conf_regen hook and use helpers for password generation 2016-04-16 16:07:24 +02:00
Jérôme Lebleu
cdd36570f8 [fix] Rename metronome template conf files 2016-04-16 15:20:05 +02:00
Jérôme Lebleu
41f9b2c76c [enh] Update dnsmasq conf_regen hook and use loopback address by default 2016-04-16 15:17:22 +02:00
Jérôme Lebleu
8269788172 [fix] Typo and variable name fixes in conf_regen hooks 2016-04-16 14:41:54 +02:00
Jérôme Lebleu
047015ef61 [enh] Update rmilter and rspamd conf_regen hooks 2016-04-16 14:37:20 +02:00
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