Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandredevely committed Nov 5, 2024
1 parent 5a7796b commit 270f019
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# export VAR to running procces
export KUBERNETES_SERVICE_HOST

CONTAINER_IP_ADDR=$POD_IP
# Read first $POD_IP if not set get from hostname -i ip address
export CONTAINER_IP_ADDR=${POD_IP:-$(hostname -i)}
echo "Container local ip addr is $CONTAINER_IP_ADDR"
export CONTAINER_IP_ADDR

# replace CONTAINER_IP_ADDR in listen for cupsd
sed -i "s/localhost:631/$CONTAINER_IP_ADDR:631/g" /etc/cups/cupsd.conf
Expand All @@ -23,9 +23,13 @@ if [ "$DISABLE_REMOTEIP_FILTERING"=="enabled" ]; then
else
DISABLE_REMOTEIP_FILTERING=disabled
fi

export DISABLE_REMOTEIP_FILTERING

# configure file service
#
# configure file service for printer service
# only download file is allowed
#
# denied upload file
export ACCEPTFILE=false
# denied list file
Expand Down

0 comments on commit 270f019

Please sign in to comment.