added root check and needrestart check

This commit is contained in:
Bachir Soussi Chiadmi
2018-04-07 11:23:02 +02:00
parent 0e81a4ab11
commit c1eefcd6fc
8 changed files with 49 additions and 6 deletions

View File

@@ -8,14 +8,15 @@ echo '\033[35m
/_/\___/_/ /_/ /_/ .___/
/_/
\033[0m'
echo "\033[35;1mLEMP server (Nginx Mysql Php) \033[0m"
sleep 3
echo "\033[35;1mLEMP server (Nginx Mysql Php-fpm) \033[0m"
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
sleep 2
echo '\033[35m
__ ___ __
/ |/ /_ ___________ _/ /