Find .conf file next to symlink to jar that's using the launch script
See gh-8988
This commit is contained in:
committed by
Andy Wilkinson
parent
b59bc20f58
commit
56a5888008
@@ -0,0 +1,6 @@
|
||||
source ./test-functions.sh
|
||||
install_double_link_service
|
||||
echo 'JAVA_OPTS=-Dserver.port=8081' > /test-service/spring-boot-app.conf
|
||||
start_service
|
||||
await_app http://127.0.0.1:8081/
|
||||
curl -s http://127.0.0.1:8081/
|
||||
@@ -5,6 +5,14 @@ install_service() {
|
||||
ln -s /test-service/spring-boot-app.jar /etc/init.d/spring-boot-app
|
||||
}
|
||||
|
||||
install_double_link_service() {
|
||||
mkdir /test-service
|
||||
mv /spring-boot-launch-script-tests-*.jar /test-service/
|
||||
chmod +x /test-service/spring-boot-launch-script-tests-*.jar
|
||||
ln -s /test-service/spring-boot-launch-script-tests-*.jar /test-service/spring-boot-app.jar
|
||||
ln -s /test-service/spring-boot-app.jar /etc/init.d/spring-boot-app
|
||||
}
|
||||
|
||||
start_service() {
|
||||
service spring-boot-app start $@
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user