Browse Source

Search/Replace in main file

old-stable
Mitesh Shah 11 years ago
parent
commit
1c10e8ab1c
  1. 38
      bin/ee

38
bin/ee

@ -422,24 +422,24 @@ ee_lib_setup_php()
fi fi
} }
WP-CLI() ee_ven_install_wp_cli()
{ {
# Install WP-CLI # Install WP-CLI
if [ ! -d /usr/share/easyengine/wp-cli ] if [ ! -d /usr/share/wp-cli ]
then then
ee_lib_echo_fail "WP-CLI Command Not Found" ee_lib_echo_fail "WP-CLI Command Not Found"
ee_lib_echo "Installing WP-CLI, Please Wait..." ee_lib_echo "Installing WP-CLI, Please Wait..."
curl -sL https://raw.github.com/wp-cli/wp-cli.github.com/master/installer.sh | INSTALL_DIR='/usr/share/easyengine/wp-cli' VERSION='0.14.1' bash &>> $EE_COMMAND_LOG \ curl -sL https://raw.github.com/wp-cli/wp-cli.github.com/master/installer.sh | INSTALL_DIR='/usr/share/wp-cli' VERSION='0.14.1' bash &>> $EE_COMMAND_LOG \
|| ee_lib_error "Unable To Install WP-CLI" || ee_lib_error "Unable To Install WP-CLI"
# Add WP-CLI Command In PATH Variable # Add WP-CLI Command In PATH Variable
ln -s /usr/share/easyengine/wp-cli/bin/wp /usr/bin/wp || ee_lib_error "Unable To Create Symbolic Link For WP-CLI Command" ln -s /usr/share/wp-cli/bin/wp /usr/bin/wp || ee_lib_error "Unable To Create Symbolic Link For WP-CLI Command"
# Add WP-CLI Auto Completion # Add WP-CLI Auto Completion
cp -i /usr/share/easyengine/wp-cli/vendor/wp-cli/wp-cli/utils/wp-completion.bash /etc/bash_completion.d/ cp -i /usr/share/wp-cli/vendor/wp-cli/wp-cli/utils/wp-completion.bash /etc/bash_completion.d/
source /etc/bash_completion.d/wp-completion.bash source /etc/bash_completion.d/wp-completion.bash
else else
ee_lib_echo "Already Installed WP-CLI (/usr/share/easyengine/wp-cli)" ee_lib_echo "Already Installed WP-CLI (/usr/share/wp-cli)"
fi fi
} }
@ -515,7 +515,7 @@ PHP_PACKAGES()
chown -R $PHPUSER:$PHPUSER /var/www/22222 || ee_lib_error "Unable To Change Ownership For /var/www/22222" chown -R $PHPUSER:$PHPUSER /var/www/22222 || ee_lib_error "Unable To Change Ownership For /var/www/22222"
} }
INSTALLPMA() ee_ven_install_pma()
{ {
# Install PMA/phpMyAdmin # Install PMA/phpMyAdmin
if [ ! -d /var/www/22222/htdocs/db/pma ] || [ ! -d /var/www/22222/htdocs/db/adminer ] if [ ! -d /var/www/22222/htdocs/db/pma ] || [ ! -d /var/www/22222/htdocs/db/adminer ]
@ -575,7 +575,7 @@ MYSQLINSTALLTWEAKS()
fi fi
} }
INSTALLMYSQL() ee_mod_install_mysql()
{ {
# Setting Up MySQL Password # Setting Up MySQL Password
MYSQLINSTALLTWEAKS MYSQLINSTALLTWEAKS
@ -586,7 +586,7 @@ INSTALLMYSQL()
|| ee_lib_error "Unable To Install MySQL" || ee_lib_error "Unable To Install MySQL"
} }
COMMONMYSQL() ee_mod_setup_mysql()
{ {
# Personal Settings For MySQL # Personal Settings For MySQL
ee_lib_echo "Updating MySQL Configuration Files, Please Wait..." ee_lib_echo "Updating MySQL Configuration Files, Please Wait..."
@ -649,7 +649,7 @@ POSTFIXINSTALLTWEAKS()
debconf-set-selections <<< "postfix postfix/mailname string $(hostname -f)" debconf-set-selections <<< "postfix postfix/mailname string $(hostname -f)"
} }
INSTALLPOSTFIX() ee_mod_install_postfix()
{ {
# Setting Up Postfix # Setting Up Postfix
POSTFIXINSTALLTWEAKS POSTFIXINSTALLTWEAKS
@ -699,7 +699,7 @@ REMOVEWPCLI()
{ {
# Remove WP-CLI # Remove WP-CLI
ee_lib_echo "Removing WP-CLI, Please Wait..." ee_lib_echo "Removing WP-CLI, Please Wait..."
rm -rf /usr/share/easyengine/wp-cli /usr/bin/wp /etc/bash_completion.d/wp-completion.bash || ee_lib_error "Unable To Remove WP-CLI" rm -rf /usr/share/wp-cli /usr/bin/wp /etc/bash_completion.d/wp-completion.bash || ee_lib_error "Unable To Remove WP-CLI"
} }
REMOVEPMA() REMOVEPMA()
@ -2066,7 +2066,7 @@ then
PHPRESTART PHPRESTART
# Install WP-CLI & PHP Packages # Install WP-CLI & PHP Packages
WP-CLI ee_ven_install_wp_cli
PHP_PACKAGES PHP_PACKAGES
# Initialise Git # Initialise Git
@ -2080,7 +2080,7 @@ then
then then
# Install PMA/phpMyAdmin # Install PMA/phpMyAdmin
INSTALLPMA ee_ven_install_pma
# Initialise Git # Initialise Git
#EEGITDIR=/var/www/22222/htdocs/db/pma/ #EEGITDIR=/var/www/22222/htdocs/db/pma/
@ -2102,10 +2102,10 @@ then
ee_lib_apt_get_update ee_lib_apt_get_update
# Install MySQL # Install MySQL
INSTALLMYSQL ee_mod_install_mysql
# Personal Settings For MySQL # Personal Settings For MySQL
COMMONMYSQL ee_mod_setup_mysql
# Restart MySQL # Restart MySQL
MYSQLRESTART MYSQLRESTART
@ -2124,7 +2124,7 @@ then
ee_lib_apt_get_update ee_lib_apt_get_update
# Install Postfix # Install Postfix
INSTALLPOSTFIX ee_mod_install_postfix
# Initialize Git # Initialize Git
EEGITDIR=/etc/postfix/ EEGITDIR=/etc/postfix/
@ -2170,14 +2170,14 @@ then
PHPRESTART PHPRESTART
# Install WP-CLI & PHP Packages # Install WP-CLI & PHP Packages
WP-CLI ee_ven_install_wp_cli
PHP_PACKAGES PHP_PACKAGES
# Install PMA/phpMyAdmin # Install PMA/phpMyAdmin
INSTALLPMA ee_ven_install_pma
# Personal Settings For MySQL # Personal Settings For MySQL
COMMONMYSQL ee_mod_setup_mysql
# Restart MySQL # Restart MySQL
MYSQLRESTART MYSQLRESTART

Loading…
Cancel
Save