9 lines
352 B
Bash
9 lines
352 B
Bash
#!/bin/sh
|
|
# LFX entrypoint (runs as root, drops privileges for the server).
|
|
# The named volume arrives root-owned (Docker creates it as root and the
|
|
# image USER cannot chown it) — without this every flow upload fails with
|
|
# "Permission denied" and synced flows stay version-less (invisible in UI).
|
|
set -e
|
|
|
|
chown -R lfx:lfx /flows
|
|
exec gosu lfx "$@"
|