Browse Source

Fix nginx common/conf.d file copy and EE_CONFIG_GET variable

old-stable
Mitesh Shah 11 years ago
parent
commit
caa648aa54
  1. 9
      bin/easyengine
  2. 2
      src/lib/ee_lib_gpg_key_fix.sh
  3. 2
      src/modules/system/install/ee_mod_setup_nginx.sh

9
bin/easyengine

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

2
src/lib/ee_lib_gpg_key_fix.sh

@ -5,7 +5,7 @@ function ee_lib_gpg_key_fix()
local ee_gpg_key_check local ee_gpg_key_check
# GnuPG key check # GnuPG key check
EE_CONFIG_GET system.gpg-key-fix | grep -i true &>> $EE_COMMAND_LOG $EE_CONFIG_GET system.gpg-key-fix | grep -i true &>> $EE_COMMAND_LOG
if [ $? -eq 0 ];then if [ $? -eq 0 ];then

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

@ -43,7 +43,7 @@ function ee_mod_setup_nginx()
fi fi
# Copy files # Copy files
cp -v /usr/share/easyengine/nginx/conf.d /usr/share/easyengine/nginx/common /etc/nginx cp -av /usr/share/easyengine/nginx/conf.d /usr/share/easyengine/nginx/common /etc/nginx
# Setup port 22222 # Setup port 22222
cp -v /usr/share/easyengine/nginx/22222 /etc/nginx/sites-available/ cp -v /usr/share/easyengine/nginx/22222 /etc/nginx/sites-available/

Loading…
Cancel
Save