From e401f3ed76369c271eed542e2901ec8615f1c2f5 Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Wed, 9 Apr 2014 17:19:57 +0530 Subject: [PATCH] Fixed ee site edit command --- usr/local/sbin/easyengine | 4 ++-- usr/share/easyengine/nginx/22222 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/usr/local/sbin/easyengine b/usr/local/sbin/easyengine index 606914b0..809ee94a 100644 --- a/usr/local/sbin/easyengine +++ b/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 diff --git a/usr/share/easyengine/nginx/22222 b/usr/share/easyengine/nginx/22222 index 59ae9cb8..74f89a47 100644 --- a/usr/share/easyengine/nginx/22222 +++ b/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