Fix Erlang runtime paths with proper symlinks
This commit is contained in:
16
start.sh
16
start.sh
@ -52,14 +52,20 @@ if [[ ! -f "/app/data/root_credentials" ]]; then
|
|||||||
chmod 600 /app/data/root_credentials
|
chmod 600 /app/data/root_credentials
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create Erlang symlinks to fix path issues
|
# Create complete Erlang runtime structure
|
||||||
echo "==> Setting up Erlang runtime symlinks"
|
echo "==> Setting up Erlang runtime"
|
||||||
mkdir -p /app/data/keila/erts-14.2.5/bin
|
|
||||||
ERTS_DIR=$(find /usr/local/lib/erlang -name "erts-*" -type d | head -1)
|
ERTS_DIR=$(find /usr/local/lib/erlang -name "erts-*" -type d | head -1)
|
||||||
if [[ -n "$ERTS_DIR" ]]; then
|
if [[ -n "$ERTS_DIR" ]]; then
|
||||||
echo "Linking Erlang binaries from: $ERTS_DIR"
|
echo "Setting up Erlang from: $ERTS_DIR"
|
||||||
cp -r "$ERTS_DIR"/bin/* /app/data/keila/erts-14.2.5/bin/
|
# Create the exact structure Keila expects
|
||||||
|
rm -rf /app/data/keila/erts-14.2.5
|
||||||
|
cp -r "$ERTS_DIR" /app/data/keila/erts-14.2.5
|
||||||
chown -R cloudron:cloudron /app/data/keila/erts-14.2.5
|
chown -R cloudron:cloudron /app/data/keila/erts-14.2.5
|
||||||
|
|
||||||
|
# Also create symlink from the releases directory
|
||||||
|
cd /app/data/keila/releases/0.14.11
|
||||||
|
ln -sf ../../erts-14.2.5 ./erts-14.2.5
|
||||||
|
cd /app/code
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "==> Running database migrations"
|
echo "==> Running database migrations"
|
||||||
|
Reference in New Issue
Block a user