Skip to content

Commit 27a2fc9

Browse files
author
enoch85
committed
create dir before yml eof
1 parent 9145bb1 commit 27a2fc9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

wordpress_install.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,24 +132,24 @@ apt-get install -y \
132132
php7.0-xml \
133133
php7.0-zip
134134

135-
# Download wp-cli.phar to be able to create database
136-
# and activate apps
135+
# Download wp-cli.phar to be able to install Wordpress
137136
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
138137
chmod +x wp-cli.phar
139138
mv wp-cli.phar /usr/local/bin/wp
140139

140+
# Create dir
141+
mkdir $WPATH
142+
141143
# Create wp-cli.yml
142144
touch $WPATH/wp-cli.yml
143145
cat << YML_CREATE > "$WPATH/wp-cli.yml"
144146
apache_modules:
145147
- mod_rewrite
146148
YML_CREATE
147149

150+
# Show info about wp-cli
148151
wp --info --allow-root
149152

150-
# Create dir
151-
mkdir $WPATH
152-
153153
# Download Wordpress
154154
cd $WPATH
155155
wp core download --allow-root --force --debug --path=$WPATH

0 commit comments

Comments
 (0)