Polish "Issue a warning from launch script when app will run as root"

Closes gh-10275
This commit is contained in:
Andy Wilkinson 2018-09-11 12:12:43 +01:00
parent 94ebd33747
commit 1332fcb0ad
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ log_file="$LOG_FOLDER/$LOG_FILENAME"
# shellcheck disable=SC2012
[[ $(id -u) == "0" ]] && run_user=$(ls -ld "$jarfile" | awk '{print $3}')
# Issue an warning if the application will run as root
# Issue a warning if the application will run as root
[[ $(id -u ${run_user}) == "0" ]] && { echoYellow "Application is running as root (UID 0). This is considered insecure."; }
# Find Java