Skip to content

Commit

Permalink
init script error check
Browse files Browse the repository at this point in the history
Fixed case sensitive error problem.
  • Loading branch information
s4l1h authored Jan 20, 2017
1 parent 243ec6a commit 44382c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conf/php7-fpm.init
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fi
do_check()
{
# Run php-fpm with -t option to check the configuration file syntax
errors=$($DAEMON --fpm-config $CONFFILE -t 2>&1 | grep "\[ERROR\]" || true);
errors=$($DAEMON --fpm-config $CONFFILE -t 2>&1 | grep -i "error" || true);
if [ -n "$errors" ]; then
echo "Please fix your configuration file..."
echo $errors
Expand Down

0 comments on commit 44382c1

Please sign in to comment.