diff --git a/README.md b/README.md index 4016864..0b0dbba 100644 --- a/README.md +++ b/README.md @@ -28,27 +28,27 @@ bash setup.sh 1. Create a WordPress site ```shell -eev4 create example.com --wp +ee4 create example.com --wp ``` 2. Delete a site ```shell -eev4 delete example.com +ee4 delete example.com ``` 3. Use wp-cli with a site ```shell -eev4 wp example.com theme list +ee4 wp example.com theme list ``` -Run `eev4 --help` for all commands. +Run `ee4 --help` for all commands. ## Configuration The sites get created at `/var/www`. You can view and change the configuration for any of the sites at `/var/www/SITE/config` -Run `eev4 restart SITE` to load new configuration. +Run `ee4 restart SITE` to load new configuration. ## Contributing diff --git a/scripts/eev4 b/scripts/ee4 similarity index 96% rename from scripts/eev4 rename to scripts/ee4 index 290bda9..a5bff85 100755 --- a/scripts/eev4 +++ b/scripts/ee4 @@ -1,6 +1,6 @@ #!/usr/bin/env bash -PROJECT_NAME="eev4" +PROJECT_NAME="ee4" EE_INSTALL_DIR="/opt/$PROJECT_NAME" ETC_HOSTS=/etc/hosts LOCALHOST_IP="127.0.0.1" @@ -19,7 +19,7 @@ runAsRoot() { # help provides possible cli arguments help () { - echo -e "\nUsage: eev4 [Global Options]" + echo -e "\nUsage: ee4 [Global Options]" echo -e "\nGlobal Options:" echo -e "\t[--help|-h ]\t\tprints this help" @@ -29,16 +29,16 @@ help () { echo -e "\trestart\t\t\tReload configuration for existing site" echo -e "\twp\t\t\tUse wp-cli with a site" - echo -e "\nUsage: eev4 create SITE [Options]" + echo -e "\nUsage: ee4 create SITE [Options]" echo -e "\nOptions:" echo -e "\t[--wp ]\t\t\tWordPress Site" echo -e "\t[--wpsubdir ]\t\tWordPress Multisite with Subdirectory" echo -e "\t[--wpsubdomain ]\tWordPress Multisite with Subdomains" - echo -e "\nUsage: eev4 delete SITE" + echo -e "\nUsage: ee4 delete SITE" - echo -e "\nUsage: eev4 wp SITE [ARG...]" - echo -e "\te.g. eev4 wp example.com theme list" + echo -e "\nUsage: ee4 wp SITE [ARG...]" + echo -e "\te.g. ee4 wp example.com theme list" } singleWordPress() { diff --git a/scripts/setup b/scripts/setup index e99216a..c900ab0 100755 --- a/scripts/setup +++ b/scripts/setup @@ -1,6 +1,6 @@ #!/usr/bin/env bash -PROJECT_NAME="eev4" +PROJECT_NAME="ee4" REPO_URL="https://github.com/EasyEngine/docker-compose-wordpress" VERSION="master" @@ -63,8 +63,8 @@ cloneRepo() { # installScript installs the main script. installScript() { EE_INSTALL_DIR="/opt/$PROJECT_NAME" - EE_SCRIPT="scripts/eev4" - EE_SCRIPT_INSTALL_PATH="/usr/local/bin/eev4" + EE_SCRIPT="scripts/ee4" + EE_SCRIPT_INSTALL_PATH="/usr/local/bin/ee4" rm -rf "$EE_INSTALL_DIR" echo "Preparing to install into $EE_INSTALL_DIR"