Skip to content

Commit 2cc0a8c

Browse files
authored
Merge pull request #301 from jmtd/remove-configure-passwd
Remove vestiges of $HOME/passwd
2 parents 1646499 + 745404e commit 2cc0a8c

File tree

1 file changed

+0
-12
lines changed
  • modules/run/artifacts/opt/jboss/container/java/run

1 file changed

+0
-12
lines changed

modules/run/artifacts/opt/jboss/container/java/run/run-java.sh

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -197,23 +197,11 @@ get_exec_args() {
197197
fi
198198
}
199199

200-
# Ensure that the running UID has the "jboss" passwd metadata
201-
# XXX: Maybe we should make this an entrypoint for the image?
202-
function configure_passwd() {
203-
# OPENJDK-533: this file is only writeable if the image uses the
204-
# nss_wrapper module. ubi8/openjdk-17 does not.
205-
if [ -w "$HOME/passwd" ]; then
206-
sed "/^jboss/s/[^:]*/$(id -u)/3" /etc/passwd > "$HOME/passwd"
207-
fi
208-
}
209-
210200
# Start JVM
211201
startup() {
212202
# Initialize environment
213203
load_env
214204

215-
configure_passwd
216-
217205
local args
218206
cd ${JAVA_APP_DIR}
219207
if [ "x${JAVA_MAIN_CLASS}" != x ] ; then

0 commit comments

Comments
 (0)