Skip to content

Commit

Permalink
Remove /etc/passwd emulation code.
Browse files Browse the repository at this point in the history
OpenShift already correctly adds an entry to /etc/passwd.
Perhaps the issue was caused by incorrect permissions.
  • Loading branch information
zlogic committed Sep 29, 2023
1 parent fac9401 commit bd8cdd2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions scripts/startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import re
import runpy
import sys
import pwd
import base64

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

def emulate_getpwuid():
pwd.getpwuid = lambda _: ['mendix', None, os.getuid(), os.getgid(), 'mendix user', '/opt/mendix/build', '/sbin/nologin']

def call_buildpack_startup():
logging.debug("Executing call_buildpack_startup...")

Expand Down Expand Up @@ -126,7 +122,6 @@ def get_welcome_header():
export_industrial_edge_config_variable()
export_k8s_instance()
check_logfilter()
emulate_getpwuid()

export_encoded_cacertificates()
call_buildpack_startup()

0 comments on commit bd8cdd2

Please sign in to comment.