Skip to content

Commit cf36f26

Browse files
committed
Don't create database.
1 parent cb9fbef commit cf36f26

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ There are several scripts included in `wordpress-scripts`, each of which perform
77

88
### install_wp.sh
99

10-
The `install_wp.sh` script installs and configures a fresh WordPress instance, including a new database. The script also sets the WordPress install file permissions in a strict manner, to assist in hardening WordPress installs.
10+
The `install_wp.sh` script downloads and configures a fresh WordPress install. The script also sets the file permissions in a strict manner, to assist in hardening the WordPress install.
1111

1212
All project variables are taken from the `.env.sh` file.
1313

scripts/install_wp.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,8 @@ GLOBAL_FILE_PERMS=644 # `-rw-r--r--`
4040
WRITEABLE_DIR_PERMS=775 # `-rwxrwxr-x`
4141
WRITEABLE_FILE_PERMS=664 # `-rw-rw-r--`
4242

43-
# Create the database.
44-
echo "Creating database ${LOCAL_DB_NAME}..."
45-
46-
$LOCAL_MYSQL_CMD $LOCAL_DB_CREDS -e"CREATE DATABASE $LOCAL_DB_NAME"
47-
4843
# Download WP Core.
44+
echo "Download and installing WordPress..."
4945
wp core download --path=${LOCAL_ROOT_PATH}
5046

5147
# Generate the wp-config.php file
@@ -60,7 +56,7 @@ PHP
6056
wp core install --path=${LOCAL_ROOT_PATH} --url=${LOCAL_SITE_URL} --title=${LOCAL_DB_NAME} --admin_user=connorbaer --admin_password=developer --admin_email=connor.baer@me.com
6157

6258
# Set project permissions
63-
echo "Setting base permissions for the project ${LOCAL_ROOT_PATH}"
59+
echo "Setting base permissions..."
6460
chown -R ${LOCAL_CHOWN_USER}:${LOCAL_CHOWN_GROUP} "${LOCAL_ROOT_PATH}"
6561
chmod -R ${GLOBAL_DIR_PERMS} "${LOCAL_ROOT_PATH}"
6662
find "${LOCAL_ROOT_PATH}" -type d -exec chmod $GLOBAL_DIR_PERMS {} \;

0 commit comments

Comments
 (0)