mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Backup config folder while testing (#901)
* Backup whole config while testing
This commit is contained in:
parent
68aaeba59f
commit
ad40c00546
8
Makefile
8
Makefile
|
@ -203,7 +203,7 @@ generate-accounts-after-run:
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|
||||||
fixtures:
|
fixtures:
|
||||||
cp config/postfix-accounts.cf config/postfix-accounts.cf.bak
|
cp -r config config.bak
|
||||||
# Setup sieve & create filtering folder (INBOX/spam)
|
# Setup sieve & create filtering folder (INBOX/spam)
|
||||||
docker cp "`pwd`/test/config/sieve/dovecot.sieve" mail:/var/mail/localhost.localdomain/user1/.dovecot.sieve
|
docker cp "`pwd`/test/config/sieve/dovecot.sieve" mail:/var/mail/localhost.localdomain/user1/.dovecot.sieve
|
||||||
docker exec mail /bin/sh -c "maildirmake.dovecot /var/mail/localhost.localdomain/user1/.INBOX.spam"
|
docker exec mail /bin/sh -c "maildirmake.dovecot /var/mail/localhost.localdomain/user1/.INBOX.spam"
|
||||||
|
@ -259,9 +259,9 @@ clean:
|
||||||
mail_postscreen \
|
mail_postscreen \
|
||||||
mail_override_hostname
|
mail_override_hostname
|
||||||
|
|
||||||
@if [ -f config/postfix-accounts.cf.bak ]; then\
|
@if [ -d config.bak ]; then\
|
||||||
rm -f config/postfix-accounts.cf ;\
|
sudo rm -rf config ;\
|
||||||
mv config/postfix-accounts.cf.bak config/postfix-accounts.cf ;\
|
mv config.bak config ;\
|
||||||
fi
|
fi
|
||||||
-sudo rm -rf test/onedir \
|
-sudo rm -rf test/onedir \
|
||||||
test/config/empty \
|
test/config/empty \
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
user1@localhost.localdomain:{SHA512-CRYPT}$6$pnBf.UoYuOJ0EcxA$AY.2iRKsDftvCs5u2u72jgKcQHdN/tLguweV08YuBNaZGN4Xn9N8ES0NPxErqRR433vqBFUMmOiVNVF3JgMpB.:5000:5000::/var/mail/localhost.localdomain/user1::
|
|
||||||
user2@otherdomain.tld:{SHA512-CRYPT}$6$xkJ0klS8NqpoGeVB$jKmC1YE03GeLtrcwgnQ14AG.nYm8Vj0l0BqUVM.VQ3MVBwYoooJL7JS7czR17gfwM9SRB/311OP8nF/GpNKr5.:5000:5000::/var/mail/otherdomain.tld/user2::
|
|
Loading…
Reference in a new issue