Copy Erlang binaries to expected erts directory
This commit is contained in:
16
start.sh
16
start.sh
@ -52,14 +52,14 @@ 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
|
||||
# Create Erlang symlinks to fix path issues
|
||||
echo "==> Setting up Erlang runtime symlinks"
|
||||
mkdir -p /app/data/keila/erts-14.2.5/bin
|
||||
ERTS_DIR=$(find /usr/local/lib/erlang -name "erts-*" -type d | head -1)
|
||||
if [[ -n "$ERTS_DIR" ]]; then
|
||||
echo "Linking Erlang binaries from: $ERTS_DIR"
|
||||
cp -r "$ERTS_DIR"/bin/* /app/data/keila/erts-14.2.5/bin/
|
||||
chown -R cloudron:cloudron /app/data/keila/erts-14.2.5
|
||||
fi
|
||||
|
||||
echo "==> Running database migrations"
|
||||
|
Reference in New Issue
Block a user