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. 15
      bin/easyengine
  2. 2
      src/lib/ee_lib_gpg_key_fix.sh
  3. 2
      src/modules/system/install/ee_mod_setup_nginx.sh

15
bin/easyengine

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

2
src/lib/ee_lib_gpg_key_fix.sh

@ -5,7 +5,7 @@ function ee_lib_gpg_key_fix()
local ee_gpg_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

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

@ -43,7 +43,7 @@ function ee_mod_setup_nginx()
fi
# 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
cp -v /usr/share/easyengine/nginx/22222 /etc/nginx/sites-available/

Loading…
Cancel
Save