|
Server : Apache System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64 User : p141464 ( 418825) PHP Version : 7.4.33.12 Disable Function : NONE Directory : /usr/local/bin/ |
Upload File : |
#!/bin/bash
# In order to change these variables please add them to your: /etc/bash/profile
# After that, reload your bash-profile by using the following command: source ~/etc/bash/profile
# For all available env-variables check the documentation:
# https://make.wordpress.org/cli/handbook/config/#environment-variables
export WP_CLI_HOME="${WP_CLI_HOME:-/files/swm2/wp-cli/.wp-cli}"
export WP_CLI_CACHE_DIR="${WP_CLI_CACHE_DIR:-${WP_CLI_HOME}/cache/}"
export WP_CLI_CONFIG_PATH="${WP_CLI_CONFIG_PATH:-${WP_CLI_HOME}/config.yml}"
export WP_CLI_PACKAGES_DIR="${WP_CLI_PACKAGES_DIR:-${WP_CLI_HOME}/packages/}"
[[ ! -d "${WP_CLI_CACHE_DIR}" ]] && mkdir -p "${WP_CLI_CACHE_DIR}"
[[ ! -e ${WP_CLI_CONFIG_PATH} ]] && touch "${WP_CLI_CONFIG_PATH}"
[[ ! -d "${WP_CLI_PACKAGES_DIR}" ]] && mkdir -p "${WP_CLI_PACKAGES_DIR}"
/usr/local/bin/php_cli /files/swm2/wp-cli/wp-cli.phar $@