Skip to content

Commit

Permalink
update inc/nginx_pagespeed.inc check for latest 1.9.32.1 beta based p…
Browse files Browse the repository at this point in the history
…scontrol file
  • Loading branch information
centminmod committed Oct 15, 2014
1 parent 18607af commit f7d9fe5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/nginx/pscontrol
@@ -1,4 +1,5 @@
#/bin/bash
# 1.9.32.1 fixed
# turn ngx_pagespeed on or off switch

psadmin() {
Expand Down
4 changes: 3 additions & 1 deletion inc/nginx_pagespeed.inc
Expand Up @@ -3,6 +3,7 @@ genpscontrolfile() {
touch /usr/local/nginx/conf/pscontrol
cat > "/usr/local/nginx/conf/pscontrol" <<END
#/bin/bash
# 1.9.32.1 fixed
# turn ngx_pagespeed on or off switch

psadmin() {
Expand Down Expand Up @@ -399,8 +400,9 @@ fi
if [[ -f /usr/bin/pscontrol ]]; then
PSSTATSCHECK=$(grep 'statson' /usr/bin/pscontrol)
PSADMINCHECK=$(grep 'psadmin' /usr/bin/pscontrol)
PSADMINFIXCHECK=$(grep '1.9.32.1 fixed' /usr/bin/pscontrol)

if [[ -z "$PSSTATSCHECK" || -z "$PSADMINCHECK" ]]; then
if [[ -z "$PSSTATSCHECK" || -z "$PSADMINCHECK" || -z "$PSADMINFIXCHECK" ]]; then
rm -rf /usr/bin/pscontrol
rm -rf /usr/local/nginx/conf/pscontrol
genpscontrolfile
Expand Down

0 comments on commit f7d9fe5

Please sign in to comment.