Files
PicHost/docker-entrypoint.sh
T
O96u 469d3be735 release: v1.2.0 — unified images/ storage and legacy migration
Consolidate local images under data/images/, add docker migrate CLI,
startup index sync with orphan cleanup, and remove upload folder UI/API.
2026-08-28 17:18:03 +08:00

13 lines
260 B
Bash

#!/bin/sh
set -e
if [ "$1" = "reset-password" ]; then
exec node /app/server/cli/reset-password.mjs "${@:2}"
fi
if [ "$1" = "migrate" ]; then
exec node /app/server/cli/migrate-to-single-images.mjs "${@:2}"
fi
exec node /app/.output/server/index.mjs "$@"