Scripts don't work when run as root in ~root and su'ing to a user
-----------------------------------------------------------------
Key: SOLR-200
URL: https://issues.apache.org/jira/browse/SOLR-200
Project: Solr
Issue Type: Bug
Affects Versions: 1.1.0
Reporter: Jürgen Hermann
Priority: Minor
Fix For: 1.1.0
This patch avoids an error due to permission problems when orig_dir is /root
-orig_dir=$(pwd)
-cd ${0%/*}/..
-solr_root=$(pwd)
-cd ${orig_dir}
+solr_root=$(cd ${0%/*}/.. && pwd)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.