Fix Docker/nätverk mot faktisk server: bridge 172.17.0.2, Gitea, Alpine-mönster
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+8
-8
@@ -1,18 +1,18 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
PKG_SRC="/opt/nextcloud-collabora-nodered"
|
||||
PKG_DEST="/data/node_modules/node-red-contrib-nextcloud-collabora"
|
||||
PKG="/opt/nextcloud-nodes/node-red-contrib-nextcloud-collabora"
|
||||
AUX="/opt/nextcloud-collabora-nodered"
|
||||
|
||||
rm -rf "$PKG_DEST"
|
||||
cp -a "$PKG_SRC" "$PKG_DEST"
|
||||
mkdir -p /data/node_modules
|
||||
cp -a "${PKG}" /data/node_modules/node-red-contrib-nextcloud-collabora
|
||||
|
||||
if [ ! -f /data/settings.js ] && [ -f "$PKG_SRC/settings.js.example" ]; then
|
||||
cp "$PKG_SRC/settings.js.example" /data/settings.js
|
||||
if [ ! -f /data/settings.js ] && [ -f "${AUX}/settings.js.example" ]; then
|
||||
cp "${AUX}/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
|
||||
if [ -f "${AUX}/flows/example-flows.json" ] && [ ! -f /data/flows.json ]; then
|
||||
cp "${AUX}/flows/example-flows.json" /data/flows.json
|
||||
fi
|
||||
|
||||
exec npm --prefix /usr/src/node-red start -- --userDir /data --port "${PORT:-1881}"
|
||||
|
||||
Reference in New Issue
Block a user