Update entrypoint-wrapper.sh
Browse files- entrypoint-wrapper.sh +7 -2
entrypoint-wrapper.sh
CHANGED
|
@@ -6,7 +6,7 @@ echo "Entrypoint wrapper: Attempting to create necessary directories in ephemera
|
|
| 6 |
|
| 7 |
echo "Ensuring directory $APP_DATA_DIR exists (for SQLite or other app data)..."
|
| 8 |
mkdir -p "$APP_DATA_DIR"
|
| 9 |
-
mkdir -p "$APP_DATA_DIR/logs"
|
| 10 |
if [ $? -ne 0 ]; then
|
| 11 |
echo "ERROR: Failed to create $APP_DATA_DIR. Application data storage might fail."
|
| 12 |
else
|
|
@@ -25,5 +25,10 @@ else
|
|
| 25 |
fi
|
| 26 |
fi
|
| 27 |
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
exec /one-api -log-dir "$APP_DATA_DIR/logs"
|
|
|
|
| 6 |
|
| 7 |
echo "Ensuring directory $APP_DATA_DIR exists (for SQLite or other app data)..."
|
| 8 |
mkdir -p "$APP_DATA_DIR"
|
| 9 |
+
mkdir -p "$APP_DATA_DIR/logs"
|
| 10 |
if [ $? -ne 0 ]; then
|
| 11 |
echo "ERROR: Failed to create $APP_DATA_DIR. Application data storage might fail."
|
| 12 |
else
|
|
|
|
| 25 |
fi
|
| 26 |
fi
|
| 27 |
|
| 28 |
+
# 设置修复后的MySQL连接字符串
|
| 29 |
+
export SQL_DSN="avnadmin:AVNS_Kjgd0Bc4gfcBqzKSStj@tcp(new-api-bangban-3033.e.aivencloud.com:19593)/new-api?tls=true"
|
| 30 |
+
|
| 31 |
+
echo "Entrypoint wrapper: Starting application with fixed MySQL connection string"
|
| 32 |
+
echo "Using database: MySQL with TLS"
|
| 33 |
+
|
| 34 |
exec /one-api -log-dir "$APP_DATA_DIR/logs"
|