Browse Source

Fixed issue and update scripts

old-stable
Mitesh Shah 11 years ago
parent
commit
0e9e411064
  1. 3181
      bin/easyengine
  2. 3
      src/lib/ee_lib_variables.sh
  3. 9
      src/modules/system/install/ee_mod_setup_nginx.sh
  4. 2
      src/vendor/ee_ven_install_wp_cli.sh

3181
bin/easyengine

File diff suppressed because it is too large

3
src/lib/ee_lib_variables.sh

@ -1,5 +1,8 @@
# Define global variables
# EasyEngine version
readonly EE_VERSION='2.0.0'
# WP-CLI version
readonly EE_WP_CLI_VERSION='0.15.1'

9
src/modules/system/install/ee_mod_setup_nginx.sh

@ -61,7 +61,12 @@ function ee_mod_setup_nginx()
fi
# Setup SSL
# Generate SSL Key
# Create SSL certificate directory
if [ !-d /var/www/22222/cert ]; then
mkdir /var/www/22222/cert
fi
# Generate SSL key
ee_lib_echo "Generating SSL private key, please wait..."
openssl genrsa -out /var/www/22222/cert/22222.key 2048 &>> $EE_COMMAND_LOG \
|| ee_lib_error "Unable to generate SSL private key for port 22222, exit status = " $?
@ -79,7 +84,7 @@ function ee_mod_setup_nginx()
openssl x509 -req -days 3652 -in /var/www/22222/cert/22222.csr -signkey /var/www/22222/cert/22222.key -out /var/www/22222/cert/22222.crt &>> $EE_COMMAND_LOG \
|| ee_lib_error "Unable to generate SSL certificate for port 22222, exit status = " $?
# Whitelist IP address
# White list IP address
if [ -n "$EE_IP_ADDRESS" ]; then
for ee_whitelist_ip_address in $(echo $EE_IP_ADDRESS)
do

2
src/vendor/ee_ven_install_wp_cli.sh

@ -11,7 +11,7 @@ function ee_ven_install_wp_cli()
# Add WP-CLI command in $PATH variable
if [ ! -L /usr/bin/wp ]; then
ln -s /usr/share/wp-cli/bin/wp /usr/bin/wp \
ln -s /usr/share/wp-cli/bin/wp /usr/bin/wp \
|| ee_lib_error "Unable to create symbolic link for WP-CLI command, exit status = " $?
fi

Loading…
Cancel
Save