Missing sudo

This commit is contained in:
Brian Zalewski 2023-11-05 05:42:17 +00:00
parent 072fb98dd0
commit 7dfdde96be

View file

@ -111,7 +111,7 @@ if command -v postfix > /dev/null; then
### Re-generate the /etc/aliases.db file ### Re-generate the /etc/aliases.db file
if [ -f /etc/aliases ]; then if [ -f /etc/aliases ]; then
logg info 'Ensuring proper permissions on the /etc/aliases file' && chown $(stat -c "%U:%G" /etc/sudoers) /etc/aliases logg info 'Ensuring proper permissions on the /etc/aliases file' && sudo chown $(stat -c "%U:%G" /etc/sudoers) /etc/aliases
logg info 'Generating Postfix aliases' && sudo postalias /etc/aliases logg info 'Generating Postfix aliases' && sudo postalias /etc/aliases
else else
logg warn '/etc/aliases is missing which is required for Postfix' logg warn '/etc/aliases is missing which is required for Postfix'