From 7a5a5c97e02f7b097a275471eb738c2577d7e8d7 Mon Sep 17 00:00:00 2001 From: Umesh Kumar Date: Fri, 28 Feb 2014 19:12:17 +0530 Subject: [PATCH 1/2] Fixes issue #135 Permalink structure updated to Day and Postname --- usr/local/sbin/easyengine | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/usr/local/sbin/easyengine b/usr/local/sbin/easyengine index fed7d777..7ff1076c 100644 --- a/usr/local/sbin/easyengine +++ b/usr/local/sbin/easyengine @@ -1020,6 +1020,11 @@ EEWPDBSETUP() wp core install --allow-root --url=$WWWDOMAIN --title="$WWWDOMAIN" \ --admin_name=$WPADMINUSER --admin_password=$WPADMINPASS --admin_email=$WPADMINEMAIL &>> $INSTALLLOG \ || OwnError "Unable To Create WordPress Tables For $DOMAIN" + + # Update WordPress Permalink Structure, Day and Postname + echo -e "\033[34mUpdating WordPress Permalink, Please Wait...\e[0m" + wp rewrite structure /%year%/%monthnum%/%day%/%postname%/ \ + || OwnError "Unable To Update WordPress Permalink For $DOMAIN" } EEPERMISSION() From 0a9550b6170d2bc97b0b46381080c31c92accd8f Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Fri, 28 Feb 2014 20:04:18 +0530 Subject: [PATCH 2/2] WP-CLI version 0.14.0 doesnt allow --allow-root on rewrite structure command, FYI: https://github.com/wp-cli/wp-cli/issues/1043 --- usr/local/sbin/easyengine | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/usr/local/sbin/easyengine b/usr/local/sbin/easyengine index 7ff1076c..f498af2e 100644 --- a/usr/local/sbin/easyengine +++ b/usr/local/sbin/easyengine @@ -1021,10 +1021,11 @@ EEWPDBSETUP() --admin_name=$WPADMINUSER --admin_password=$WPADMINPASS --admin_email=$WPADMINEMAIL &>> $INSTALLLOG \ || OwnError "Unable To Create WordPress Tables For $DOMAIN" - # Update WordPress Permalink Structure, Day and Postname - echo -e "\033[34mUpdating WordPress Permalink, Please Wait...\e[0m" - wp rewrite structure /%year%/%monthnum%/%day%/%postname%/ \ - || OwnError "Unable To Update WordPress Permalink For $DOMAIN" + # https://github.com/wp-cli/wp-cli/issues/1043 + # Update WordPress Permalink Structure Day and Postname + #echo -e "\033[34mUpdating WordPress Permalink, Please Wait...\e[0m" + #wp rewrite structure --allow-root /%year%/%monthnum%/%day%/%postname%/ \ + #|| OwnError "Unable To Update WordPress Permalink For $DOMAIN" } EEPERMISSION()