mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #496 from YunoHost/fix-mail-restore
[fix] Mail permission issue after restore
This commit is contained in:
commit
c3c6d39d2c
1 changed files with 1 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
backup_dir="$1/data/mail"
|
||||
|
||||
sudo cp -a $backup_dir/. /var/mail/ || echo 'No mail found'
|
||||
sudo chown -R vmail:mail /var/mail/
|
||||
|
||||
# Restart services to use migrated certs
|
||||
sudo service postfix restart
|
||||
|
|
Loading…
Add table
Reference in a new issue