added then statement to echo config done

This commit is contained in:
2023-08-26 09:27:43 -05:00
parent f029c15402
commit a6ae484e9b
2 changed files with 4 additions and 0 deletions

View File

@@ -25,4 +25,6 @@ if [ $isInFile -eq 0 ]
echo "" >> /etc/postfix/main.cf
postfix reload
echo "This is a test message sent from postfix on $(hostname)" | mail -s "Test Email from $(hostname)" akanealw@gmail.com
else
echo "Email already configured."
fi