Commit graph

307 commits

Author SHA1 Message Date
Jérôme Lebleu
81c8ce1a54 [fix] Set default value for YNH_APP_BACKUP_DIR in ynh_backup helper 2016-05-29 23:34:08 +02:00
Jérôme Lebleu
185f29ba60 [fix] Harden backup hooks with set options and use ynh_backup 2016-05-29 23:33:28 +02:00
Jérôme Lebleu
0b5cc9d6b1 [fix] Rely on systemd is-active to check if mysql is running 2016-05-22 16:46:32 +02:00
Jérôme Lebleu
53573e50dc [fix] Hide cat error if tmp_backup_dir_file doesn't exist in conf_regen 2016-05-21 21:22:51 +02:00
Jérôme Lebleu
598cb11a98 [fix] Rely on conf file for current backend and create slapd.d 2016-05-21 17:58:20 +02:00
Jérôme Lebleu
78ceefd06a [fix] Save LDAP base before any conf changes in conf_regen hook 2016-05-21 17:58:20 +02:00
Jérôme Lebleu
8a587c7e6d [enh] Add ynh_apt wrapper helper and make use of it 2016-05-21 11:20:25 +02:00
opi
8763712575 [fix] Restart Nginx breaks web admin. Reload instead and fixes #330. 2016-05-18 11:04:29 +02:00
Jérôme Lebleu
8cfa9c3a18 [fix] Ensure that index.txt CA database exists at SSL regen-conf 2016-05-18 10:52:07 +02:00
Jérôme Lebleu
3cc8f52bc8 [fix] Use ps to check if MySQL is running in conf_regen hook (fix #232) 2016-05-12 23:57:48 +02:00
Jérôme Lebleu
f9f8673e76 [fix] Update data_home/mail backup hooks to use ynh_backup helper 2016-05-08 00:30:54 +02:00
Jérôme Lebleu
403b1d71a3 [fix] Prepend backup dir to relative path only and allow absolute in ynh_backup 2016-05-08 00:26:07 +02:00
Jérôme Lebleu
36a8a2d278 [enh] Try to remount directory as read-only in ynh_backup (wip #298) 2016-05-07 03:17:46 +02:00
Jérôme Lebleu
f065ac6baa [enh] Add ynh_die helper to print error message and exit 2016-05-06 20:30:37 +02:00
Jérôme Lebleu
be9d744f3c [enh] Create ynh_backup helper based on ynh_bind_or_cp 2016-05-06 20:26:14 +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
3339cd029a [enh] Remove client certificate verification from Dovecot and Postfix 2016-04-27 14:31:37 +02:00
Jérôme Lebleu
abe22d74d6 [fix] Remove legacy slapd file after directory creation at regen-conf 2016-04-27 11:13:50 +02:00
Jérôme Lebleu
da5aa1d4aa [fix] Do not set default value to mailbox-quota at user_update 2016-04-26 20:30:43 +02:00
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