mirror of
https://github.com/serghey-rodin/vesta.git
synced 2024-11-21 04:50:09 -08:00
13 lines
341 B
Bash
Executable File
13 lines
341 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ -e "/etc/exim4/domains/" ]; then
|
|
for domain in $(ls /etc/exim4/domains/); do
|
|
domain_link=$(readlink /etc/exim4/domains/$domain)
|
|
chown Debian-exim:mail $domain_link
|
|
chown Debian-exim:mail /etc/exim4/domains/$domain/*
|
|
chown dovecot:mail /etc/exim4/domains/$domain/passwd
|
|
done
|
|
fi
|
|
|
|
exit
|