Browse Source

Optimise system comamnd dont check/run installation stuff on ee system status/start/stop/restart command

old-stable
Mitesh Shah 11 years ago
parent
commit
fa1e86c866
  1. 34
      usr/local/sbin/easyengine

34
usr/local/sbin/easyengine

@ -138,7 +138,16 @@ UPDATEAPT()
INSTALLNGINX()
{
# Install Nginx
# Define Nginx Package & Install IT
if [ "$LINUX_DISTRO" == "Ubuntu" ]
then
NGINXPACKAGE=nginx-custom
elif [ "$LINUX_DISTRO" == "Debian" ]
then
NGINXPACKAGE=nginx-full
fi
echo -e "\033[34mInstalling Nginx, Please Wait...\e[0m"
$EEAPTGET install $NGINXPACKAGE || OwnError "Unable To Install Nginx"
}
@ -1384,24 +1393,13 @@ then
elif [ "$1" = "system" ]
then
# Check Auto Assume Yes Or No To Apt-Get
APTASSUMEYES
# Define Nginx Package
if [ "$LINUX_DISTRO" == "Ubuntu" ]
then
NGINXPACKAGE=nginx-custom
elif [ "$LINUX_DISTRO" == "Debian" ]
then
NGINXPACKAGE=nginx-full
fi
# Easy Engine Install
if [ "$2" = "install" ]
then
# Check Auto Assume Yes Or No To Apt-Get
APTASSUMEYES
if [ "$3" = "nginx" ]
then
@ -1581,6 +1579,9 @@ then
# Easy Engine Remove
elif [ "$2" = "remove" ]
then
# Check Auto Assume Yes Or No To Apt-Get
APTASSUMEYES
if [ "$3" = "nginx" ]
then
@ -1659,6 +1660,9 @@ then
# Easy Engine Purge
elif [ "$2" = "purge" ]
then
# Check Auto Assume Yes Or No To Apt-Get
APTASSUMEYES
if [ "$3" = "nginx" ]
then

Loading…
Cancel
Save