Commit 37c128b9 authored by Paul Cammish's avatar Paul Cammish
Browse files

Updated permissions for config/dkim

parent c775bc5c
sympl-core (10.0.190628.0) stable; urgency=medium
* Adjusted permissions for config/dkim
-- Paul Cammish <sympl@kelduum.net> Fri, 28 Jun 2019 16:25:19 +0100
sympl-core (10.0.190625.0) stable; urgency=medium
* First update for sympl command line
......
......@@ -103,7 +103,7 @@ Require valid-user" > "${domain}/public/htdocs/stats/.htaccess"
if [ -d ${domain}/config ]; then
find "${domain}/config" \( -type f -o -type d \) \( ! -user sympl -o ! -group sympl \) ! -name 'dkim.key' ! -path '*ssl/sets*' -exec chown sympl:sympl {} \;
find "${domain}/config" \( -type f -o -type d \) \( ! -user sympl -o ! -group sympl \) ! -name 'dkim.key' ! -name 'dkim' ! -path '*ssl/sets*' -exec chown sympl:sympl {} \;
if [ -d "${domain}/config/ssl/sets" ]; then
find "${domain}/config/ssl/sets" \( ! -user sympl -o ! -group ssl-cert \) -exec chown sympl:ssl-cert {} \;
......@@ -113,8 +113,8 @@ Require valid-user" > "${domain}/public/htdocs/stats/.htaccess"
# The group doesn't exist if exim/sympl-mail is not installed.
if [ $( grep -c '^Debian-exim:' /etc/group ) == 1 ]; then
find "${domain}/config" -maxdepth 1 -type f -name 'dkim.key' \( ! -group Debian-exim -o ! -user sympl \) -exec chown sympl:Debian-exim {} \;
find "${domain}/config" -maxdepth 1 -type f -name 'dkim.key' ! -perm 640 -exec chmod 640 {} \;
find "${domain}/config" -maxdepth 1 -type f \( -name 'dkim' -o -name 'dkim.key' \) \( ! -group Debian-exim -o ! -user sympl \) -exec chown sympl:Debian-exim {} \;
find "${domain}/config" -maxdepth 1 -type f \( -name 'dkim' -o -name 'dkim.key' \) ! -perm 640 -exec chmod 640 {} \;
fi
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment