newapi / entrypoint-wrapper.sh
nomid2's picture
Update entrypoint-wrapper.sh
15be524 verified
raw
history blame
503 Bytes
#!/bin/sh
SQLITE_DATA_DIR="/data"
echo "Entrypoint wrapper: Attempting to create necessary directories in ephemeral FS..."
echo "Ensuring directory $SQLITE_DATA_DIR exists (for SQLite)..."
mkdir -p "$SQLITE_DATA_DIR"
if [ $? -ne 0 ]; then
echo "ERROR: Failed to create $SQLITE_DATA_DIR in ephemeral FS. App data storage might fail."
else
echo "$SQLITE_DATA_DIR is ready or was created in ephemeral FS."
fi
echo "Entrypoint wrapper: Starting application with arguments: $@"
exec /one-api "$@"