error "cp: cannot stat myEnvironment.sh: No such file or directory" when run idempiere as service

Description

i setup idempiere as service in centos (use script of REDHAT OS).
when i run sevice idempiere start|stop|restart i get below message
"cp: cannot stat myEnvironment.sh: No such file or directory"

it's by in myEnvironment.sh use relative path in command "cp myEnvironment.sh myEnvironment.sav"

change to
cp $IDEMPIERE_HOME/utils/myEnvironment.sh $IDEMPIERE_HOME/utils/myEnvironment.sav
can help but i don't know it maybe affect to other env

Environment

None

Activity

Show:
Carlos Ruiz
October 1, 2014, 2:04 PM

Hi , can you please try the attached patch, syncing with the debian script.

Fixed

Assignee

Carlos Ruiz

Reporter

Hiep Lq

Labels

Tested By

None

Affects versions

Priority

Minor