[ 
https://issues.apache.org/jira/browse/OFBIZ-1084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534711
 ] 

Christian Geisert commented on OFBIZ-1084:
------------------------------------------

Some info about the svn:eol-style property:
http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html#svn.advanced.props.special.eol-style

If .sh files should *always* have Unix line endings (and i think they should - 
for example if the release will be built on windows) then the svn:eol-style 
should be set to LF.


Ok, back now to the original issue...

The part of the script is:

# If root is running this script, su to $OFBIZ_USER first
if [ "$UID" = "0" ]; then
    exec su - $OFBIZ_USER -c "$0 $1"
fi

So the script does exactly what the comment says and shouldn't be changed.

> if [ "$UID" = "0" ]; then in $OFBIZ_HOME/rc.ofbiz
> -------------------------------------------------
>
>                 Key: OFBIZ-1084
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1084
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: Release Branch 4.0
>         Environment: Fedora 5, Fedora 6.
>            Reporter: Shi Yusen
>
> The following line in $OFBIZ_HOME/rc.ofbiz:
> if [ "$UID" = "0" ]; then
> Is it should be
> if [ "$UID" != "0" ]; then
> BTW, I have to run dos2unix for this file, I guess this is a *nix script, it 
> would be better if it's in the right format in SVN.
> Shi Yusen/Beijing Langhua Ltd.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to