From eab98c07f64e0d665f3b8d130af208d8ed4e61ae Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Mon, 19 Aug 2013 16:47:05 +0530 Subject: [PATCH] Fix Issue: 34 Better Way To Update/Copy New Files --- install.sh | 4 ++-- usr/local/sbin/easyengine | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 1307708c..86730079 100644 --- a/install.sh +++ b/install.sh @@ -144,8 +144,8 @@ 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 " -cp -a /tmp/easyengine/usr/share/easyengine/* /usr/share/easyengine/ &>> /dev/null || OwnError "Unable To Copy Configuration Files " +cp -au /tmp/easyengine/etc/nginx/* /usr/share/easyengine/nginx/ &>> /dev/null || OwnError "Unable To Copy Configuration Files " +cp -au /tmp/easyengine/usr/share/easyengine/* /usr/share/easyengine/ &>> /dev/null || OwnError "Unable To Copy Configuration Files " # EE Command cp -a /tmp/easyengine/usr/local/sbin/easyengine /usr/local/sbin/ &>> /dev/null || OwnError "Unable To Copy EasyEngine Command" diff --git a/usr/local/sbin/easyengine b/usr/local/sbin/easyengine index 356c0647..e0915d05 100755 --- a/usr/local/sbin/easyengine +++ b/usr/local/sbin/easyengine @@ -99,11 +99,11 @@ COMMONNGINX() fi # Update Nginx Configuration Files - cp -vi /usr/share/easyengine/nginx/conf.d/* /etc/nginx/conf.d/ \ + cp -iuv /usr/share/easyengine/nginx/conf.d/* /etc/nginx/conf.d/ \ || OwnError "Unable To Copy Nginx Configuration Files" # Update Nginx Common Files - cp -vi /usr/share/easyengine/nginx/common/* /etc/nginx/common/ \ + cp -iuv /usr/share/easyengine/nginx/common/* /etc/nginx/common/ \ || OwnError "Unable To Copy Nginx Common Files" }