mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-11-23 03:26:02 +03:00
Added "ResetMail.sh" to handle refreshing the test inboxes before and between tests
This commit is contained in:
parent
2a1c46e48d
commit
63a358bcfa
11
tests/vagrant/ResetMail.sh
Normal file
11
tests/vagrant/ResetMail.sh
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo 'Refreshing the test mailbox- this could take a minute.'
|
||||||
|
|
||||||
|
sudo stop dovecot
|
||||||
|
[ -d "/home/testuser/Maildir" ] && sudo rm -R /home/testuser/Maildir
|
||||||
|
sudo cp -Rp /resources/Maildir /home/testuser/
|
||||||
|
sudo chown -R testuser:testuser /home/testuser/Maildir
|
||||||
|
sudo start dovecot
|
||||||
|
|
||||||
|
echo 'Test mailbox restored'.
|
Loading…
Reference in New Issue
Block a user