From 58d32e5e6eae4aca2d5334d660402012fed8ebb5 Mon Sep 17 00:00:00 2001 From: Manish Songirkar Date: Thu, 8 Aug 2013 11:59:17 +0530 Subject: [PATCH] Fix https://github.com/rtCamp/easyengine/issues/41 --- install.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 50fa01e2..e1de1e43 100644 --- a/install.sh +++ b/install.sh @@ -144,7 +144,15 @@ 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 -cp -a /tmp/easyengine/etc/nginx/ /usr/share/easyengine/nginx/ &>> /dev/null || OwnError "Unable To Copy Configuration 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 " # EE Command @@ -177,4 +185,4 @@ echo # Display Success Message echo -e "\033[34m Easy Engine Installed Successfully \e[0m" | tee -ai $INSTALLLOG echo -e "\033[34m Easy Engine Help: https://github.com/rtCamp/easyengine/wiki \e[0m" | tee -ai $INSTALLLOG -echo \ No newline at end of file +echo