Commit graph

533 commits

Author SHA1 Message Date
Laurent Peuch
d32ab073ba [mod] removes status key from /etc/yunohost/service.yml for generic approach 2018-05-11 04:21:24 +02:00
Alexandre Aubin
2f0db53d8c We have mariadb-server-10.1 now 2018-05-08 19:01:25 +02:00
Alexandre Aubin
3f64374f9d Move DKIM from rmilter to rspamd 2018-05-02 18:04:15 +02:00
Alexandre Aubin
34451babe3 Fall back to 1024 for the DKIM key size because nsupdate is stupid 2018-05-02 18:04:15 +02:00
Alexandre Aubin
a05d7b1e20 Fixes in DKIM generation in rspamd regen-conf 2018-05-02 18:04:15 +02:00
root
291c8747f1 Adding DKIM key generation back from rmilter to rspamd 2018-05-02 18:04:15 +02:00
Alexandre Aubin
f25a487c19 nscd service is now unscd 2018-05-02 18:04:15 +02:00
Alexandre Aubin
efc201c9b0 Remove messy openssl output during package install 2018-05-02 18:04:15 +02:00
Alexandre Aubin
b2648584ab Updating fail2ban conf 2018-05-02 18:04:15 +02:00
Alexandre Aubin
bde8b02fef Removing some rmilter-related conf 2018-05-02 18:04:15 +02:00
Alexandre Aubin
da973e69a7 Getting rid of systematic error message during install 2018-05-02 18:04:15 +02:00
Alexandre Aubin
a1831ce0f8 Manage etckeeper.conf to make etckeeper quiet 2018-01-26 22:40:33 +01:00
ljf (zamentur)
d3eeb4bbc7 [enh] Refactor backup management to pave the way to borg (#275)
* [enh] Use a csv to list file to backup
* [enh] Use csv python module
* [wip] Backup refactoring
* [wip] Backup class refactoring
* [enh] Add archivemount dependencies
* [wip] Restore refactoring
* [fix] Some error in this refactoring
* [fix] Missing backup key translation
* [fix] Bad YNH_CWD in hook backup
* [fix] App backup part was broken
* [fix] Restore operation was broken
* [fix] No compressed backup
* [fix] Don't commit backup path into csv if app backup fail
* [fix] Default backup collect_dir should be in tmp subdir
* [enh] Simplify a copy code
* [enh] Build backup info from properties
* [enh] Improve comments presentation
* Adding first tests for backup/restore
* Adding more backup/restore app test scenario
* [enh] Separate BackupMethods in distinct class
* Adding test of restoring a wordpress archive from 2.4
* [fix] Be able to delete backup link too
* [fix] Bad internationalization key
* [fix] Edge case with empty mysql pwd restore
* [fix] Unset var in restore
* [fix] Edge case with empty mysql pwd restore
* Adding test for backup crash handling
* Cleaning tests + checking tmp dir is empty
* [fix] Missing tmp in backup path
* [fix] Error on reading backup csv
* Adding test of failed restore
* Adding tests when not enough space available
* Simplifying tests using markers
* [fix] ynh backup/restore helpers with only one arg
* [fix] Unmount subdir with python
* [enh] Improve backup size management
* [fix] None object in backup
* [enh] Remove dead code
* [fix] Missing locales
* [enh] Adapat test about needed space
* [fix] Pass some test
* [enh] Remove dead code
* [enh] Pass all test
* [enh] Adding test that backups contains what's expected
* Fix typo in tests
* [fix] Bad documentation
* [enh] Add comment
* [enh] Use len in place of implicit {} == False
* [enh] Add comment
* [enh] Add comment
* [enh] Refactoring on _collect_app_files
* Adding skeleton for remaining tests to write
* [enh] Use a csv to list file to backup
* [enh] Use csv python module
* [wip] Backup refactoring
* [wip] Backup class refactoring
* [enh] Add archivemount dependencies
* [wip] Restore refactoring
* [fix] Some error in this refactoring
* [fix] Missing backup key translation
* [fix] Bad YNH_CWD in hook backup
* [fix] App backup part was broken
* [fix] Restore operation was broken
* [fix] No compressed backup
* [fix] Don't commit backup path into csv if app backup fail
* [fix] Default backup collect_dir should be in tmp subdir
* [enh] Simplify a copy code
* [enh] Build backup info from properties
* [enh] Improve comments presentation
* Adding first tests for backup/restore
* Adding more backup/restore app test scenario
* [enh] Separate BackupMethods in distinct class
* Adding test of restoring a wordpress archive from 2.4
* [fix] Be able to delete backup link too
* [fix] Bad internationalization key
* [fix] Edge case with empty mysql pwd restore
* [fix] Unset var in restore
* [fix] Edge case with empty mysql pwd restore
* Adding test for backup crash handling
* Cleaning tests + checking tmp dir is empty
* [fix] Missing tmp in backup path
* [fix] Error on reading backup csv
* Adding test of failed restore
* Adding tests when not enough space available
* Simplifying tests using markers
* [fix] ynh backup/restore helpers with only one arg
* [fix] Unmount subdir with python
* [enh] Improve backup size management
* [fix] None object in backup
* [enh] Remove dead code
* [fix] Missing locales
* [enh] Adapat test about needed space
* [fix] Pass some test
* [enh] Remove dead code
* [enh] Pass all test
* [enh] Adding test that backups contains what's expected
* Fix typo in tests
* [fix] Bad documentation
* Adding skeleton for remaining tests to write
* [enh] Add comment
* [enh] Use len in place of implicit {} == False
* [enh] Add comment
* [enh] Add comment
* [enh] Refactoring on _collect_app_files
* [fix] Replay e1a507 deleted by rebase
* [fix] ynh_restore helper
* Renaming 'hooks' terminology to 'system' where it makes sense
* Propagating new --system/--ignore-system to actionmap
* Adding more tests + clarifying some functions and messages
* Factorize out the definition and validation of backup/restore targets
* Add missing key
* Use list comprehension instead of dirty loops
* [enh] Add docstring in BackupManager
* [enh] Add docstring on BackupMethod(s)
* [fix] Remove deadcode
* [fix] Remove debug message
* [enh] Add comments on RestoreManager
* [enh] Add comments on backup constants
* Adding a proper report/result for each backup target
* Skipping tests not implemented yet
* Fixing little mistake from merging
* [fix] Support different fs or archivemount error
* [enh] Backup helpers readability
* [fix] Copy backup method
* [fix] Deprecated warning always displayed
* [enh] Retrieve info.json file inside tar.gz
* Trying to reorganize methods with sections for readability
* [enh] Support archivemount failure
* [fix] Missing env var for system part restore helpers
* Clarifying disk usage / free space computation
* [enh] Refactoring around backup set_targets()
* Clarifying structure of backup_create and backup_restore
* Move RestoreManager between BackupManager and BackupMethods
* [fix] Missing locales
* [fix] System part restore if archivemount failure
* [enh] Extract all conf instead of specific code
* [fix] Other output directory (compressed archive)
* [enh] Add test for uncompressed backup
* [fix] Compressed backup in an existing output directory
* [fix] Return size for retro-compatibility
* [fix] Mountpoint check aborting script when called with -eu
* [fix] Avoid failure test with set -eu
* [fix] locale strings missing/bad arguments
* Check free space before mount
* [fix] ynh_restore_helpers with existing archive path
* Adding skeletons for moar tests
* Fixing some weird bug in _get_archive_path
* Adding a regen-conf at the end of system restore
* Adding tests of system restore from 2.4
* Have a class dedicated to target management
* Cleaning tests
* Misc formatting
* More meaningful variable names inside app restore
* [fix] can't call source ../settings/scripts/_common.sh in app backup
* [fix] ynh_install_app_dependencies is not compatible with readonly mount
* [fix] Remove temporary file
2017-06-02 13:41:16 +02:00
Alexandre Aubin
3f953699eb [fix] Unexpected comment line ending up in /etc/resolv.dnsmasq.conf (#312) 2017-05-14 16:51:29 +02:00
Alexandre Aubin
7718ed6000 [fix] Properly manage resolv.conf, dns resolvers and dnsmasq (#290)
* Adding resolvconf as dependency
* Adding new templates for dnsmasq
* Adding libnss-myhostname as dependency
* tableflip.gif
* Moar tableflip.gif :/
* Tweaking dns resolvers used by dnsmasq
* Adding Aquilenet + moving FDN back to top
* Clarifying how the resolv.dnsmasq.conf template is used
* Moving nsswitch force regen back to postinstall
2017-04-18 00:37:21 +02:00
opi
ce472696f5 [enh] ip6.yunohost is now served through HTTPS. 2017-03-22 08:31:47 +01:00
Laurent Peuch
50188ae265 [fix] only remove a service if it is setted to null 2017-03-20 01:49:27 +01:00
opi
1c2de37f63 [fix] Update Rmilter configuration to fix dkim signing. 2017-02-18 14:52:33 +01:00
ljf
2cf4768aa1 [fix] Postfix can't access rmilter socket due to chroot 2017-01-09 15:34:52 +01:00
ljf
d4e4d01b4f [fix] Remove residual rmilter socket file 2017-01-09 13:37:34 +01:00
ljf
b419c8c564 [fix] new rspamd version replace rspamd.socket with rspamd.service 2017-01-04 13:06:13 +01:00
Laurent Peuch
92ec847496 Merge pull request #175 from YunoHost/dovecot_extensible_configuration
[enh] Dovecot extensible configuration
2016-12-11 23:43:07 +01:00
Julien Malik
ea17e9fa80 [enh] Allow for dovecot configuration extensions 2016-09-09 17:12:50 +02:00
Laurent Peuch
9a66a00278 [fix] wait for admin user to be available after a slapd regen-conf, this fix install on slow hardware/vps 2016-09-04 09:12:37 +02:00
Jérôme Lebleu
8351b8e23d [fix] Set /var/mail folder owners and permissions 2016-06-12 13:23:23 +02:00
opi
751e221406 [enh] Use 'source' instead of dot notation, more explicit. 2016-05-30 10:49:50 +02:00
opi
75b9cbc7f3 [enh] Comments will save us. 2016-05-30 09:17:25 +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
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
abe22d74d6 [fix] Remove legacy slapd file after directory creation at regen-conf 2016-04-27 11:13:50 +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