Skip to content

Commit

Permalink
Use new IN_DOCKER_CONTAINER variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bbfrederick committed Nov 15, 2024
1 parent 7860acb commit e46fade
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ RUN useradd -m -s /bin/bash -G users capcalc
WORKDIR /home/capcalc
ENV HOME="/home/capcalc"

ENV IS_DOCKER_8395080871=1
ENV IN_DOCKER_CONTAINER=1

RUN ldconfig
WORKDIR /tmp/
Expand Down
2 changes: 1 addition & 1 deletion capcalc/scripts/capcalc_dispatcher
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import sys

def main():
# get the command line parameters
if os.getenv("IS_DOCKER_8395080871") is not None:
if os.getenv("IN_DOCKER_CONTAINER") is not None:
isdocker = True
execdir = sys.path[0]
else:
Expand Down

0 comments on commit e46fade

Please sign in to comment.