Browse Source

Fix wp-cli remove unwanted space

old-stable
Mitesh Shah 11 years ago
parent
commit
0fb5781ac2
  1. 92
      bin/easyengine

92
bin/easyengine

@ -24,66 +24,54 @@ if [ "$EE_FIRST" = "version" ] || [ "$EE_FIRST" = "--version" ] || [ "$EE_FIRST"
then then
# Display Easy Engine Version # Display Easy Engine Version
echo "EasyEngine (ee) version: $EE_VERSION" echo "EasyEngine (ee) version: $EE_VERSION"
# EasyEngine stack/system # EasyEngine stack/system
elif [ "$EE_FIRST" = "stack" ] || [ "$EE_FIRST" = "system" ] elif [ "$EE_FIRST" = "stack" ] || [ "$EE_FIRST" = "system" ]
then then
# EasyEngine install # EasyEngine install
if [ "$EE_SECOND" = "install" ] if [ "$EE_SECOND" = "install" ]; then
then if [ "$EE_THIRD" = "nginx" ] || [ "$EE_THIRD" = "php" ]; then
# Setup nginx/php repository
if [ "$EE_THIRD" = "nginx" ] || [ "$EE_THIRD" = "php" ] || [ "$EE_THIRD" = "mysql" ] || [ "$EE_THIRD" = "postfix" ] || [ "$EE_THIRD" = "phpmyadmin" ] || [ "$EE_THIRD" = "adminer" ]; then ee_mod_repo_$EE_THIRD
if [ "$EE_THIRD" = "nginx" ] || [ "$EE_THIRD" = "php" ]; then # Fix GnuPG key
# Setup nginx/php repository ee_lib_gpg_key_fix
ee_mod_repo_$EE_THIRD fi
# Fix GnuPG key if [ "$EE_THIRD" = "nginx" ] || [ "$EE_THIRD" = "php" ] || [ "$EE_THIRD" = "mysql" ] || [ "$EE_THIRD" = "postfix" ]; then
ee_lib_gpg_key_fix # Execute: apt-get update
fi ee_lib_apt_get_update
if [ "$EE_THIRD" = "nginx" ] || [ "$EE_THIRD" = "php" ] || [ "$EE_THIRD" = "mysql" ] || [ "$EE_THIRD" = "postfix" ]; then # Install nginx/php/mysql/postfix package
ee_mod_install_$EE_THIRD
# Execute: apt-get update elif [ "$EE_THIRD" = "adminer" ] || [ "$EE_THIRD" = "phpmyadmin" ] || [ "$EE_THIRD" = "wpcli" ];then
ee_lib_apt_get_update # Install phpmyadmin/adminer
ee_ven_install_$EE_THIRD
# Install nginx/php/mysql/postfix package fi
ee_mod_install_$EE_THIRD
elif [ "$EE_THIRD" = "adminer" ] || [ "$EE_THIRD" = "phpmyadmin" ] || [ "$EE_THIRD" = "wpcli" ];then
# Install phpmyadmin/adminer
ee_ven_install_$EE_THIRD
fi
if [ "$EE_THIRD" = "nginx" ] || [ "$EE_THIRD" = "php" ] || [ "$EE_THIRD" = "mysql" ]; then
# Setup nginx/php/mysql
ee_mod_setup_$EE_THIRD
fi
if [ "$EE_THIRD" = "nginx" ] || [ "$EE_THIRD" = "php" ] || [ "$EE_THIRD" = "mysql" ] || [ "$EE_THIRD" = "postfix" ]; then
# Restart php5-fpm if [ "$EE_THIRD" = "nginx" ] || [ "$EE_THIRD" = "php" ] || [ "$EE_THIRD" = "mysql" ]; then
if [ "$EE_THIRD" = "php" ];then # Setup nginx/php/mysql
ee_lib_service php5-fpm restart ee_mod_setup_$EE_THIRD
fi
# Initialize Git if [ "$EE_THIRD" = "nginx" ] || [ "$EE_THIRD" = "php" ] || [ "$EE_THIRD" = "mysql" ] || [ "$EE_THIRD" = "postfix" ]; then
EE_GIT_DIR=/etc/php5/ # Restart php5-fpm
ee_lib_git_init if [ "$EE_THIRD" = "php" ];then
else ee_lib_service php5-fpm restart
# Restart nginx/mysql/postfix
ee_lib_service $EE_THIRD restart # Initialize Git
EE_GIT_DIR=/etc/php5/
ee_lib_git_init
else
# Restart nginx/mysql/postfix
ee_lib_service $EE_THIRD restart
# Initialize Git # Initialize Git
EE_GIT_DIR=/etc/$EE_THIRD/ EE_GIT_DIR=/etc/$EE_THIRD/
ee_lib_git_init ee_lib_git_init
fi
fi fi
# Display success message
ee_lib_echo "$EE_THIRD successfully installed"
fi fi
# Display success message
ee_lib_echo "$EE_THIRD successfully installed"
fi fi
fi fi

Loading…
Cancel
Save