Skip to content

Commit bd8cdd2

Browse files
committed
Remove /etc/passwd emulation code.
OpenShift already correctly adds an entry to /etc/passwd. Perhaps the issue was caused by incorrect permissions.
1 parent fac9401 commit bd8cdd2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

scripts/startup.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import re
66
import runpy
77
import sys
8-
import pwd
98
import base64
109

1110
logging.basicConfig(
@@ -83,9 +82,6 @@ def check_logfilter():
8382
logging.warn("LOG_RATELIMIT is set, but the mendix-logfilter binary is missing. Rebuild Docker image with EXCLUDE_LOGFILTER=false to enable log filtering")
8483
del os.environ['LOG_RATELIMIT']
8584

86-
def emulate_getpwuid():
87-
pwd.getpwuid = lambda _: ['mendix', None, os.getuid(), os.getgid(), 'mendix user', '/opt/mendix/build', '/sbin/nologin']
88-
8985
def call_buildpack_startup():
9086
logging.debug("Executing call_buildpack_startup...")
9187

@@ -126,7 +122,6 @@ def get_welcome_header():
126122
export_industrial_edge_config_variable()
127123
export_k8s_instance()
128124
check_logfilter()
129-
emulate_getpwuid()
130125

131126
export_encoded_cacertificates()
132127
call_buildpack_startup()

0 commit comments

Comments
 (0)