Skip to content

Commit e4b544b

Browse files
author
Dave Syer
committed
Create PID_FOLDER if it doesn't exist
In fact the folder was already created if the app is running as a different user, but not if running as the current user, so it was just a question of moving one line out of an if block. Fixes gh-5986
1 parent b11457f commit e4b544b

File tree

1 file changed

+1
-1
lines changed
  • spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools

1 file changed

+1
-1
lines changed

spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ start() {
140140
do_start() {
141141
working_dir=$(dirname "$jarfile")
142142
pushd "$working_dir" > /dev/null
143+
mkdir "$PID_FOLDER" &> /dev/null
143144
if [[ -n "$run_user" ]]; then
144-
mkdir "$PID_FOLDER" &> /dev/null
145145
checkPermissions || return $?
146146
chown "$run_user" "$PID_FOLDER"
147147
chown "$run_user" "$pid_file"

0 commit comments

Comments
 (0)