Mitesh Shah 12 years ago
parent
commit
5fb402ebf5
  1. 8
      usr/local/sbin/easyengine

8
usr/local/sbin/easyengine

@ -441,6 +441,11 @@ NGINXSYMBOLICLINK()
EEDOMAINSETUP()
{
#Check The Nginx Configuration Exist For $DOMAIN
ls /etc/nginx/sites-available/$DOMAIN &> $ERRORLOG
if [ $? -ne 0 ]
then
# Creating Website $DOMAIN
echo -e "\033[34m Creating $DOMAIN, Please Wait... \e[0m"
sed "s/example.com/$DOMAIN/g" \
@ -461,6 +466,9 @@ EEDOMAINSETUP()
ln -s /var/log/nginx/$DOMAIN.access.log /var/www/$DOMAIN/logs/access.log \
&& ln -s /var/log/nginx/$DOMAIN.error.log /var/www/$DOMAIN/logs/error.log \
|| OwnError "Unable To Create Symbolic Link For $DOMAIN Logs"
else
echo -e "[ `date` ] \033[31m $DOMAIN Already Exist \e[0m" | tee -ai $ERRORLOG
fi
}
EEWPSETUP()

Loading…
Cancel
Save