From 7dfdde96be374862661a3e9fb722274472b70d1a Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Sun, 5 Nov 2023 05:42:17 +0000 Subject: [PATCH] Missing sudo --- .../universal/run_onchange_after_05-postfix.sh.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/.chezmoiscripts/universal/run_onchange_after_05-postfix.sh.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_05-postfix.sh.tmpl index 87a16987..38060d94 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_05-postfix.sh.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_05-postfix.sh.tmpl @@ -111,7 +111,7 @@ if command -v postfix > /dev/null; then ### Re-generate the /etc/aliases.db file 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 else logg warn '/etc/aliases is missing which is required for Postfix'