Browse Source

Fix nginx and php issue

old-stable
Mitesh Shah 11 years ago
parent
commit
6e62753d1f
  1. 14
      bin/easyengine
  2. 2
      src/modules/system/install/ee_mod_setup_nginx.sh

14
bin/easyengine

@ -8,7 +8,8 @@ EE_FOURTH=$4
EE_FIFTH=$5
# Include library
for ee_include in $(find /usr/local/lib/easyengine/ -iname "*.sh"); do
source /usr/local/lib/easyengine/lib/ee_lib_variable.sh
for ee_include in $(find /usr/local/lib/easyengine/ -iname "*.sh" ! -name ee_lib_variables.sh); do
source $ee_include
done
@ -61,12 +62,19 @@ then
fi
if [ "$EE_THIRD" = "nginx" ] || [ "$EE_THIRD" = "php" ] || [ "$EE_THIRD" = "mysql" ] || [ "$EE_THIRD" = "postfix" ]; then
# Restart nginx/php/mysql/postfix
ee_lib_service $EE_THIRD restart
# Restart php5-fpm
if [ "$EE_THIRD" = "php" ];then
ee_lib_service php5-fpm restart
else
# Restart nginx/mysql/postfix
ee_lib_service $EE_THIRD restart
fi
# Initialize Git
EE_GIT_DIR=/etc/$EE_THIRD/
ee_lib_git_init
fi
# Display success message

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

@ -62,7 +62,7 @@ function ee_mod_setup_nginx()
# Setup SSL
# Create SSL certificate directory
if [ !-d /var/www/22222/cert ]; then
if [ ! -d /var/www/22222/cert ]; then
mkdir /var/www/22222/cert
fi

Loading…
Cancel
Save