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