mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-11-30 14:36:02 +03:00
11 lines
312 B
Bash
11 lines
312 B
Bash
|
#!/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'.
|