diff --git a/rootfs/usr/local/etc/docker/init.d/01-lenpaste.sh b/rootfs/usr/local/etc/docker/init.d/01-lenpaste.sh index 8ce7d75..7221c04 100755 --- a/rootfs/usr/local/etc/docker/init.d/01-lenpaste.sh +++ b/rootfs/usr/local/etc/docker/init.d/01-lenpaste.sh @@ -184,7 +184,9 @@ ADDITIONAL_CONFIG_DIRS="" CMD_ENV="" # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Overwrite based on file/directory - +if ! echo "$LENPASTE_ADDRESS" | grep -q ":[0-9][0-9]"; then +LENPASTE_ADDRESS="$LENPASTE_ADDRESS:$SERVICE_PORT" +fi # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Per Application Variables or imports