Skip to content

Commit 3255d0b

Browse files
committed
fixes #120 and #121
1 parent f06c0c0 commit 3255d0b

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

CHANGELOG.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
v 1.1.4
2+
- Fixed wp-cli issue with --allow-root error.
3+
- Started using own wp-cli mirror to avoid future issues.
4+
5+
16
v 1.1.3
27
- Added GPL License. Ref - https://rtcamp.com/easyengine-is-gpl/
38

usr/local/sbin/easyengine

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/bash
22

3-
4-
53
# Make Variables Available For Later Use
64
LOGDIR=/var/log/easyengine
75
ERRORLOG=/var/log/easyengine/error.log
@@ -977,7 +975,7 @@ EEWPDBSETUP()
977975
# Create WordPress Tables
978976
echo -e "\033[34mSetting Up WordPress, Please Wait...\e[0m"
979977
cd /var/www/$DOMAIN/htdocs || OwnError "Unable To Change Directory To Install WordPress"
980-
wp core install --url=$WWWDOMAIN --title="$WWWDOMAIN" \
978+
wp core install --allow-root --url=$WWWDOMAIN --title="$WWWDOMAIN" \
981979
--admin_name=$WPADMINUSER --admin_password=$WPADMINPASS --admin_email=$WPADMINEMAIL &>> $INSTALLLOG \
982980
|| OwnError "Unable To Create WordPress Tables For $DOMAIN"
983981
}
@@ -1055,10 +1053,10 @@ TOTALCACHENGINX()
10551053
# Installing W3 Total Cache
10561054
cd /var/www/$DOMAIN/htdocs/
10571055
echo -e "\033[34mInstalling W3 Total Cache Plugin, Please Wait...\e[0m"
1058-
wp plugin install w3-total-cache &>> $INSTALLLOG || OwnError "Unable To Install W3 Total Cache Plugin"
1056+
wp plugin --allow-root install w3-total-cache &>> $INSTALLLOG || OwnError "Unable To Install W3 Total Cache Plugin"
10591057

10601058
# Activate W3 Total Cache
1061-
wp plugin activate w3-total-cache $NETWORKACTIVATE &>> $INSTALLLOG || OwnError "Unable To Activate W3 Total Cache Plugin"
1059+
wp plugin --allow-root activate w3-total-cache $NETWORKACTIVATE &>> $INSTALLLOG || OwnError "Unable To Activate W3 Total Cache Plugin"
10621060

10631061
# Install Opcache & Memcache
10641062
EEOPMEMCACHE
@@ -1069,21 +1067,21 @@ SUPERCACHENGINX()
10691067
# Installing WP Super Cache
10701068
cd /var/www/$DOMAIN/htdocs/
10711069
echo -e "\033[34mInstalling WP Super Cache Plugin, Please Wait...\e[0m"
1072-
wp plugin install wp-super-cache &>> $INSTALLLOG || OwnError "Unable To Install WP Super Cache Plugin"
1070+
wp plugin --allow-root install wp-super-cache &>> $INSTALLLOG || OwnError "Unable To Install WP Super Cache Plugin"
10731071

10741072
# Activate WP Super Cache
1075-
wp plugin activate wp-super-cache $NETWORKACTIVATE &>> $INSTALLLOG || OwnError "Unable To Activate WP Super Cache Plugin"
1073+
wp plugin --allow-root activate wp-super-cache $NETWORKACTIVATE &>> $INSTALLLOG || OwnError "Unable To Activate WP Super Cache Plugin"
10761074
}
10771075

10781076
NGINXHELPER()
10791077
{
10801078
# Installing Nginx Helper
10811079
cd /var/www/$DOMAIN/htdocs/
10821080
echo -e "\033[34mInstalling Nginx Helper Plugin, Please Wait...\e[0m"
1083-
wp plugin install nginx-helper &>> $INSTALLLOG || OwnError "Unable To Install Nginx Helper"
1081+
wp plugin --allow-root install nginx-helper &>> $INSTALLLOG || OwnError "Unable To Install Nginx Helper"
10841082

10851083
# Activate Nginx Helper
1086-
wp plugin activate nginx-helper $NETWORKACTIVATE &>> $INSTALLLOG || OwnError "Unable To Activate Nginx Helper Plugin"
1084+
wp plugin --allow-root activate nginx-helper $NETWORKACTIVATE &>> $INSTALLLOG || OwnError "Unable To Activate Nginx Helper Plugin"
10871085
}
10881086

10891087

usr/local/sbin/eeupdate

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/bash
22

33

4-
54
# Make Variables Available For Later Use
65
INSTALLLOG=/var/log/easyengine/install.log
76

0 commit comments

Comments
 (0)