Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to get
admin_password
from the ENV by default
In a situation where you run wp-cli with `--admin-password`, then plain-text password is exposed in process list (e.g. `ps aufx`). We might be able to use `--admin-password=$WP_CLI_CORE_INSTALL_ADMIN_PASSWORD`, but it's not possible also when running in a nested mode (e.g. unshare() -> chroot() -> execvp() chain). Thus, this relaxes a bit the installation and tries to get the default password from the environment itself by default. It doesn't break a current functionality. ``` % export WP_CLI_CORE_INSTALL_ADMIN_PASSWORD=password123 ; ./vendor/bin/wp core install --admin_user=admin --url=donatas.net --title=wp [email protected] Success: WordPress installed successfully. % ./vendor/bin/wp user check-password admin password123 && echo OK OK ``` Signed-off-by: Donatas Abraitis <[email protected]> Signed-off-by: Donatas Abraitis <[email protected]>
- Loading branch information