Skip to content

Commit 80449ef

Browse files
committed
Fix DB_NAME in ee site info
1 parent 3ded952 commit 80449ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usr/local/sbin/easyengine

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ EESITEINFO()
806806
ACCESSLOG=$(grep access_log /etc/nginx/sites-available/$DOMAIN | grep "/var/log/nginx/" | awk '{print($2)}' | cut -d ';' -f1)
807807
ERRORLOG=$(grep error_log /etc/nginx/sites-available/$DOMAIN | grep "/var/log/nginx/" | awk '{print($2)}' | cut -d ';' -f1)
808808
WEBROOT=$(grep root /etc/nginx/sites-available/$DOMAIN | grep htdocs | awk '{print($2)}' | cut -d ';' -f1)
809-
WPDBNAME=$(grep DB_USER /var/www/$DOMAIN/wp-config.php 2> /dev/null | cut -d"'" -f4)
809+
WPDBNAME=$(grep DB_NAME /var/www/$DOMAIN/wp-config.php 2> /dev/null | cut -d"'" -f4)
810810

811811
echo -e "\033[34m$DOMAIN Information:\n\e[0m"
812812
echo -e "\033[34mNginx Configuration:\t\t \033[37m$SITEINFO ($SITESTATUS)\e[0m"

0 commit comments

Comments
 (0)