Browse Source

Fix Issue: 34 Better Way To Update/Copy New Files

old-stable
Mitesh Shah 12 years ago
parent
commit
eab98c07f6
  1. 4
      install.sh
  2. 4
      usr/local/sbin/easyengine

4
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"

4
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"
}

Loading…
Cancel
Save