From a2af995254109797f3584b86837814c04e4c0d44 Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Tue, 13 Aug 2013 15:32:38 +0530 Subject: [PATCH] Better Fix For issue 41 --- install.sh | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/install.sh b/install.sh index d361afad..1307708c 100644 --- a/install.sh +++ b/install.sh @@ -129,11 +129,11 @@ then fi # Create Directory /usr/share/easyengine -if [ ! -d /usr/share/easyengine ] +if [ ! -d /usr/share/easyengine/nginx ] then # Create A Directory For EE Nginx Configurations - mkdir -p /usr/share/easyengine \ - || OwnError "Unable To Create Dir /usr/share/easyengine" + mkdir -p /usr/share/easyengine/nginx \ + || OwnError "Unable To Create Dir /usr/share/easyengine/nginx" fi # Install Easy Engine @@ -144,14 +144,6 @@ cp -a /tmp/easyengine/etc/bash_completion.d/ee /etc/bash_completion.d/ &>> /dev/ cp -a /tmp/easyengine/etc/easyengine/ee.conf /etc/easyengine/ &>> /dev/null || OwnError "Unable To Copy ee.conf File" # EE /usr/share/easyengine Files - -# Check If Directory Exist Or Not -if [ ! -d /usr/share/easyengine/nginx ] -then - mkdir /usr/share/easyengine/nginx/ - -fi - cp -a /tmp/easyengine/etc/nginx/* /usr/share/easyengine/nginx/ &>> /dev/null || OwnError "Unable To Copy Configuration Files " cp -a /tmp/easyengine/usr/share/easyengine/* /usr/share/easyengine/ &>> /dev/null || OwnError "Unable To Copy Configuration Files "