Apache Ofbiz unexpected operator error

I was playing around with apache ofbiz to get some relevant information regarding ERP systems, and when using the stock startup script found in the root directory (“rc.ofbiz.for.debian”) I was getting following error:

root@apache:/# /usr/local/ofbiz/rc.ofbiz.for.debian status
[: 148: unexpected operator
OFBiz is running

A little investigation and problem was referring to wrong interpreter. So change the interpreter from:

#!/bin/sh

to

#!/bin/bash

And have fun.

Advertisements