diff options
Diffstat (limited to 'vespabase/src/rhel-prestart.sh')
-rwxr-xr-x | vespabase/src/rhel-prestart.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vespabase/src/rhel-prestart.sh b/vespabase/src/rhel-prestart.sh index 44bf4fd9205..3a770cdd785 100755 --- a/vespabase/src/rhel-prestart.sh +++ b/vespabase/src/rhel-prestart.sh @@ -8,6 +8,10 @@ findpath () { myname=${0} mypath=${myname%/*} myname=${myname##*/} + empty_if_start_slash=${mypath%%/*} + if [ "${empty_if_start_slash}" ]; then + mypath=$(pwd)/${mypath} + fi if [ "$mypath" ] && [ -d "$mypath" ]; then return fi @@ -66,6 +70,7 @@ findhost () { } findroot +findhost # END environment bootstrap section |