|
|
@ -48,7 +48,7 @@ fi |
|
|
|
# Define variables for later use |
|
|
|
ee_branch=$1 |
|
|
|
readonly ee_version_old="2.2.3" |
|
|
|
readonly ee_version_new="3.1.3" |
|
|
|
readonly ee_version_new="3.1.4" |
|
|
|
readonly ee_log_dir=/var/log/ee/ |
|
|
|
readonly ee_install_log=/var/log/ee/install.log |
|
|
|
readonly ee_linux_distro=$(lsb_release -i | awk '{print $3}') |
|
|
@ -305,6 +305,14 @@ function ee_update_latest() |
|
|
|
if [ $? -eq 0 ]; then |
|
|
|
update-rc.d hhvm defaults &>> /dev/null |
|
|
|
fi |
|
|
|
|
|
|
|
# Fix WordPress example.html issue |
|
|
|
# Ref: http://wptavern.com/xss-vulnerability-in-jetpack-and-the-twenty-fifteen-default-theme-affects-millions-of-wordpress-users |
|
|
|
dpkg --get-selections | grep -v deinstall | grep nginx &>> /dev/null |
|
|
|
if [ $? -eq 0 ]; then |
|
|
|
cp /usr/lib/ee/templates/locations.mustache /etc/nginx/common/locations.conf &>> /dev/null |
|
|
|
fi |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
# Do git intialisation |
|
|
@ -361,8 +369,8 @@ else |
|
|
|
ee_install_dep | tee -ai $ee_install_log |
|
|
|
ee_sync_db 2&>>1 $EE_INSTALL_LOG |
|
|
|
secure_ee_db | tee -ai $EE_INSTALL_LOG |
|
|
|
ee_update_latest | tee -ai $ee_install_log |
|
|
|
ee_install | tee -ai $ee_install_log |
|
|
|
ee_update_latest | tee -ai $ee_install_log |
|
|
|
ee_git_init | tee -ai $ee_install_log |
|
|
|
service nginx reload &>> /dev/null |
|
|
|
service php5-fpm restart &>> /dev/null |
|
|
|