Add port 1880 mapping verification to integrate script
This commit is contained in:
@@ -110,7 +110,18 @@ cp "$SCRIPT_DIR/nodes"/*.html "$OPT_NODES_DIR/$PACKAGE_NAME/nodes/"
|
||||
cp "$SCRIPT_DIR/nodes/package.json" "$OPT_NODES_DIR/$PACKAGE_NAME/package.json"
|
||||
echo " Package created."
|
||||
|
||||
# 5. No docker-compose.yml changes needed - nodes are baked into the image
|
||||
# 5. Verify docker-compose.yml has port 1880 mapping
|
||||
COMPOSE="$NODERED_DIR/docker-compose.yml"
|
||||
if [[ -f "$COMPOSE" ]]; then
|
||||
echo "[integrate] Checking docker-compose.yml for port 1880..."
|
||||
if ! grep -q "1880:1880" "$COMPOSE"; then
|
||||
cp "$COMPOSE" "$COMPOSE.bak.$(date +%s)"
|
||||
sed -i '/ports:/a\ - "1880:1880"' "$COMPOSE"
|
||||
echo " Added 1880:1880 port mapping."
|
||||
else
|
||||
echo " Port 1880 mapping already present."
|
||||
fi
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "=== Integration Complete ==="
|
||||
|
||||
Reference in New Issue
Block a user