Browse Source

Fix dpkg -l running on every commands, Now its run with ee system commands only

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

18
usr/local/sbin/easyengine

@ -28,7 +28,16 @@ echo -e "\033[34mEasyEngine (ee) Execution Started [$(date)]\e[0m" &>> $INSTALLL
echo -e "\033[34mEasyEngine (ee) Command: $0 $@\e[0m" &>> $INSTALLLOG
# Capture Errors
OwnError()
{
echo -e "[ `date` ] \033[31m $@ \e[0m" | tee -ai $ERRORLOG
exit 101
}
# Check Auto Assume Yes Or No To Apt-Get
APTASSUMEYES ()
{
grep apt-get-assume-yes /etc/easyengine/ee.conf | grep -i true &>> /dev/null
if [ $? -eq 0 ]
then
@ -43,13 +52,6 @@ else
EEAPTGET="apt-get"
fi
fi
# Capture Errors
OwnError()
{
echo -e "[ `date` ] \033[31m $@ \e[0m" | tee -ai $ERRORLOG
exit 101
}
# Install Package Functions
@ -1136,6 +1138,8 @@ then
elif [ "$1" = "system" ]
then
# Check Auto Assume Yes Or No To Apt-Get
APTASSUMEYES
# Easy Engine Install
if [ "$2" = "install" ]

Loading…
Cancel
Save