harshadyeola
10 years ago
2 changed files with 52 additions and 45 deletions
@ -1,21 +1,25 @@ |
|||||
# Install required packages |
|
||||
|
|
||||
if [ "$EE_SITE_CREATE_OPTION" = "--html" ] || [ "$EE_SITE_CREATE_OPTION" = "--php" ] || [ "$EE_SITE_CREATE_OPTION" = "--mysql" ] || [ "$EE_SITE_CREATE_OPTION" = "--wp" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdir" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdomain" ]; then |
function ee_mod_site_packages() |
||||
|
{ |
||||
|
# Install required packages |
||||
|
|
||||
|
if [ "$EE_SITE_CREATE_OPTION" = "--html" ] || [ "$EE_SITE_CREATE_OPTION" = "--php" ] || [ "$EE_SITE_CREATE_OPTION" = "--mysql" ] || [ "$EE_SITE_CREATE_OPTION" = "--wp" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdir" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdomain" ]; then |
||||
# Check & Install NGINX Packages |
# Check & Install NGINX Packages |
||||
ee_lib_stack_packages nginx |
ee_lib_stack_packages nginx |
||||
fi |
fi |
||||
if [ "$EE_SITE_CREATE_OPTION" = "--php" ] || [ "$EE_SITE_CREATE_OPTION" = "--mysql" ] || [ "$EE_SITE_CREATE_OPTION" = "--wp" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdir" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdomain" ]; then |
if [ "$EE_SITE_CREATE_OPTION" = "--php" ] || [ "$EE_SITE_CREATE_OPTION" = "--mysql" ] || [ "$EE_SITE_CREATE_OPTION" = "--wp" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdir" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdomain" ]; then |
||||
# Check & Install PHP Packages |
# Check & Install PHP Packages |
||||
ee_lib_stack_packages php |
ee_lib_stack_packages php |
||||
fi |
fi |
||||
if [ "$EE_SITE_CREATE_OPTION" = "--mysql" ] || [ "$EE_SITE_CREATE_OPTION" = "--wp" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdir" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdomain" ]; then |
if [ "$EE_SITE_CREATE_OPTION" = "--mysql" ] || [ "$EE_SITE_CREATE_OPTION" = "--wp" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdir" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdomain" ]; then |
||||
# Check & Install Percona MySQL Packages |
# Check & Install Percona MySQL Packages |
||||
ee_lib_stack_packages mysql |
ee_lib_stack_packages mysql |
||||
fi |
fi |
||||
|
|
||||
if [ "$EE_SITE_CREATE_OPTION" = "--wp" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdir" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdomain" ]; then |
if [ "$EE_SITE_CREATE_OPTION" = "--wp" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdir" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdomain" ]; then |
||||
# Install WP-CLI |
# Install WP-CLI |
||||
ee_ven_install_wpcli |
ee_ven_install_wpcli |
||||
fi |
fi |
||||
# Check & Install Postfix Packages |
# Check & Install Postfix Packages |
||||
ee_lib_stack_packages postfix |
ee_lib_stack_packages postfix |
||||
|
} |
||||
|
Loading…
Reference in new issue