Polish "Find .conf file next to symlink to jar that's using the launch script"
Closes gh-8988
This commit is contained in:
parent
56a5888008
commit
3db5843c8b
|
|
@ -200,7 +200,6 @@ public class SysVinitLaunchScriptIT {
|
||||||
doLaunch("launch-with-double-link-single-java-opt.sh");
|
doLaunch("launch-with-double-link-single-java-opt.sh");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void launchWithMultipleJavaOpts() throws Exception {
|
public void launchWithMultipleJavaOpts() throws Exception {
|
||||||
doLaunch("launch-with-multiple-java-opts.sh");
|
doLaunch("launch-with-multiple-java-opts.sh");
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,8 @@ while [[ -L "$jarfile" ]]; do
|
||||||
if [[ "$jarfile" =~ init\.d ]]; then
|
if [[ "$jarfile" =~ init\.d ]]; then
|
||||||
init_script=$(basename "$jarfile")
|
init_script=$(basename "$jarfile")
|
||||||
else
|
else
|
||||||
# while looping check if their is any configuration file
|
|
||||||
configfile="${jarfile%.*}.conf"
|
configfile="${jarfile%.*}.conf"
|
||||||
|
# shellcheck source=/dev/null
|
||||||
[[ -r ${configfile} ]] && source "${configfile}"
|
[[ -r ${configfile} ]] && source "${configfile}"
|
||||||
fi
|
fi
|
||||||
jarfile=$(readlink "$jarfile")
|
jarfile=$(readlink "$jarfile")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue