#!/bin/sh set -eu legacy_setting="" if [ "${SECURE+x}" = "x" ]; then legacy_setting="SECURE" elif [ "${LETTA_SERVER_SECURE+x}" = "x" ]; then legacy_setting="LETTA_SERVER_SECURE" elif [ "${LETTA_SERVER_PASSWORD+x}" = "x" ]; then legacy_setting="LETTA_SERVER_PASSWORD" elif [ -d /var/lib/postgresql/data ]; then legacy_setting="the old /var/lib/postgresql/data mount" fi case "${1:-}" in ./letta/server/startup.sh|/app/letta/server/startup.sh) legacy_setting="the retired server startup command" ;; letta|letta.js) ;; esac if [ -n "$legacy_setting" ]; then cat >&2 </dev/null || true fi cron exec "$@"