Add Erlang runtime symlink fix for Keila release

This commit is contained in:
Andreas Dueren
2025-06-20 10:41:06 -06:00
parent 30edc87eac
commit 0e2b274fff
2 changed files with 11 additions and 1 deletions

View File

@ -52,6 +52,16 @@ if [[ ! -f "/app/data/root_credentials" ]]; then
chmod 600 /app/data/root_credentials
fi
# Fix Erlang runtime path for Keila release
if [[ ! -d "/app/data/keila/erts-14.2.5" ]]; then
echo "==> Setting up Erlang runtime symlink"
# Find the actual erts directory in the system Erlang installation
ERTS_DIR=$(find /usr/local/lib/erlang -name "erts-*" -type d | head -1)
if [[ -n "$ERTS_DIR" ]]; then
ln -sf "$ERTS_DIR" /app/data/keila/erts-14.2.5
fi
fi
echo "==> Running database migrations"
sudo -u cloudron -E /app/data/keila/bin/keila eval "Keila.Release.migrate()"