diff --git a/splitgpg2tests/tests.py b/splitgpg2tests/tests.py index 44bb5b0..f781c72 100644 --- a/splitgpg2tests/tests.py +++ b/splitgpg2tests/tests.py @@ -370,7 +370,7 @@ def setUp(self): # IMAP configuration self.imap_pw = "pass" - if self.frontend.run("grep -q mail_driver /etc/dovecot/conf.d/10-mail.conf", wait=True) == 0: + if self.frontend.run("grep -rq mail_driver /etc/dovecot/", wait=True) == 0: self.frontend.run( 'echo "mail_driver = maildir\nmail_path = ~/Mail\nmail_inbox_path = ~/Mail\nuserdb static {\n driver = passwd\n}\npassdb static {\n driver = static\n password=pass\n}" |\ tee /etc/dovecot/conf.d/100-mail.conf', wait=True, user="root")