Create Fluxer data folders before the Compose bind mounts.

Docker will not create the local volume devices, so the first deploy fails if those directories are missing.
This commit is contained in:
Michael Sloan committed 2026-11-23 22:17:02 -05:00
1 parent b910932394
commit 960a480cee
2 files changed
+13 -3

No files matched your search

+12 -2
View File
@@ -38,10 +38,20 @@ if [[ -z "$OUT" ]]; then
exit 1
fi
# The local bind volumes fail at deploy if these directories do not already exist.
mkdir -p /mnt/user/appdata/fluxer/edge-data \
/mnt/user/appdata/fluxer/edge-config \
/mnt/user/appdata/fluxer/postgres \
/mnt/user/appdata/fluxer/valkey \
/mnt/user/appdata/fluxer/nats \
/mnt/user/appdata/fluxer/meilisearch \
/mnt/user/appdata/fluxer/seaweedfs \
/mnt/user/appdata/fluxer/media-proxy-tmp
if [[ -f "$OUT" ]] && grep -q '^POSTGRES_PASSWORD=.\+' "$OUT"; then
echo "Data folders are ready."
echo "Refusing to replace secrets already in $OUT" >&2
echo "Delete that file first if you really want a new one." >&2
exit 1
exit 0
fi
tmp="$(mktemp)"