From 7181224de49cbfa7c47348e57018b4678e1019e6 Mon Sep 17 00:00:00 2001 From: "Chang, Chu-Kuan" Date: Fri, 11 Jun 2021 22:11:42 +0800 Subject: [PATCH] s for service name --- emailwiz | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/emailwiz b/emailwiz index e7ae8a2..160eaab 100755 --- a/emailwiz +++ b/emailwiz @@ -370,16 +370,16 @@ doas -u _dkimsign openssl genrsa -out "${dkimkey}" 2048 # Restart daemons # -for x in 'smtpd' 'dovecot' 'rspamd' 'redis'; do +for s in 'smtpd' 'dovecot' 'rspamd' 'redis'; do printf '%s: Enabling %s...' "${progname}" "$x" - if rcctl enable "$x" 2>&1 > /dev/null; then + if rcctl enable "$s" 2>&1 > /dev/null; then printf ' Done\n' else printf ' Failed\n' fi printf '%s: Restarting %s...' "${progname}" "$x" - if rcctl restart "$x" 2>&1 > /dev/null; then + if rcctl restart "$s" 2>&1 > /dev/null; then printf ' Done\n' else printf ' Failed\n'