fix log to stdout

This commit is contained in:
xiaomlove
2025-04-29 01:52:43 +07:00
parent 404357945e
commit cc89e8aa59
3 changed files with 4 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ if [ "$SERVICE_NAME" = "php" ]; then
if [ ! -f "$ENV_FILE" ]; then
echo_info ".env file: $ENV_FILE not exists, copy $SOURCE_DIR to $TARGET_DIR ..."
cp -r "$SOURCE_DIR" "$TARGET_DIR"
sed -i 's|LOG_FILE.*|LOG_FILE=/dev/stdout|g' "$ROOT_PATH/.env.example"
sed -i 's|LOG_FILE.*|LOG_FILE=php://stdout|g' "$ROOT_PATH/.env.example"
else
echo_success ".env file: $ENV_FILE already exists, skip copy install file ..."
fi