Skip to content

Commit fbe177b

Browse files
committed
Minor Changes
1 parent f64948c commit fbe177b

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

usr/local/sbin/eeupdate

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ MYCNFCHECK()
143143
else
144144
# Turn Off Echo For Passwords
145145
stty -echo
146+
MYSQLUSER=root
147+
MYSQLHOST=localhost
146148
read -p "Enter The MySQL Password For root User: " MYSQLPASS
147149
stty echo
148150
echo
@@ -162,10 +164,16 @@ EE101()
162164
(sed "/allow/,+2d" /usr/share/easyengine/nginx/common/acl.conf; grep -v ^# /etc/nginx/common/allowed_ip.conf ) > /etc/nginx/common/acl.conf
163165
cp /usr/share/easyengine/nginx/common/locations.conf /etc/nginx/common
164166
sed -i "s/fastcgi_cache_use_stale.*/fastcgi_cache_use_stale error timeout invalid_header updating http_500 http_503;\nfastcgi_cache_valid any 1h;/g" /etc/nginx/conf.d/fastcgi.conf
165-
sed -i "/client_max_body_size/a \ \n\t# SSL Settings\n\tssl_session_cache shared:SSL:20m;\n\tssl_session_timeout 10m;\n\tssl_prefer_server_ciphers on;\n\tssl_ciphers HIGH:\!aNULL:\!MD5:\!kEDH;\n\n" /etc/nginx/nginx.conf
166167
sed -i "s/log_format rt_cache.*/log_format rt_cache '\$remote_addr \$upstream_response_time \$upstream_cache_status [\$time_local] '/" /etc/nginx/nginx.conf
167168
sed -i "s/.*\$body_bytes_sent'/\t\t'\$http_host \"\$request\" \$status \$body_bytes_sent '/" /etc/nginx/nginx.conf
168169

170+
# Check SSL Settings
171+
grep ssl_ /etc/nginx/nginx.conf &>> $INSTALLLOG
172+
if [ $? -ne 0 ]
173+
then
174+
sed -i "/client_max_body_size/a \ \n\t# SSL Settings\n\tssl_session_cache shared:SSL:20m;\n\tssl_session_timeout 10m;\n\tssl_prefer_server_ciphers on;\n\tssl_ciphers HIGH:\!aNULL:\!MD5:\!kEDH;\n\n" /etc/nginx/nginx.conf
175+
fi
176+
169177
# Move PHP’s Session Storage To Memcache
170178
sed -i "/extension/a \session.save_handler = memcache\nsession.save_path = \"tcp://localhost:11211\"" /etc/php5/mods-available/memcache.ini
171179
}
@@ -208,6 +216,7 @@ HTTPAUTH()
208216

209217
RESTARTSERVICE()
210218
{
219+
echo -e "\033[34mRestarting Nginx & PHP5-FPM Configuration, Please Wait...\e[0m"
211220
service php5-fpm restart &>> $INSTALLLOG || OwnError "Unable To Restart PHP5-FPM After Update"
212221
(nginx -t && service nginx restart) &>> $INSTALLLOG || OwnError "Unable To Restart Nginx After Update"
213222
}
@@ -247,7 +256,7 @@ then
247256
EEUPDATE
248257

249258

250-
if [[ $EECURRENTVERSION = 1.0.1 ]]
259+
if [[ $EECURRENTVERSION = 1.0.0 ]] || [[ $EECURRENTVERSION = 1.0.1 ]]
251260
then
252261
EE101
253262
HTTPAUTH
@@ -266,7 +275,6 @@ then
266275
GITCOMMIT
267276

268277
# Source EasyEngine (ee) Auto Complete To Take Effect
269-
echo
270278
echo -e "\033[34mFor EasyEngine (ee) Auto Completion Run Following Command\e[0m" | tee -ai $INSTALLLOG
271279
echo -e "\033[37msource /etc/bash_completion.d/ee\e[0m" | tee -ai $INSTALLLOG
272280
echo

0 commit comments

Comments
 (0)