Initial release v1.0.0 — Nextcloud Collabora Node-RED sidecar

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Hannes Ahlin
2026-08-22 14:56:38 +02:00
commit d2f70ee2a7
38 changed files with 2239 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/bin/sh
set -e
PKG_SRC="/opt/nextcloud-collabora-nodered"
PKG_DEST="/data/node_modules/node-red-contrib-nextcloud-collabora"
rm -rf "$PKG_DEST"
cp -a "$PKG_SRC" "$PKG_DEST"
if [ ! -f /data/settings.js ] && [ -f "$PKG_SRC/settings.js.example" ]; then
cp "$PKG_SRC/settings.js.example" /data/settings.js
fi
if [ -f "$PKG_SRC/flows/example-flows.json" ] && [ ! -f /data/flows.json ]; then
cp "$PKG_SRC/flows/example-flows.json" /data/flows.json
fi
exec npm --prefix /usr/src/node-red start -- --userDir /data --port "${PORT:-1881}"