Commit 1332fcb0 authored by Andy Wilkinson's avatar Andy Wilkinson

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

Closes gh-10275
parent 94ebd337
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment