diff --git a/.env-core/docs/5-doc-environment-options.MD b/.env-core/docs/5-doc-environment-options.MD index 43ab82b..a85a1c9 100644 --- a/.env-core/docs/5-doc-environment-options.MD +++ b/.env-core/docs/5-doc-environment-options.MD @@ -81,6 +81,10 @@ 2 - Install composer package + 3 - Delete site data (posts, themes, plugins) + + 4 - Into a multisite installation + 4 - List of existing projects 5 - GIT actions diff --git a/.env-core/docs/5-doc-new-wordpress.MD b/.env-core/docs/5-doc-new-wordpress.MD index 18af762..b55dbd0 100644 --- a/.env-core/docs/5-doc-new-wordpress.MD +++ b/.env-core/docs/5-doc-new-wordpress.MD @@ -21,9 +21,8 @@ | 4 | | Enter Domain Name | test | | | 5 | | Enter DOMAIN_FULL | dev.test.local | * | | 6 | [y/n] | Is correct? | | | -| 7 | [y/n] | Remove default content? | | | -| 8 | [y/n] | Clone project? | | | -| 9 | | Windows: Add to host file | | | +| 7 | [y/n] | Clone project? | | | +| 8 | | Windows: Add to host file | | | *Variables has default value. @@ -43,11 +42,12 @@ | 8 | | Enter WP_VERSION | 5.8.3 | * | | 9 | | Enter WP_USER | developer | * | | 10 | | Enter WP_PASSWORD | 1 | * | -| 11 | | Enter PHP_VERSION | 8.0 | * | -| 12 | [y/n] | Is correct? | | | -| 13 | [y/n] | Remove default content? | | | -| 14 | [y/n] | Clone project? | | | -| 15 | | Windows: Add to host file | | | +| 11 | | Enter EMPTY_CONTENT | 1 | * | +| 12 | | Installation type | 1 | * | +| 13 | | Enter PHP_VERSION | 8.0 | * | +| 14 | [y/n] | Is correct? | | | +| 15 | [y/n] | Clone project? | | | +| 16 | | Windows: Add to host file | | | *Variables has default value. @@ -64,10 +64,9 @@ | 5 | 1 | type? [default] [custom] | | | | 6 | | Enter DOMAIN_FULL | test.local | * | | 7 | [y/n] | Is correct? | | | -| 8 | [y/n] | Remove default content? | | | -| 9 | [y/n] | Clone project? | | | -| 10 | | Repo url | | | -| 11 | | Windows: Add to host file | | | +| 8 | [y/n] | Clone project? | | | +| 9 | | Repo url | | | +| 10 | | Windows: Add to host file | | | *Variables has default value. diff --git a/.env-core/sh/projects/setup/setup_vars_wp.sh b/.env-core/sh/projects/setup/setup_vars_wp.sh index 4bec2f6..b24baf7 100644 --- a/.env-core/sh/projects/setup/setup_vars_wp.sh +++ b/.env-core/sh/projects/setup/setup_vars_wp.sh @@ -106,16 +106,16 @@ setup_custom_args() { #Remove default content EMPTY_LINE ECHO_YELLOW "EMPTY_CONTENT [default 'no']" - ECHO_GREEN "1 - no" - ECHO_GREEN "2 - yes" + ECHO_KEY_VALUE "1" "no" + ECHO_KEY_VALUE "2" "yes" read -rp "$(ECHO_YELLOW "Please select one of:")" EMPTY_CONTENT #WP_TYPE EMPTY_LINE - ECHO_YELLOW "Do you want a multisite installation? [default 'no']" + ECHO_YELLOW "Installation type [default 'single']" randpassword - ECHO_KEY_VALUE "[1]" "no" - ECHO_KEY_VALUE "[2]" "yes" + ECHO_KEY_VALUE "[1]" "single" + ECHO_KEY_VALUE "[2]" "multisite" read -rp "$(ECHO_YELLOW "Please select one of:")" MULTISITE #PHP_VERSION diff --git a/README.MD b/README.MD index 6bde19a..8908773 100755 --- a/README.MD +++ b/README.MD @@ -71,6 +71,7 @@ Spin up a local environment on Linux, Mac, and Windows using CLI. | Logs | Follow log output for Nginx, WP instance | | PHP | Choose from active PHP version | | Wordpress | Choose a version or use the latest | +| Multisite | Wordpress multisite or single site | | Database | Database import and export, search-replace | | Composer | Install Composer inside container | | GIT | Clone an existing theme, create repo and push | @@ -83,10 +84,10 @@ Spin up a local environment on Linux, Mac, and Windows using CLI. ``` ├── setup.sh # Run devENV ├── .env-core # devENV core files +| └── data # Data about sites, settings, docker images | └── nginx # Nginx-proxy | └── sh # Bash scripts | └── templates # Global templates -| └── instances.log # List of installed sites └── wordpress # WordPress sites go here └── bedrock # Bedrock sites go here └── php # PHP simple sites go here