Files
sshecret/docker/admin.entrypoint.sh
Allan Eising f312edabd7
Some checks failed
Build and push image / build-containers (push) Has been cancelled
Update docker file
2025-07-18 06:35:47 +02:00

17 lines
502 B
Bash
Executable File

#!/usr/bin/env bash
fail() {
printf '%s\n' "$1" >&2 ## Send message to stderr.
exit "${2-1}" ## Return a code specified by $2, or 1 by default.
}
[[ -d migrations ]] || fail "Error: Must be run from the backend directory."
export SSHECRET_ADMIN_DATABASE="/opt/sshecret-admin/sshecret_admin.db"
export SSHECRET_ADMIN_PASSWORD_MANAGER_DIRECTORY="/opt/sshecret-admin"
export SSHECRET_ADMIN_FRONTEND_DIR="/opt/sshecret-frontend"
alembic upgrade head
sshecret-admin run --host 0.0.0.0