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

Author: S4mur4i

Happy in the unhappy world.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s