Browse Source

Fixed ee site edit command

old-stable
Mitesh Shah 11 years ago
parent
commit
e401f3ed76
  1. 4
      usr/local/sbin/easyengine
  2. 2
      usr/share/easyengine/nginx/22222

4
usr/local/sbin/easyengine

@ -275,7 +275,7 @@ COMMONNGINX()
EEMD5SUM
# EasyEngine Admin Setup
cp -v /usr/share/easyengine/nginx/22222 /etc/nginx/sites-available/ || OwnError "Unable To Copy 22222 Nginx Configuration File"
cp /usr/share/easyengine/nginx/22222 /etc/nginx/sites-available/ || OwnError "Unable To Copy 22222 Nginx Configuration File"
ln -s /etc/nginx/sites-available/22222 /etc/nginx/sites-enabled/ || OwnError "Unable To Create Symbolic Link For 22222 Nginx Configuration"
# EasyEngine Admin SSL Setup
@ -2890,7 +2890,7 @@ then
# Edit The Nginx Configuration For $DOMAIN
EESITEEDIT
if [ $(git status -s /etc/nginx/sites-available/$DOMAIN | wc -l) -ne 0 ]
if [ $(cd /etc/nginx; git status -s /etc/nginx/sites-available/$DOMAIN | wc -l) -ne 0 ]
then
# Take Nginx Configuration In Git Version Control
EEGITDIR=/etc/nginx

2
usr/share/easyengine/nginx/22222

@ -12,7 +12,7 @@ server {
# Force HTTP To HTTPS
error_page 497 =200 https://$host:22222$request_uri;
root /var/www/eeadmin/htdocs;
root /var/www/22222/htdocs;
index index.php index.htm index.html;
# Turn On Directory List

Loading…
Cancel
Save