From e72a24a194fa0ea2ea9fb4fb2ce858182bc47c1d Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Tue, 9 Oct 2012 20:43:17 +0530 Subject: [PATCH] Install Postfix --- setup/install-postfix.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 setup/install-postfix.sh diff --git a/setup/install-postfix.sh b/setup/install-postfix.sh new file mode 100755 index 00000000..2758b7b5 --- /dev/null +++ b/setup/install-postfix.sh @@ -0,0 +1,20 @@ +#!/bin/bash + + + +# Capture Errors +OwnError() +{ + #echo $@ >&2 + clear + echo -e "[ $0 ][ `date` ] \033[31m $@ \e[0m" | tee -ai /var/log/easyengine/error.log + exit 100 +} + + +# Update The APT Cache +sudo apt-get update || OwnError "Unable To Update APT Cache :(" + +# Install Postfix +sudo apt-get -y install postfix || OwnError "Unable To Install Postfix :(" +