added root check and needrestart check
This commit is contained in:
@@ -9,10 +9,13 @@ echo '\033[35m
|
||||
\033[0m'
|
||||
echo "\033[35;1mEnable mail sending for php \033[0m"
|
||||
|
||||
# TODO check if root
|
||||
if [ "$EUID" -ne 0 ]
|
||||
then echo "Please run as root"
|
||||
exit
|
||||
fi
|
||||
|
||||
# http://www.sycha.com/lamp-setup-debian-linux-apache-mysql-php#anchor13
|
||||
sleep 3
|
||||
sleep 2
|
||||
apt-get --yes --force-yes install exim4
|
||||
echo "\033[35;1mConfiguring EXIM4 \033[0m"
|
||||
while [ "$configexim" != "y" ] && [ "$configexim" != "n" ]
|
||||
|
||||
Reference in New Issue
Block a user