The error "unary operator expected" appears when launching the init.d scripts of UVMS / Reporter / DU Explorer / Dollar Universe on Redhat 7.x

Document ID : KB000085845
Last Modified Date : 04/06/2018
Show Technical Document Details
Issue:
When we launch the daemon scripts of any of the Dollar Universe products on a Linux Redhat 7.x, some error appear.

Error Message :
Example of the type of error we get:
[root@vmstlce7hke init.d]# ./DUAS_UNIV62_peach status
./DUAS_UNIV62_peach: line 39: [: =: unary operator expected
service DUAS UNIV62 is running (detail on /tmp/status_DUAS)
 
Environment:
OS: Linux
OS Version: Linux Redhat 7.x ( kernel 3.1.x)
Cause:
Cause type:
Defect
Root Cause: Redhat 7.x was not supported before the release 6.7, so some scripts had to be fixed.
Resolution:
Some scripts have been fixed on all the products, in order to support Linux Redhat 7.x

Fix Status: Released

Fix Version(s):
Component: Application.Server
Version: Dollar.Universe 6.7.01
Additional Information:
Workaround :
Replace in the script which launches the error found on /etc/init.d the line:
[ ${NETWORKING} = "no" ] && exit 0
by

[ "${NETWORKING}" = "no" ] && exit 0